From 8517cdf3c923598bff3d61430510016061cb0644 Mon Sep 17 00:00:00 2001 From: Trym Lund Flogard Date: Wed, 2 Jun 2021 13:18:49 +0200 Subject: [PATCH] add typescript --- package-lock.json | 6 ++++++ package.json | 3 +++ src/index.ts | 1 + tsconfig.json | 13 +++++++++++++ 4 files changed, 23 insertions(+) create mode 100644 src/index.ts create mode 100644 tsconfig.json diff --git a/package-lock.json b/package-lock.json index cde9d12..9273884 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,12 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/@actions/core/-/core-1.3.0.tgz", "integrity": "sha512-xxtX0Cwdhb8LcgatfJkokqT8KzPvcIbwL9xpLU09nOwBzaStbfm0dNncsP0M4us+EpoPdWy7vbzU5vSOH7K6pg==" + }, + "typescript": { + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.2.tgz", + "integrity": "sha512-zZ4hShnmnoVnAHpVHWpTcxdv7dWP60S2FsydQLV8V5PbS3FifjWFFRiHSWpDJahly88PRyV5teTSLoq4eG7mKw==", + "dev": true } } } diff --git a/package.json b/package.json index 0e0a1f8..c8acbf5 100644 --- a/package.json +++ b/package.json @@ -19,5 +19,8 @@ "homepage": "https://github.com/trympet/nextcloud-artifacts-action#readme", "dependencies": { "@actions/core": "^1.3.0" + }, + "devDependencies": { + "typescript": "^4.3.2" } } diff --git a/src/index.ts b/src/index.ts new file mode 100644 index 0000000..0f50426 --- /dev/null +++ b/src/index.ts @@ -0,0 +1 @@ +console.log("hello world"); \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..a12138a --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "es5", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', 'ES2021', or 'ESNEXT'. */ + "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */ + "strict": true, /* Enable all strict type-checking options. */ + "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */ + "skipLibCheck": true, /* Skip type checking of declaration files. */ + "forceConsistentCasingInFileNames": true, /* Disallow inconsistently-cased references to the same file. */ + "rootDir": "src", + "outDir": "dist", + "sourceMap": true + } +}