From efbea24de71f2287993b52ed1cef1a2dd6a53f81 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Fri, 24 Jan 2020 19:59:15 -0800 Subject: [PATCH] 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. --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 1661f4008..b697fd103 100644 --- a/package.json +++ b/package.json @@ -37,6 +37,7 @@ "build:ssr": "node build/ssr.js", "build:cover": "node build/cover.js", "build": "rimraf lib themes/* && run-s build:js build:css build:css:min build:ssr build:cover", + "prepare": "npm run build", "pub:next": "cross-env RELEASE_TAG=next sh build/release.sh", "pub": "sh build/release.sh", "postinstall": "opencollective postinstall"