From 9f22c47a2d861e59711dc4f8dfd576d3575a44b5 Mon Sep 17 00:00:00 2001 From: Marvin ROGER Date: Thu, 12 Jul 2018 11:59:49 +0200 Subject: [PATCH] fix: embed the helpers for the cli --- rollup.config.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rollup.config.js b/rollup.config.js index 92119f7..842e518 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -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'; }, },