Skip to content

Commit

Permalink
fix: add cjs built files during prepublish
Browse files Browse the repository at this point in the history
  • Loading branch information
juanjoDiaz committed Nov 14, 2022
1 parent 1a6ba66 commit e895ac3
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 11 deletions.
5 changes: 2 additions & 3 deletions package.json
Expand Up @@ -42,10 +42,9 @@
"test": "npm run test:raw -w @json2csv/cli -w @json2csv/plainjs -w @json2csv/node -w @json2csv/whatwg | tap-spec",
"test-with-coverage": "c8 --include 'packages/*/src' --include 'packages/*/bin' --reporter=text --reporter=lcov npm test",
"build:cdn": "node build-cdn.js",
"build:cjs": "npm run build -w @json2csv/plainjs -w @json2csv/node -w @json2csv/whatwg -w @json2csv/formatters -w @json2csv/transforms",
"build:cjs": "npm run build:cjs -w @json2csv/plainjs -w @json2csv/node -w @json2csv/whatwg -w @json2csv/formatters -w @json2csv/transforms",
"build": "npm run build:cdn && npm run build:cjs",
"deprendencies:update-internal": "npm run deprendencies:update-internal -w @json2csv/cli -w @json2csv/plainjs -w @json2csv/node -w @json2csv/whatwg",
"prepublishOnly": "npm run build:cjs"
"deprendencies:update-internal": "npm run deprendencies:update-internal -w @json2csv/cli -w @json2csv/plainjs -w @json2csv/node -w @json2csv/whatwg"
},
"devDependencies": {
"@babel/eslint-parser": "^7.18.2",
Expand Down
3 changes: 2 additions & 1 deletion packages/formatters/package.json
Expand Up @@ -38,6 +38,7 @@
"scripts": {
"lint": "eslint src",
"test": "echo \"Error: no test specified\" && exit 1",
"build": "node ../../build-cjs.js formatters"
"build:cjs": "node ../../build-cjs.js formatters",
"prepublishOnly": "npm run build:cjs"
}
}
5 changes: 3 additions & 2 deletions packages/node/package.json
Expand Up @@ -40,8 +40,9 @@
"test": "npm run test:raw | tap-spec",
"test-with-coverage": "c8 --reporter=text npm test",
"test:raw": "node test",
"build": "node ../../build-cjs.js node",
"deprendencies:update-internal": "npm uninstall @json2csv/plainjs && npm install @json2csv/plainjs"
"deprendencies:update-internal": "npm uninstall @json2csv/plainjs && npm install @json2csv/plainjs",
"build:cjs": "node ../../build-cjs.js node",
"prepublishOnly": "npm run build:cjs"
},
"dependencies": {
"@json2csv/plainjs": "^6.1.1"
Expand Down
5 changes: 3 additions & 2 deletions packages/plainjs/package.json
Expand Up @@ -40,8 +40,9 @@
"test": "npm run test:raw | tap-spec",
"test-with-coverage": "c8 --reporter=text npm test",
"test:raw": "node test",
"build": "node ../../build-cjs.js plainjs",
"deprendencies:update-internal": "npm uninstall @json2csv/formatters && npm install @json2csv/formatters"
"deprendencies:update-internal": "npm uninstall @json2csv/formatters && npm install @json2csv/formatters",
"build:cjs": "node ../../build-cjs.js plainjs",
"prepublishOnly": "npm run build:cjs"
},
"dependencies": {
"@json2csv/formatters": "^6.1.1",
Expand Down
3 changes: 2 additions & 1 deletion packages/transforms/package.json
Expand Up @@ -38,7 +38,8 @@
"scripts": {
"lint": "eslint src",
"test": "echo \"Error: no test specified\" && exit 1",
"build": "node ../../build-cjs.js transforms"
"build:cjs": "node ../../build-cjs.js transforms",
"prepublishOnly": "npm run build:cjs"
},
"dependencies": {
"lodash.get": "^4.4.2"
Expand Down
5 changes: 3 additions & 2 deletions packages/whatwg/package.json
Expand Up @@ -40,8 +40,9 @@
"test": "npm run test:raw | tap-spec",
"test-with-coverage": "c8 --reporter=text npm test",
"test:raw": "node test",
"build": "node ../../build-cjs.js whatwg",
"deprendencies:update-internal": "npm uninstall @json2csv/plainjs && npm install @json2csv/plainjs"
"deprendencies:update-internal": "npm uninstall @json2csv/plainjs && npm install @json2csv/plainjs",
"build:cjs": "node ../../build-cjs.js whatwg",
"prepublishOnly": "npm run build:cjs"
},
"dependencies": {
"@json2csv/plainjs": "^6.1.1"
Expand Down

0 comments on commit e895ac3

Please sign in to comment.