Skip to content

Commit

Permalink
fix(rollup): fixed error from migration from webpack to rollup
Browse files Browse the repository at this point in the history
fixed error from migration from webpack to rollup that left decoders as an external dependency
  • Loading branch information
daragh-king-genesys committed Jan 18, 2024
1 parent 9ccdab2 commit a243dcd
Show file tree
Hide file tree
Showing 6 changed files with 172 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "18.14.2"

# Install dependencies
- run: npm ci
Expand Down
159 changes: 157 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions packages/iframe-coordinator-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
},
"devDependencies": {
"@vitejs/plugin-vue2": "^2.3.1",
"jsdom": "^23.2.0",
"karma-jsdom-launcher": "^16.0.0",
"typescript": "^4.9.5",
"vite": "^5.0.11"
},
Expand Down
1 change: 1 addition & 0 deletions packages/iframe-coordinator/karma.conf.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ module.exports = (config) => {
browsers: ["jsdom"],
singleRun: false,
concurrency: Infinity,
hostname: "127.0.0.1",
});
};
4 changes: 4 additions & 0 deletions packages/iframe-coordinator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,16 @@
"module": "dist/index.js",
"types": "dist/index.d.ts",
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.5",
"@rollup/plugin-typescript": "^11.1.5",
"@types/jasmine": "^5.1.4",
"jasmine-core": "^5.1.1",
"jsdom": "^23.2.0",
"karma": "^6.4.2",
"karma-jasmine": "^5.1.0",
"karma-jsdom-launcher": "^16.0.0",
"karma-typescript": "^5.5.4",
"puppeteer": "^21.7.0",
"rollup": "^4.9.4",
Expand Down
12 changes: 9 additions & 3 deletions packages/iframe-coordinator/rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import typescript from "@rollup/plugin-typescript";
import replace from "@rollup/plugin-replace";
import { nodeResolve } from "@rollup/plugin-node-resolve";
import commonjs from "@rollup/plugin-commonjs";

import fs from "fs";

const packageVersion = JSON.parse(
Expand All @@ -13,7 +16,6 @@ export default [
file: "dist/index.js",
format: "es",
},
external: ["decoders"],
plugins: [
typescript(),
replace({
Expand All @@ -22,6 +24,8 @@ export default [
__PACKAGE_VERSION__: packageVersion,
},
}),
commonjs(),
nodeResolve(),
],
},
{
Expand All @@ -30,7 +34,6 @@ export default [
file: "dist/client.js",
format: "es",
},
external: ["decoders"],
plugins: [
typescript(),
replace({
Expand All @@ -39,6 +42,8 @@ export default [
__PACKAGE_VERSION__: packageVersion,
},
}),
commonjs(),
nodeResolve(),
],
},
{
Expand All @@ -47,7 +52,6 @@ export default [
file: "dist/host.js",
format: "es",
},
external: ["decoders"],
plugins: [
typescript(),
replace({
Expand All @@ -56,6 +60,8 @@ export default [
__PACKAGE_VERSION__: packageVersion,
},
}),
commonjs(),
nodeResolve(),
],
},
];

0 comments on commit a243dcd

Please sign in to comment.