From 5ce008985dfe05290c970b1cbd46dcdbedb7c502 Mon Sep 17 00:00:00 2001 From: Juanjo Diaz Date: Mon, 9 Sep 2019 20:21:06 +0300 Subject: [PATCH] fix: Remove CommonJS build (#422) BREAKING CHANGE: remove extra commonjs build, use starting point in package.json `main` field. --- package.json | 2 +- rollup.config.js | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/package.json b/package.json index 5493a160..e15ba3c6 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "bin": { "json2csv": "./bin/json2csv.js" }, - "main": "dist/json2csv.cjs.js", + "main": "lib/json2csv.js", "module": "dist/json2csv.esm.js", "browser": "dist/json2csv.umd.js", "repository": { diff --git a/rollup.config.js b/rollup.config.js index 8a25cb0d..05670a1b 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -30,7 +30,6 @@ export default [ { input: 'lib/json2csv.js', output: [ - { file: pkg.main, format: 'cjs' }, { file: pkg.module, format: 'es' } ], external: [ 'os', 'stream' ],