diff --git a/package-lock.json b/package-lock.json index a7ee552..b93d913 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "devDependencies": { "@apidevtools/json-schema-ref-parser": "^9.0.9", "@biomejs/biome": "1.2.2", + "@total-typescript/ts-reset": "^0.5.1", "@types/jest": "^29.5.6", "@types/rimraf": "^3.0.2", "@whatwg-node/fetch": "^0.9.14", @@ -2717,6 +2718,12 @@ "node": ">= 6" } }, + "node_modules/@total-typescript/ts-reset": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@total-typescript/ts-reset/-/ts-reset-0.5.1.tgz", + "integrity": "sha512-AqlrT8YA1o7Ff5wPfMOL0pvL+1X+sw60NN6CcOCqs658emD6RfiXhF7Gu9QcfKBH7ELY2nInLhKSCWVoNL70MQ==", + "dev": true + }, "node_modules/@tsconfig/node10": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz", @@ -13945,6 +13952,12 @@ "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", "dev": true }, + "@total-typescript/ts-reset": { + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/@total-typescript/ts-reset/-/ts-reset-0.5.1.tgz", + "integrity": "sha512-AqlrT8YA1o7Ff5wPfMOL0pvL+1X+sw60NN6CcOCqs658emD6RfiXhF7Gu9QcfKBH7ELY2nInLhKSCWVoNL70MQ==", + "dev": true + }, "@tsconfig/node10": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.8.tgz", diff --git a/package.json b/package.json index ee18027..3183949 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "devDependencies": { "@apidevtools/json-schema-ref-parser": "^9.0.9", "@biomejs/biome": "1.2.2", + "@total-typescript/ts-reset": "^0.5.1", "@types/jest": "^29.5.6", "@types/rimraf": "^3.0.2", "@whatwg-node/fetch": "^0.9.14", diff --git a/packages/cma-client-browser/tsconfig.json b/packages/cma-client-browser/tsconfig.json index 4c12730..3672e9b 100644 --- a/packages/cma-client-browser/tsconfig.json +++ b/packages/cma-client-browser/tsconfig.json @@ -3,7 +3,12 @@ "compilerOptions": { "target": "es5", "declarationDir": "dist/types", - "lib": ["es2015", "es2016", "es2017", "DOM"], + "lib": [ + "es2015", + "es2016", + "es2017", + "DOM" + ], "outDir": "dist/cjs", "typeRoots": [ "../../node_modules/@types", @@ -11,5 +16,8 @@ "src/typings" ] }, - "include": ["src"] -} + "include": [ + "../../reset.d.ts", + "src" + ] +} \ No newline at end of file diff --git a/packages/cma-client-node/tsconfig.json b/packages/cma-client-node/tsconfig.json index 43094fc..9035e60 100644 --- a/packages/cma-client-node/tsconfig.json +++ b/packages/cma-client-node/tsconfig.json @@ -10,5 +10,8 @@ "src/typings" ] }, - "include": ["src"] -} + "include": [ + "../../reset.d.ts", + "src" + ] +} \ No newline at end of file diff --git a/packages/cma-client/tsconfig.json b/packages/cma-client/tsconfig.json index 95ce164..d1aa0e7 100644 --- a/packages/cma-client/tsconfig.json +++ b/packages/cma-client/tsconfig.json @@ -10,5 +10,8 @@ "src/typings" ] }, - "include": ["src"] -} + "include": [ + "../../reset.d.ts", + "src" + ] +} \ No newline at end of file diff --git a/packages/dashboard-client/tsconfig.json b/packages/dashboard-client/tsconfig.json index 95ce164..d1aa0e7 100644 --- a/packages/dashboard-client/tsconfig.json +++ b/packages/dashboard-client/tsconfig.json @@ -10,5 +10,8 @@ "src/typings" ] }, - "include": ["src"] -} + "include": [ + "../../reset.d.ts", + "src" + ] +} \ No newline at end of file diff --git a/packages/rest-api-events/tsconfig.json b/packages/rest-api-events/tsconfig.json index 1b05d2a..0b122c5 100644 --- a/packages/rest-api-events/tsconfig.json +++ b/packages/rest-api-events/tsconfig.json @@ -4,12 +4,20 @@ "target": "es5", "declarationDir": "dist/types", "outDir": "dist/cjs", - "lib": ["es2015", "es2016", "es2017", "DOM"], + "lib": [ + "es2015", + "es2016", + "es2017", + "DOM" + ], "typeRoots": [ "../../node_modules/@types", "node_modules/@types", "src/typings" ] }, - "include": ["src"] -} + "include": [ + "../../reset.d.ts", + "src" + ] +} \ No newline at end of file diff --git a/packages/rest-client-utils/tsconfig.json b/packages/rest-client-utils/tsconfig.json index 95ce164..d1aa0e7 100644 --- a/packages/rest-client-utils/tsconfig.json +++ b/packages/rest-client-utils/tsconfig.json @@ -10,5 +10,8 @@ "src/typings" ] }, - "include": ["src"] -} + "include": [ + "../../reset.d.ts", + "src" + ] +} \ No newline at end of file diff --git a/reset.d.ts b/reset.d.ts new file mode 100644 index 0000000..12bd3ed --- /dev/null +++ b/reset.d.ts @@ -0,0 +1 @@ +import '@total-typescript/ts-reset';