Skip to content

Commit

Permalink
[autorelease] [skip py] Update @yowasp/runtime.
Browse files Browse the repository at this point in the history
  • Loading branch information
whitequark committed Jan 20, 2024
1 parent db6459f commit f1edf65
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions npmjs-common/package-in.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@
"types": "./lib/api.d.ts",
"devDependencies": {
"@bytecodealliance/jco": "0.14.2",
"@yowasp/runtime": "6.0.34",
"@yowasp/runtime": "7.0.35",
"esbuild": "^0.19.8"
},
"scripts": {
"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/",
"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",
"build": "esbuild --bundle lib/api.js --outfile=gen/bundle.js --format=esm --platform=node --external:./resources-*.js",
"all": "npm run transpile && npm run pack && npm run build"
}
}
14 changes: 7 additions & 7 deletions npmjs-ecp5/lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ import { instantiate as instantiateNextpnrEcp5 } from '../gen/nextpnr-ecp5.js';

export { Exit } from '@yowasp/runtime';

const resourceFileURL = new URL('./resources-nextpnr-ecp5.js', import.meta.url);
const resources = () => import('./resources-nextpnr-ecp5.js');

const ecppll = new Application(resourceFileURL, instantiateEcppll, 'yowasp-ecppll');
const ecppll = new Application(resources, instantiateEcppll, 'yowasp-ecppll');
const runEcppll = ecppll.run.bind(ecppll);

const ecpbram = new Application(resourceFileURL, instantiateEcpbram, 'yowasp-ecpbram');
const ecpbram = new Application(resources, instantiateEcpbram, 'yowasp-ecpbram');
const runEcpbram = ecpbram.run.bind(ecpbram);

const ecpmulti = new Application(resourceFileURL, instantiateEcpmulti, 'yowasp-ecpmulti');
const ecpmulti = new Application(resources, instantiateEcpmulti, 'yowasp-ecpmulti');
const runEcpmulti = ecpmulti.run.bind(ecpmulti);

const ecppack = new Application(resourceFileURL, instantiateEcppack, 'yowasp-ecppack');
const ecppack = new Application(resources, instantiateEcppack, 'yowasp-ecppack');
const runEcppack = ecppack.run.bind(ecppack);

const ecpunpack = new Application(resourceFileURL, instantiateEcpunpack, 'yowasp-ecpunpack');
const ecpunpack = new Application(resources, instantiateEcpunpack, 'yowasp-ecpunpack');
const runEcpunpack = ecpunpack.run.bind(ecpunpack);

const nextpnrEcp5 = new Application(resourceFileURL, instantiateNextpnrEcp5, 'yowasp-nextpnr-ecp5');
const nextpnrEcp5 = new Application(resources, instantiateNextpnrEcp5, 'yowasp-nextpnr-ecp5');
const runNextpnrEcp5 = nextpnrEcp5.run.bind(nextpnrEcp5);

export {
Expand Down
14 changes: 7 additions & 7 deletions npmjs-ice40/lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,24 @@ import { instantiate as instantiateNextpnrIce40 } from '../gen/nextpnr-ice40.js'

export { Exit } from '@yowasp/runtime';

const resourceFileURL = new URL('./resources-nextpnr-ice40.js', import.meta.url);
const resources = () => import('./resources-nextpnr-ice40.js');

const icepll = new Application(resourceFileURL, instantiateIcepll, 'yowasp-icepll');
const icepll = new Application(resources, instantiateIcepll, 'yowasp-icepll');
const runIcepll = icepll.run.bind(icepll);

const icebram = new Application(resourceFileURL, instantiateIcebram, 'yowasp-icebram');
const icebram = new Application(resources, instantiateIcebram, 'yowasp-icebram');
const runIcebram = icebram.run.bind(icebram);

const icemulti = new Application(resourceFileURL, instantiateIcemulti, 'yowasp-icemulti');
const icemulti = new Application(resources, instantiateIcemulti, 'yowasp-icemulti');
const runIcemulti = icemulti.run.bind(icemulti);

const icepack = new Application(resourceFileURL, instantiateIcepack, 'yowasp-icepack');
const icepack = new Application(resources, instantiateIcepack, 'yowasp-icepack');
const runIcepack = icepack.run.bind(icepack);

const iceunpack = new Application(resourceFileURL, instantiateIcepack, 'yowasp-iceunpack');
const iceunpack = new Application(resources, instantiateIcepack, 'yowasp-iceunpack');
const runIceunpack = iceunpack.run.bind(iceunpack);

const nextpnrIce40 = new Application(resourceFileURL, instantiateNextpnrIce40, 'yowasp-nextpnr-ice40');
const nextpnrIce40 = new Application(resources, instantiateNextpnrIce40, 'yowasp-nextpnr-ice40');
const runNextpnrIce40 = nextpnrIce40.run.bind(nextpnrIce40);

export {
Expand Down
14 changes: 7 additions & 7 deletions npmjs-machxo2/lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,24 @@ import { instantiate as instantiateNextpnrMachxo2 } from '../gen/nextpnr-machxo2

export { Exit } from '@yowasp/runtime';

const resourceFileURL = new URL('./resources-nextpnr-machxo2.js', import.meta.url);
const resources = new URL(() => './resources-nextpnr-machxo2.js');

const ecppll = new Application(resourceFileURL, instantiateEcppll, 'yowasp-ecppll');
const ecppll = new Application(resources, instantiateEcppll, 'yowasp-ecppll');
const runEcppll = ecppll.run.bind(ecppll);

const ecpbram = new Application(resourceFileURL, instantiateEcpbram, 'yowasp-ecpbram');
const ecpbram = new Application(resources, instantiateEcpbram, 'yowasp-ecpbram');
const runEcpbram = ecpbram.run.bind(ecpbram);

const ecpmulti = new Application(resourceFileURL, instantiateEcpmulti, 'yowasp-ecpmulti');
const ecpmulti = new Application(resources, instantiateEcpmulti, 'yowasp-ecpmulti');
const runEcpmulti = ecpmulti.run.bind(ecpmulti);

const ecppack = new Application(resourceFileURL, instantiateEcppack, 'yowasp-ecppack');
const ecppack = new Application(resources, instantiateEcppack, 'yowasp-ecppack');
const runEcppack = ecppack.run.bind(ecppack);

const ecpunpack = new Application(resourceFileURL, instantiateEcpunpack, 'yowasp-ecpunpack');
const ecpunpack = new Application(resources, instantiateEcpunpack, 'yowasp-ecpunpack');
const runEcpunpack = ecpunpack.run.bind(ecpunpack);

const nextpnrMachxo2 = new Application(resourceFileURL, instantiateNextpnrMachxo2, 'yowasp-nextpnr-machxo2');
const nextpnrMachxo2 = new Application(resources, instantiateNextpnrMachxo2, 'yowasp-nextpnr-machxo2');
const runNextpnrMachxo2 = nextpnrMachxo2.run.bind(nextpnrMachxo2);

export {
Expand Down
6 changes: 3 additions & 3 deletions npmjs-nexus/lib/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ import { instantiate as instantiateNextpnrNexus } from '../gen/nextpnr-nexus.js'

export { Exit } from '@yowasp/runtime';

const resourceFileURL = new URL('./resources-nextpnr-nexus.js', import.meta.url);
const resources = () => import('./resources-nextpnr-nexus.js');

const prjoxide = new Application(resourceFileURL, instantiatePrjoxide, 'yowasp-prjoxide');
const prjoxide = new Application(resources, instantiatePrjoxide, 'yowasp-prjoxide');
const runPrjoxide = prjoxide.run.bind(prjoxide);

const nextpnrNexus = new Application(resourceFileURL, instantiateNextpnrNexus, 'yowasp-nextpnr-nexus');
const nextpnrNexus = new Application(resources, instantiateNextpnrNexus, 'yowasp-nextpnr-nexus');
const runNextpnrNexus = nextpnrNexus.run.bind(nextpnrNexus);

export {
Expand Down

0 comments on commit f1edf65

Please sign in to comment.