Skip to content

Commit

Permalink
Using prepare script instead of publishOnly in openapi-request-valida…
Browse files Browse the repository at this point in the history
…tor, updating scripts to use ci insead of npm i.
  • Loading branch information
jsdevel committed Jun 21, 2019
1 parent 0120f00 commit a1cdd85
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -6,6 +6,8 @@ node_js:
notifications:
email:
on_success: "never"
install:
- npm ci
script:
- "npm run lint"
- "./bin/test"
Expand Down
2 changes: 1 addition & 1 deletion bin/publish
Expand Up @@ -8,7 +8,7 @@ function publish() {
pushd "$1" > /dev/null
cp ../../.npmignore .
rm -rf node_modules
npm i
npm ci
npm version "$2"
npm pu
git add .
Expand Down
2 changes: 1 addition & 1 deletion bin/test
Expand Up @@ -7,7 +7,7 @@ export PATH="$PWD/bin/dev-tools:$PWD/node_modules/.bin:$PATH"
function test_package() {
pushd "$1" > /dev/null
shift
npm i
npm ci
npm run "$@"
popd > /dev/null
}
Expand Down
2 changes: 1 addition & 1 deletion packages/openapi-request-validator/package.json
Expand Up @@ -9,7 +9,7 @@
],
"scripts": {
"cover": "nyc",
"prepublishOnly": "tsc",
"prepare": "tsc",
"test-watch": "tsc && mocha --watch-extensions ts -w",
"test": "mocha",
"travis-test": "npm run cover"
Expand Down

0 comments on commit a1cdd85

Please sign in to comment.