Skip to content

Commit

Permalink
[autorelease] [skip py] Update @yowasp/runtime.
Browse files Browse the repository at this point in the history
This commit also ships a single unified (Node+browser) bundle, and
consequently requires extension version 0.2.4 or later.
  • Loading branch information
whitequark committed Jan 7, 2024
1 parent fb3f6ad commit 147c2aa
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions npmjs-common/package-in.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}

0 comments on commit 147c2aa

Please sign in to comment.