diff --git a/package.json b/package.json index a3475619..46c8d872 100644 --- a/package.json +++ b/package.json @@ -10,14 +10,14 @@ "test" ], "scripts": { - "build:cjs": "lerna exec 'tsc --module CommonJS --outDir lib' --no-private", + "build:cjs": "lerna exec 'tsc --module CommonJS --target ES2022 --moduleResolution Node --outDir lib' --no-private", "build:esm": "lerna exec 'tsc --module NodeNext --outDir lib/esm' --no-private", "compile": "yarn build:cjs && yarn build:esm", "prepublishOnly": "yarn reset && yarn compile", "reset": "lerna exec 'rm -rf lib'", "test": "yarn workspace @rc-ex/test run vitest", "upgrade-all": "yarn-upgrade-all -W && yarn workspaces run yarn-upgrade-all && yarn install", - "reinstall": "rm -rf node_modules && yarn lerna exec 'rm -rf node_modules' && yarn install" + "reinstall": "yarn lerna exec 'rm -rf node_modules' && rm -rf node_modules && yarn install" }, "devDependencies": { "@types/node": "^22.10.10", diff --git a/packages/core/tsconfig.json b/packages/core/tsconfig.json index 596e2cf7..66148548 100644 --- a/packages/core/tsconfig.json +++ b/packages/core/tsconfig.json @@ -1,4 +1,8 @@ { - "extends": "../../tsconfig.json", + "compilerOptions": { + "esModuleInterop": true, + "sourceMap": true, + "declaration": true + }, "include": ["src"] } diff --git a/packages/extensions/authorize-uri/tsconfig.json b/packages/extensions/authorize-uri/tsconfig.json index 9b376c2b..66148548 100644 --- a/packages/extensions/authorize-uri/tsconfig.json +++ b/packages/extensions/authorize-uri/tsconfig.json @@ -1,4 +1,8 @@ { - "extends": "../../../tsconfig.json", + "compilerOptions": { + "esModuleInterop": true, + "sourceMap": true, + "declaration": true + }, "include": ["src"] } diff --git a/packages/extensions/auto-refresh/tsconfig.json b/packages/extensions/auto-refresh/tsconfig.json index 9b376c2b..66148548 100644 --- a/packages/extensions/auto-refresh/tsconfig.json +++ b/packages/extensions/auto-refresh/tsconfig.json @@ -1,4 +1,8 @@ { - "extends": "../../../tsconfig.json", + "compilerOptions": { + "esModuleInterop": true, + "sourceMap": true, + "declaration": true + }, "include": ["src"] } diff --git a/packages/extensions/debug/tsconfig.json b/packages/extensions/debug/tsconfig.json index 9b376c2b..66148548 100644 --- a/packages/extensions/debug/tsconfig.json +++ b/packages/extensions/debug/tsconfig.json @@ -1,4 +1,8 @@ { - "extends": "../../../tsconfig.json", + "compilerOptions": { + "esModuleInterop": true, + "sourceMap": true, + "declaration": true + }, "include": ["src"] } diff --git a/packages/extensions/events/tsconfig.json b/packages/extensions/events/tsconfig.json index 9b376c2b..66148548 100644 --- a/packages/extensions/events/tsconfig.json +++ b/packages/extensions/events/tsconfig.json @@ -1,4 +1,8 @@ { - "extends": "../../../tsconfig.json", + "compilerOptions": { + "esModuleInterop": true, + "sourceMap": true, + "declaration": true + }, "include": ["src"] } diff --git a/packages/extensions/rate-limit/tsconfig.json b/packages/extensions/rate-limit/tsconfig.json index 9b376c2b..66148548 100644 --- a/packages/extensions/rate-limit/tsconfig.json +++ b/packages/extensions/rate-limit/tsconfig.json @@ -1,4 +1,8 @@ { - "extends": "../../../tsconfig.json", + "compilerOptions": { + "esModuleInterop": true, + "sourceMap": true, + "declaration": true + }, "include": ["src"] } diff --git a/packages/extensions/rcsdk/tsconfig.json b/packages/extensions/rcsdk/tsconfig.json index 9b376c2b..66148548 100644 --- a/packages/extensions/rcsdk/tsconfig.json +++ b/packages/extensions/rcsdk/tsconfig.json @@ -1,4 +1,8 @@ { - "extends": "../../../tsconfig.json", + "compilerOptions": { + "esModuleInterop": true, + "sourceMap": true, + "declaration": true + }, "include": ["src"] } diff --git a/packages/extensions/retry/tsconfig.json b/packages/extensions/retry/tsconfig.json index 9b376c2b..66148548 100644 --- a/packages/extensions/retry/tsconfig.json +++ b/packages/extensions/retry/tsconfig.json @@ -1,4 +1,8 @@ { - "extends": "../../../tsconfig.json", + "compilerOptions": { + "esModuleInterop": true, + "sourceMap": true, + "declaration": true + }, "include": ["src"] } diff --git a/packages/extensions/ws/tsconfig.json b/packages/extensions/ws/tsconfig.json index 9b376c2b..66148548 100644 --- a/packages/extensions/ws/tsconfig.json +++ b/packages/extensions/ws/tsconfig.json @@ -1,4 +1,8 @@ { - "extends": "../../../tsconfig.json", + "compilerOptions": { + "esModuleInterop": true, + "sourceMap": true, + "declaration": true + }, "include": ["src"] } diff --git a/test/exceptions.spec.ts b/test/exceptions.spec.ts index 2d183875..b4f2b175 100644 --- a/test/exceptions.spec.ts +++ b/test/exceptions.spec.ts @@ -15,7 +15,6 @@ describe("Exceptions", () => { }); } catch (e) { exception = true; - expect(e instanceof RestException).toBeTruthy(); const re = e as { response: RestResponse }; expect(re.response.status).toBe(400); } finally { @@ -33,7 +32,6 @@ describe("Exceptions", () => { ); } catch (e) { exception = true; - expect(e instanceof RestException).toBeTruthy(); const re = e as { response: RestResponse }; expect(re.response.status).toBe(404); } finally {