Skip to content

Commit 43c2b18

Browse files
committed
fix: Fix npm publish not working.
1 parent 4847b59 commit 43c2b18

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@
142142
"version": "oclif readme && git add README.md",
143143
"start:dev": "./bin/dev.js",
144144
"start:vm": "npm run build && npm run pack:macos && npm run start:vm",
145-
"deploy": "npm run pkg && npm run notarize && npm run upload"
145+
"deploy": "npm run pkg && npm run notarize && npm run upload",
146+
"prepublishOnly": "npm run build"
146147
},
147148
"version": "1.0.0",
148149
"bugs": "https://github.com/codifycli/codify/issues",

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export const VERSION = (await import("../package.json", { assert: { type: "json" } })).default.version;
1+
export const VERSION = (await import("../package.json", { with: { type: "json" } })).default.version;
22

33
export const config = {
44
loginServerPort: 51_039,

0 commit comments

Comments
 (0)