mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
Use prepack/postpack instead of prepublishOnly/postpublish for export swap
prepack/postpack fire for both 'pack' and 'publish', and postpack always runs after packing regardless of publish success, preventing the working tree from being left in dist-exports state on failure.
This commit is contained in:
parent
96b7f16175
commit
4750842b00
1 changed files with 2 additions and 2 deletions
|
|
@ -19,8 +19,8 @@
|
|||
"dev": "vite build --watch",
|
||||
"build": "vite build && tsc --emitDeclarationOnly",
|
||||
"check-types": "tsc --noEmit",
|
||||
"prepublishOnly": "bun run build && bun run scripts/swap-exports.ts pack",
|
||||
"postpublish": "bun run scripts/swap-exports.ts unpack",
|
||||
"prepack": "bun run build && bun run scripts/swap-exports.ts pack",
|
||||
"postpack": "bun run scripts/swap-exports.ts unpack",
|
||||
"test": "vitest run"
|
||||
},
|
||||
"keywords": [
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue