diff --git a/package.json b/package.json index 910097da8..0a228cb51 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,10 @@ "dist" ], "scripts": { - "build": "tsc -p tsconfig.esm.json && tsc -p tsconfig.cjs.json && tsc -p tsconfig.types.json", + "build": "rimraf dist && yarn build:browser && yarn build:node && yarn build:types", + "build:node": " tsc -p tsconfig.cjs.json --noEmit false", + "build:browser": "tsc -p tsconfig.esm.json --noEmit false", + "build:types": "tsc -p tsconfig.types.json --noEmit false", "test": "ts-mocha ts/client/**/*.spec.ts --timeout 300000", "example1-user": "ts-node ts/client/src/scripts/example1-user.ts", "example1-admin": "ts-node ts/client/src/scripts/example1-admin.ts", diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json index dbe108d27..69c1b91ee 100644 --- a/tsconfig.cjs.json +++ b/tsconfig.cjs.json @@ -1,10 +1,10 @@ { "extends": "./tsconfig", "compilerOptions": { - "module": "commonjs", - "outDir": "dist/cjs", "declaration": true, "declarationMap": false, + "module": "commonjs", + "outDir": "dist/cjs", "sourceMap": false }, "include": [ diff --git a/tsconfig.esm.json b/tsconfig.esm.json index 8a359da5f..2a9a3898d 100644 --- a/tsconfig.esm.json +++ b/tsconfig.esm.json @@ -3,8 +3,8 @@ "compilerOptions": { "declaration": false, "declarationMap": false, - "sourceMap": false, "module": "esnext", - "outDir": "./dist/esm" + "outDir": "dist/esm", + "sourceMap": false, } } \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 921457f2e..4f982d6b2 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,14 +1,14 @@ { "compilerOptions": { - "target": "esnext", + "esModuleInterop": true, "module": "esnext", "moduleResolution": "node", - "esModuleInterop": true, - "resolveJsonModule": true, + "noEmit": true, "noImplicitAny": false, + "resolveJsonModule": true, "skipLibCheck": true, "strictNullChecks": true, - "noEmit": true + "target": "esnext", }, "ts-node": { // these options are overrides used only by ts-node