diff --git a/package-lock.json b/package-lock.json index 162b80cb0..0ff69b06b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -18,7 +18,6 @@ "devDependencies": { "@openfeature/flagd-provider": "^0.10.2", "@openfeature/flagd-web-provider": "^0.4.0", - "@rollup/plugin-alias": "^5.0.0", "@rollup/plugin-typescript": "^11.0.0", "@types/events": "^3.0.0", "@types/jest": "^29.0.0", @@ -1766,38 +1765,6 @@ "dev": true, "license": "BSD-3-Clause" }, - "node_modules/@rollup/plugin-alias": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@rollup/plugin-alias/-/plugin-alias-5.0.1.tgz", - "integrity": "sha512-JObvbWdOHoMy9W7SU0lvGhDtWq9PllP5mjpAy+TUslZG/WzOId9u80Hsqq1vCUn9pFJ0cxpdcnAv+QzU2zFH3Q==", - "dev": true, - "dependencies": { - "slash": "^4.0.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0" - }, - "peerDependenciesMeta": { - "rollup": { - "optional": true - } - } - }, - "node_modules/@rollup/plugin-alias/node_modules/slash": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-4.0.0.tgz", - "integrity": "sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew==", - "dev": true, - "engines": { - "node": ">=12" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@rollup/plugin-typescript": { "version": "11.1.5", "resolved": "https://registry.npmjs.org/@rollup/plugin-typescript/-/plugin-typescript-11.1.5.tgz", @@ -14480,7 +14447,7 @@ }, "packages/client": { "name": "@openfeature/web-sdk", - "version": "0.4.10", + "version": "0.4.11", "license": "Apache-2.0", "devDependencies": { "@openfeature/core": "0.0.24" @@ -14525,7 +14492,7 @@ }, "packages/server": { "name": "@openfeature/server-sdk", - "version": "1.9.1", + "version": "1.10.0", "license": "Apache-2.0", "devDependencies": { "@openfeature/core": "0.0.24" diff --git a/package.json b/package.json index 75b6d6774..84a4c26dc 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,6 @@ "devDependencies": { "@openfeature/flagd-provider": "^0.10.2", "@openfeature/flagd-web-provider": "^0.4.0", - "@rollup/plugin-alias": "^5.0.0", "@rollup/plugin-typescript": "^11.0.0", "@types/events": "^3.0.0", "@types/jest": "^29.0.0", diff --git a/packages/client/tsconfig.rollup.json b/packages/client/tsconfig.rollup.json new file mode 100644 index 000000000..c5abecd7d --- /dev/null +++ b/packages/client/tsconfig.rollup.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "paths": {} + } +} \ No newline at end of file diff --git a/packages/nest/tsconfig.rollup.json b/packages/nest/tsconfig.rollup.json new file mode 100644 index 000000000..c5abecd7d --- /dev/null +++ b/packages/nest/tsconfig.rollup.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "paths": {} + } +} \ No newline at end of file diff --git a/packages/react/tsconfig.rollup.json b/packages/react/tsconfig.rollup.json new file mode 100644 index 000000000..c5abecd7d --- /dev/null +++ b/packages/react/tsconfig.rollup.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "paths": {} + } +} \ No newline at end of file diff --git a/packages/server/tsconfig.rollup.json b/packages/server/tsconfig.rollup.json new file mode 100644 index 000000000..c5abecd7d --- /dev/null +++ b/packages/server/tsconfig.rollup.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "paths": {} + } +} \ No newline at end of file diff --git a/packages/shared/tsconfig.rollup.json b/packages/shared/tsconfig.rollup.json new file mode 100644 index 000000000..c5abecd7d --- /dev/null +++ b/packages/shared/tsconfig.rollup.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "paths": {} + } +} \ No newline at end of file diff --git a/rollup.config.mjs b/rollup.config.mjs index 1d55f41f9..bec59598c 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -1,7 +1,6 @@ // this config rolls up all the types in the project to a single declaration (d.ts) file. // we do NOT use rollup to build (we use esbuild for that) -import alias from '@rollup/plugin-alias'; import dts from 'rollup-plugin-dts'; export default { @@ -18,6 +17,7 @@ export default { } ], plugins: [ - dts({tsconfig: './tsconfig.json'}), + // use the rollup override tsconfig (applies equivalent in each sub-packages as well) + dts({tsconfig: './tsconfig.rollup.json'}), ], }; \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index 541252c67..6cbf4cd68 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -30,7 +30,7 @@ // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ "paths": { "@openfeature/core": [ "./packages/shared/src" ] - }, /* Specify a set of entries that re-map imports to additional lookup locations. */ + }, /* Specify a set of entries that re-map imports to additional lookup locations. */ // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ // "typeRoots": [], /* Specify multiple folders that act like `./node_modules/@types`. */ // "types": [], /* Specify type package names to be included without being referenced in a source file. */ diff --git a/tsconfig.rollup.json b/tsconfig.rollup.json new file mode 100644 index 000000000..c5abecd7d --- /dev/null +++ b/tsconfig.rollup.json @@ -0,0 +1,6 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "paths": {} + } +} \ No newline at end of file