diff --git a/wasm-node/javascript/bytecode/package.json b/wasm-node/javascript/bytecode/package.json new file mode 100644 index 0000000000..40b4e16685 --- /dev/null +++ b/wasm-node/javascript/bytecode/package.json @@ -0,0 +1,16 @@ +{ + "types": "../dist/mjs/bytecode-browser.d.ts", + "module": "../dist/mjs/worker-browser.js", + "exports": { + ".": { + "node": { + "import": "../dist/mjs/bytecode-nodejs.js", + "require": "../dist/cjs/bytecode-nodejs.js" + }, + "default": { + "import": "../dist/mjs/bytecode-browser.js", + "require": "../dist/cjs/bytecode-browser.js" + } + } + } +} diff --git a/wasm-node/javascript/no-auto-bytecode/package.json b/wasm-node/javascript/no-auto-bytecode/package.json new file mode 100644 index 0000000000..2e55417e70 --- /dev/null +++ b/wasm-node/javascript/no-auto-bytecode/package.json @@ -0,0 +1,16 @@ +{ + "types": "../dist/mjs/no-auto-bytecode-browser.d.ts", + "module": "../dist/mjs/no-auto-bytecode-browser.js", + "exports": { + ".": { + "node": { + "import": "../dist/mjs/no-auto-bytecode-nodejs.js", + "require": "../dist/cjs/no-auto-bytecode-nodejs.js" + }, + "default": { + "import": "../dist/mjs/no-auto-bytecode-browser.js", + "require": "../dist/cjs/no-auto-bytecode-browser.js" + } + } + } +} diff --git a/wasm-node/javascript/worker/package.json b/wasm-node/javascript/worker/package.json new file mode 100644 index 0000000000..f3d0e1735d --- /dev/null +++ b/wasm-node/javascript/worker/package.json @@ -0,0 +1,16 @@ +{ + "types": "../dist/mjs/worker-browser.d.ts", + "module": "../dist/mjs/worker-browser.js", + "exports": { + ".": { + "node": { + "import": "../dist/mjs/worker-nodejs.js", + "require": "../dist/cjs/worker-nodejs.js" + }, + "default": { + "import": "../dist/mjs/worker-browser.js", + "require": "../dist/cjs/worker-browser.js" + } + } + } +}