From 94f6f9af9da0768d3dbb24476deca5dda173ba3b Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Thu, 11 Mar 2021 11:01:01 +0100 Subject: [PATCH] Fix rollup config for CLI tool --- .../javascript/packages/schema/rollup.config.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/implementations/javascript/packages/schema/rollup.config.js b/implementations/javascript/packages/schema/rollup.config.js index ba33f5b..d4e11db 100644 --- a/implementations/javascript/packages/schema/rollup.config.js +++ b/implementations/javascript/packages/schema/rollup.config.js @@ -38,12 +38,7 @@ export default [{ input: 'lib/bin/preserves-schema-ts.js', output: [{ file: 'dist/bin/preserves-schema-ts.js', - format: 'umd', - name: 'PreservesSchemaTS', - globals: { - 'fs': 'fs', - '@preserves/core': 'Preserves', - }, + format: 'commonjs', }], - external: ['fs', '@preserves/core'], + external: ['fs', 'path', 'glob', 'yargs/yargs', '@preserves/core'], }]