fix: embed the helpers for the cli
This commit is contained in:
parent
8626a2a4c5
commit
9f22c47a2d
1 changed files with 3 additions and 0 deletions
|
|
@ -39,6 +39,9 @@ const config = [
|
||||||
output: { file: pkg.bin.nanocurrency, format: 'cjs', banner: '#!/usr/bin/env node' },
|
output: { file: pkg.bin.nanocurrency, format: 'cjs', banner: '#!/usr/bin/env node' },
|
||||||
plugins: [resolve(), commonjs(), typescript({ useTsconfigDeclarationDir: true })],
|
plugins: [resolve(), commonjs(), typescript({ useTsconfigDeclarationDir: true })],
|
||||||
external(id) {
|
external(id) {
|
||||||
|
// we'll want to embed the helpers
|
||||||
|
if (id === 'tslib') return false;
|
||||||
|
|
||||||
return /^[\w-]+$/.test(id) || id === '../nanocurrency.cjs';
|
return /^[\w-]+$/.test(id) || id === '../nanocurrency.cjs';
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue