fix: embed the helpers for the cli

This commit is contained in:
Marvin ROGER 2018-07-12 11:59:49 +02:00
commit 9f22c47a2d

View file

@ -39,6 +39,9 @@ const config = [
output: { file: pkg.bin.nanocurrency, format: 'cjs', banner: '#!/usr/bin/env node' },
plugins: [resolve(), commonjs(), typescript({ useTsconfigDeclarationDir: true })],
external(id) {
// we'll want to embed the helpers
if (id === 'tslib') return false;
return /^[\w-]+$/.test(id) || id === '../nanocurrency.cjs';
},
},