Skip to content

Commit

Permalink
build: update script to only run in package's working directory
Browse files Browse the repository at this point in the history
  • Loading branch information
motss committed Jan 22, 2022
1 parent cfe4ff7 commit b8cb8c8
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 26 deletions.
48 changes: 24 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,11 @@
"build": "tsc -p tsconfig.prod.json",
"check": "package-check",
"clean": "rm -rf .*cache *.log coverage/ dist/ logs/",
"postinstall": "if [ \"$CI\" != 'true' ]; then npm dedupe; fi",
"postinstall": "if [ \"$CI\" != 'true' ] && [ \"$npm_package_name\" == 'app-datepicker' ]; then npm x -y -- simple-git-hooks && npm dedupe; fi",
"lint": "eslint src --ext .js,.ts",
"lint-commit": "npm x -y -- commitlint --edit",
"lint:build": "npm run lint -- --config .build.eslintrc.json",
"nano-staged": "nano-staged",
"prepare": "if [ \"$CI\" != 'true' ]; then npm x -y -- simple-git-hooks; fi",
"prepublishOnly": "npm run lint:build && npm run build",
"serve": "npm x -y @web/dev-server@latest -- wds --node-resolve -dw -p 3000 -a index.html",
"test": "npm run test:helpers && npm run test:elements",
Expand Down

0 comments on commit b8cb8c8

Please sign in to comment.