chore: Generate bundle specific for running tests
This commit is contained in:
parent
f70c0a5f62
commit
68589d023c
77 changed files with 923 additions and 0 deletions
|
@ -40,4 +40,16 @@ let result
|
|||
const info = await esbuild.analyzeMetafile(result.metafile)
|
||||
console.log(info)
|
||||
}
|
||||
|
||||
// Also build a version that has all dependencies bundled
|
||||
// This makes it easy to run tests
|
||||
await esbuild
|
||||
.build({
|
||||
...options,
|
||||
outfile: 'tests/dist/index.mjs',
|
||||
format: 'esm',
|
||||
external: [],
|
||||
})
|
||||
.catch(() => process.exit(1))
|
||||
|
||||
})()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue