Skip to content

Commit c9107ea

Browse files
authored
fix: issue with main field script (#1792)
1 parent 4138b9b commit c9107ea

File tree

3 files changed

+30
-22
lines changed

3 files changed

+30
-22
lines changed

.changeset/calm-hornets-promise.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@marko/babel-utils": patch
3+
"@marko/compiler": patch
4+
"marko": patch
5+
"@marko/translator-default": patch
6+
---
7+
8+
Fix broken previous release where the "main" field for package.json files was not correctly updated when published

package-lock.json

Lines changed: 20 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"scripts": {
55
"build": "npm exec --ws -- babel ./src --out-dir ./dist --delete-dir-on-start --copy-files --config-file ../../babel.config.js --env-name=production && npm run build:types",
66
"build:types": "node scripts/types-babel-types.mjs > packages/compiler/dist/types.d.ts && node scripts/types-babel-traverse.js > packages/compiler/dist/traverse.d.ts",
7-
"publish": "ENTRY=main:npm npm run set-entry && npm run build && changeset publish && ENTRY=main:dev npm run set-entry",
7+
"publish": "ENTRY=main:npm npm run set-entry && npm run build && changeset publish && ENTRY=main:dev npm run set-entry && npm ci",
88
"change": "changeset add",
99
"test": "mocha \"packages/*/test/{*.test.js,*/*.test.js}\"",
1010
"test:watch": "npm run mocha -- --recursive --watch",
@@ -15,7 +15,7 @@
1515
"ci:test": "cross-env NODE_OPTIONS=\"--max-old-space-size=4096\" MARKO_DEBUG=1 NODE_ENV=test nyc --reporter=text npm test",
1616
"ci:report": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
1717
"report": "nyc report --reporter=html && open ./coverage/index.html",
18-
"set-entry": "npm exec --ws -- dot-json package.json main $\\(dot-json package.json $ENTRY\\)",
18+
"set-entry": "npm exec --ws -c 'dot-json package.json main $(dot-json package.json $ENTRY)'",
1919
"version": "changeset version"
2020
},
2121
"devDependencies": {

0 commit comments

Comments
 (0)