diff --git a/npmjs-common/package-in.json b/npmjs-common/package-in.json index ccd35d5..be15cf2 100644 --- a/npmjs-common/package-in.json +++ b/npmjs-common/package-in.json @@ -15,27 +15,25 @@ "type": "module", "files": [ "lib/api.d.ts", - "gen/bundle-*.js", + "gen/bundle.js", "gen/resources-*.js", "gen/*.wasm", "gen/share/" ], "exports": { - "node": "./gen/bundle-node.js", - "browser": "./gen/bundle-browser.js", + "default": "./gen/bundle.js", "types": "./lib/api.d.ts" }, "types": "./lib/api.d.ts", "devDependencies": { "@bytecodealliance/jco": "0.14.2", - "@yowasp/runtime": "6.0.30", + "@yowasp/runtime": "6.0.34", "esbuild": "^0.19.8" }, "scripts": { - "pack": "yowasp-pack-resources gen/resources-nextpnr-__ARCH__.js gen share", "transpile": "jco new __FILENAME__ --wasi-command --output __BASENAME__ && jco transpile __BASENAME__ --instantiation async --no-typescript --no-namespaced-exports --map 'wasi:io/*=runtime#io' --map 'wasi:cli/*=runtime#cli' --map 'wasi:clocks/*=runtime#*' --map 'wasi:filesystem/*=runtime#fs' --map 'wasi:random/*=runtime#random' --out-dir gen/", - "build:node": "esbuild --bundle lib/api.js --outfile=gen/bundle-node.js --format=esm --platform=node", - "build:browser": "esbuild --bundle lib/api.js --outfile=gen/bundle-browser.js --format=esm --platform=browser", - "all": "npm run transpile && npm run pack && npm run build:node && npm run build:browser" + "pack": "yowasp-pack-resources gen/resources-nextpnr-__ARCH__.js gen share", + "build": "esbuild --bundle lib/api.js --outfile=gen/bundle.js --format=esm --platform=node", + "all": "npm run transpile && npm run pack && npm run build" } }