Convert prepublish script to prepare

This avoids the deprecation warning about `prepublish` scripts. It should not
change when the script is run.
pull/21833/head
J. Ryan Stinnett 2019-03-11 16:06:05 +00:00
parent 7c947d87ab
commit f6466802b0
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@
"lintall": "eslint src/ test/", "lintall": "eslint src/ test/",
"lintwithexclusions": "eslint --max-warnings 0 --ignore-path .eslintignore.errorfiles src test", "lintwithexclusions": "eslint --max-warnings 0 --ignore-path .eslintignore.errorfiles src test",
"clean": "rimraf lib", "clean": "rimraf lib",
"prepublish": "yarn clean && yarn build && git rev-parse HEAD > git-revision.txt", "prepare": "yarn clean && yarn build && git rev-parse HEAD > git-revision.txt",
"test": "karma start --single-run=true --browsers ChromeHeadless", "test": "karma start --single-run=true --browsers ChromeHeadless",
"test-multi": "karma start" "test-multi": "karma start"
}, },