Skip to content

Commit 821b1d2

Browse files
committed
Fix dependencies for both head and 3.2
1 parent 48a4adb commit 821b1d2

File tree

5 files changed

+126
-17
lines changed

5 files changed

+126
-17
lines changed

packages/npm-packages/ruby-3_2-wasm-wasi/package-lock.json

Lines changed: 90 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/npm-packages/ruby-3_2-wasm-wasi/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@
2727
],
2828
"license": "MIT",
2929
"devDependencies": {
30+
"@rollup/plugin-inject": "^5.0.3",
31+
"@rollup/plugin-json": "^6.0.0",
3032
"rollup": "^3.2.2",
31-
"@rollup/plugin-json": "^6.0.0"
33+
"rollup-plugin-polyfill-node": "^0.12.0"
3234
}
3335
}

packages/npm-packages/ruby-3_2-wasm-wasi/rollup.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
import inject from "@rollup/plugin-inject";
12
import json from "@rollup/plugin-json";
23
import fs from "fs";
34
import path from "path";
5+
import nodePolyfills from "rollup-plugin-polyfill-node";
46

57
/** @type {import('rollup').RollupOptions[]} */
68
export default [
@@ -15,6 +17,10 @@ export default [
1517
],
1618
plugins: [
1719
json(),
20+
nodePolyfills(),
21+
inject({
22+
Buffer: ["buffer", "Buffer"],
23+
}),
1824
],
1925
},
2026
];

packages/npm-packages/ruby-head-wasm-wasi/package-lock.json

Lines changed: 26 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/npm-packages/ruby-head-wasm-wasi/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,9 @@
2727
],
2828
"license": "MIT",
2929
"devDependencies": {
30+
"@rollup/plugin-inject": "^5.0.3",
3031
"@rollup/plugin-json": "^6.0.0",
3132
"rollup": "^3.2.2",
3233
"rollup-plugin-polyfill-node": "^0.12.0"
33-
},
34-
"dependencies": {
35-
"@rollup/plugin-inject": "^5.0.3"
3634
}
3735
}

0 commit comments

Comments
 (0)