Skip to content

Commit 00377ec

Browse files
Taz Singhclaude
andcommitted
Add prepare script for git URL installs
Enables installing directly from GitHub without publishing to npm. The prepare script builds the dist/ folder during yarn/npm install. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e579f87 commit 00377ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"dev": "vitest watch",
1313
"test": "vitest --run",
1414
"build": "tsup ./src/workerSwr.ts --format esm,cjs --dts",
15+
"prepare": "tsup ./src/workerSwr.ts --format esm,cjs --dts",
1516
"release": "pnpm build && pnpm test && pnpm publish --tag beta"
1617
},
1718
"exports": {

0 commit comments

Comments
 (0)