Skip to content

Commit efbea24

Browse files
committed
feat: Add a prepare script.
This makes it possible to depend on the docsify package using a git commit hash instead of a version number in package.json, and causes the `lib` folder to be built in those cases, otherwise consumers will try to import from a folder that doesn't exist.
1 parent 1d3246a commit efbea24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"build:ssr": "node build/ssr.js",
3838
"build:cover": "node build/cover.js",
3939
"build": "rimraf lib themes/* && run-s build:js build:css build:css:min build:ssr build:cover",
40+
"prepare": "npm run build",
4041
"pub:next": "cross-env RELEASE_TAG=next sh build/release.sh",
4142
"pub": "sh build/release.sh",
4243
"postinstall": "opencollective postinstall"

0 commit comments

Comments
 (0)