diff --git a/service/package.json b/service/package.json index b7fea5f10..7179ca161 100644 --- a/service/package.json +++ b/service/package.json @@ -4,7 +4,9 @@ "description": "GraphQL client for JACDAC", "main": "index.js", "scripts": { - "build": "tsc" + "clean": "rm -Rf dist", + "build": "tsc", + "watch": "tsc -w" }, "author": "", "license": "MIT", diff --git a/service/tsconfig.json b/service/tsconfig.json index 67112b36f..89d499f0f 100644 --- a/service/tsconfig.json +++ b/service/tsconfig.json @@ -1,17 +1,17 @@ { "compilerOptions": { - "moduleResolution": "node", - "target": "es6", - "module":"commonjs", - "lib": ["es2015", "es2016", "es2017", "es2020", "dom"], - "strict": false, + "module": "commonjs", + "removeComments": true, "sourceMap": true, - "allowSyntheticDefaultImports": true, - "experimentalDecorators": true, - "preserveConstEnums": true, + "target": "es2018", "outDir": "dist", - "typeRoots": [ - "node_modules/@types" - ] + "esModuleInterop": true }, -} + "include": [ + "*.ts", + "../src/**.ts" + ], + "exclude": [ + "node_modules" + ] +} \ No newline at end of file