Skip to content

Commit 97a1c74

Browse files
authored
Add prepublishOnly script to ensure build runs before publish (#3)
1 parent 673fa2b commit 97a1c74

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@hygraph/preview-sdk",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Content preview SDK for seamless real-time content editing in Hygraph CMS",
55
"publishConfig": {
66
"access": "public"
@@ -40,7 +40,8 @@
4040
"lint:fix": "eslint src --ext .ts,.tsx --fix",
4141
"test": "vitest --run --passWithNoTests",
4242
"test:ui": "vitest --ui",
43-
"clean": "rm -rf dist"
43+
"clean": "rm -rf dist",
44+
"prepublishOnly": "npm run build"
4445
},
4546
"keywords": [
4647
"hygraph",

0 commit comments

Comments
 (0)