Skip to content

Commit 44f4dee

Browse files
committed
chore: add prepublishOnly script to ensure correct publishing of the package
1 parent 73189db commit 44f4dee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
"license": "MIT",
107107
"scripts": {
108108
"build": "tsc",
109-
"test": "vitest"
109+
"test": "vitest",
110+
"prepublishOnly": "npm run test -- --run && npm run build"
110111
}
111112
}

0 commit comments

Comments
 (0)