Make npm clean scripts platform-agnostic

This commit is contained in:
Michael Lumish 2021-12-08 14:54:56 -05:00
parent 359014eeed
commit 20dbaa8e27
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@
],
"scripts": {
"build": "npm run compile",
"clean": "node -e 'require(\"rimraf\")(\"./build\", () => {})'",
"clean": "rimraf ./build",
"compile": "tsc -p .",
"format": "clang-format -i -style=\"{Language: JavaScript, BasedOnStyle: Google, ColumnLimit: 80}\" src/*.ts test/*.ts",
"lint": "npm run check",

View File

@ -14,7 +14,7 @@
"typings": "build/src/index.d.ts",
"scripts": {
"build": "npm run compile",
"clean": "node -e 'require(\"rimraf\")(\"./build\", () => {})'",
"clean": "rimraf ./build",
"compile": "tsc -p .",
"format": "clang-format -i -style=\"{Language: JavaScript, BasedOnStyle: Google, ColumnLimit: 80}\" src/*.ts test/*.ts",
"lint": "tslint -c node_modules/google-ts-style/tslint.json -p . -t codeFrame --type-check",