Fixed build for Windows: rm command is not supported. use rimraf package
正在显示
... | @@ -9,7 +9,7 @@ | ... | @@ -9,7 +9,7 @@ |
"url": "https://github.com/kyknow/nestjs-redis" | "url": "https://github.com/kyknow/nestjs-redis" | ||
}, | }, | ||
"scripts": { | "scripts": { | ||
"build": "rm -rf dist && tsc -p tsconfig.json", | "build": "rimraf dist && tsc -p tsconfig.json", | ||
"precommit": "lint-staged", | "precommit": "lint-staged", | ||
"prepublish:npm": "yarn run build", | "prepublish:npm": "yarn run build", | ||
"publish:npm": "yarn publish --access public", | "publish:npm": "yarn publish --access public", | ||
... | @@ -31,6 +31,7 @@ | ... | @@ -31,6 +31,7 @@ |
"@types/node": "^10.7.1", | "@types/node": "^10.7.1", | ||
"cz-conventional-changelog": "^2.1.0", | "cz-conventional-changelog": "^2.1.0", | ||
"jest": "^23.6.0", | "jest": "^23.6.0", | ||
"rimraf": "^2.6.3", | |||
"ts-jest": "^23.10.5", | "ts-jest": "^23.10.5", | ||
"typescript": "^2.4.2" | "typescript": "^2.4.2" | ||
}, | }, | ||
... | ... |
请
注册
或者
登录
后发表评论