You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@annotator.apache.org by ge...@apache.org on 2020/09/18 21:10:58 UTC
[incubator-annotator] 02/02: Run ‘yarn build’ in prepare script
This is an automated email from the ASF dual-hosted git repository.
gerben pushed a commit to branch top-level-exports
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
commit 06f3bea4da58026e5b0c5cc18520ebdd83f0596a
Author: Gerben <ge...@treora.com>
AuthorDate: Fri Sep 18 22:37:19 2020 +0200
Run ‘yarn build’ in prepare script
So it also gets run when installing this package as a git dependency.
(see <https://docs.npmjs.com/using-npm/scripts.html#life-cycle-scripts>)
---
package.json | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/package.json b/package.json
index 4acd85c..c62772b 100644
--- a/package.json
+++ b/package.json
@@ -23,8 +23,7 @@
"build:types": "tsc --build",
"clean": "tsc --build --clean && lerna exec -- rimraf LICENSE NOTICE lib",
"lint": "tsc --build && eslint .",
- "prepare": "yarn run build:types && lerna run prepare",
- "prepublishOnly": "yarn run build",
+ "prepare": "yarn run build && lerna run prepare",
"start": "yarn run web:server",
"test": "cross-env BABEL_ENV=test nyc mocha packages/**/*.test.ts",
"validate": "cross-env BABEL_ENV=test mocha test/**/*.test.ts",