Skip to content

Commit

Permalink
fix: Remove CommonJS build (#422)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: remove extra commonjs build, use starting point in package.json `main` field.
  • Loading branch information
juanjoDiaz authored and knownasilya committed Sep 9, 2019
1 parent 3e296f6 commit 5ce0089
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
1 change: 0 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default [
{
input: 'lib/json2csv.js',
output: [
{ file: pkg.main, format: 'cjs' },
{ file: pkg.module, format: 'es' }
],
external: [ 'os', 'stream' ],
Expand Down

0 comments on commit 5ce0089

Please sign in to comment.