Skip to content

Commit

Permalink
fix: make "clean" script command work cross-platform
Browse files Browse the repository at this point in the history
Closes #356.
  • Loading branch information
chriswells0 committed Jul 8, 2023
1 parent 2b9daef commit 43243c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
"build": "npm run clean && npm run lint && tsc",
"changelog": "conventional-changelog -p angular -u",
"changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md",
"clean": "(rm -r ./.nyc_output || true) && (rm -r ./coverage || true) && (rm -r ./dist || true)",
"clean": "node -e \"var { rmdirSync, existsSync } = require('fs'), path = require('path'); ['./.nyc_output', './coverage', './dist'].forEach(fPath => {if (existsSync(path.join(__dirname, fPath))) rmdirSync(path.join(__dirname, fPath), { recursive: true })}); process.exit(0);\"",
"clean:all": "npm run clean && (rm -r ./node_modules || true)",
"cover": "nyc npm run test",
"cover:check": "nyc --check-coverage --reporter=lcov npm run test",
"lint": "eslint --ext .ts --fix src/**/*.ts test/**/*.ts",
"preversion": "npm run build && npm run cover:check",
"postversion": "git push && git push --tags",
"prepare": "npm run build",
"serve": "nodemon ./src/index.ts",
"test": "mocha",
"upgrade": "npx npm-check -u",
"version": "npm run build && npm run changelog:update",
"serve": "nodemon ./src/index.ts"
"version": "npm run build && npm run changelog:update"
},
"devDependencies": {
"@types/chai": "^4.3.5",
Expand Down

0 comments on commit 43243c4

Please sign in to comment.