Skip to content

Commit

Permalink
build-bundle: --vats
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Nov 27, 2019
1 parent 497feae commit 90e885a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/build-bundle.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import bundleSource from '@agoric/bundle-source';

async function main(argv, pkg, { open, rollup, resolvePlugin, pathResolve }) {
if (argv.length < 4) {
if (argv.includes('--vats')) {
for (const src of argv.slice(3)) {
const dest = src.replace(/.js$/, '-src.js');
await bundle1(src, dest);
}
} else if (argv.length < 4) {
for (const dev of ['mailbox', 'command', 'timer']) {
const [startFilename, dest] = [`${pkg}/src/devices/${dev}-src.js`, `${pkg}/src/bundles/${dev}-src.js`];
await bundle1(startFilename, dest);
Expand Down

0 comments on commit 90e885a

Please sign in to comment.