Skip to content

Commit 353a697

Browse files
committed
Npm scripts: use "prepare" instead of "prepublishOnly"
When a prepare script is defined, npm and yarn will build uppy automatically if it's being depended on through a git URL. This is useful when downstream projects don't want to wait for the next release to be tagged. See npm/npm#3055 (comment) See also yarnpkg/yarn#3553
1 parent 3ac64e5 commit 353a697

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
"web:update:frontpage:code:sample": "cd website && ./node_modules/.bin/hexo generate && cp -f public/frontpage-code-sample.html ./themes/uppy/layout/partials/frontpage-code-sample.html",
169169
"web": "npm-run-all web:clean web:build",
170170
"uploadcdn": "bin/upload-to-cdn.sh",
171-
"prepublishOnly": "npm-run-all clean build",
171+
"prepare": "npm-run-all clean build",
172172
"contributors": "githubcontrib --owner transloadit --repo uppy --cols 6 $([ \"${GITHUB_TOKEN:-}\" == \"\" ] && echo \"\" || echo \"--authToken ${GITHUB_TOKEN}\") --showlogin true --sortOrder desc",
173173
"contributors:save": "replace-x -m '<!--contributors-->[\\s\\S]+<!--/contributors-->' \"<!--contributors-->\n## Contributors\n\n$(npm run --silent contributors)\n<!--/contributors-->\" README.md"
174174
}

0 commit comments

Comments
 (0)