add typescript

This commit is contained in:
Trym Lund Flogard 2021-06-02 13:18:49 +02:00
parent ae1a817c9d
commit 8517cdf3c9
4 changed files with 23 additions and 0 deletions

6
package-lock.json generated
View File

@ -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
}
}
}

View File

@ -19,5 +19,8 @@
"homepage": "https://github.com/trympet/nextcloud-artifacts-action#readme",
"dependencies": {
"@actions/core": "^1.3.0"
},
"devDependencies": {
"typescript": "^4.3.2"
}
}

1
src/index.ts Normal file
View File

@ -0,0 +1 @@
console.log("hello world");

13
tsconfig.json Normal file
View File

@ -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
}
}