Skip to content

Commit

Permalink
build-bundle: hide generated source from vat finder
Browse files Browse the repository at this point in the history
  • Loading branch information
dckc committed Nov 27, 2019
1 parent 90e885a commit 972ffb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/build-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import bundleSource from '@agoric/bundle-source';
async function main(argv, pkg, { open, rollup, resolvePlugin, pathResolve }) {
if (argv.includes('--vats')) {
for (const src of argv.slice(3)) {
const dest = src.replace(/.js$/, '-src.js');
const dest = src.replace(/vat-([^\.]+).js$/, 'vat_$1-src.js');
await bundle1(src, dest);
}
} else if (argv.length < 4) {
Expand All @@ -14,7 +14,7 @@ async function main(argv, pkg, { open, rollup, resolvePlugin, pathResolve }) {
for (const [vat, src] of [['vattp', 'vat-tp/vattp'],
['comms', 'comms/index'],
['timer', 'vat-timerWrapper']]) {
const [startFilename, dest] = [`${pkg}/src/vats/${src}.js`, `${pkg}/src/bundles/vat-${vat}-src.js`];
const [startFilename, dest] = [`${pkg}/src/vats/${src}.js`, `${pkg}/src/bundles/vat_${vat}-src.js`];
await bundle1(startFilename, dest);
}
} else {
Expand Down

0 comments on commit 972ffb5

Please sign in to comment.