From 61adfc4dbff851f5d0cfc5a29edbd12045e8ecb6 Mon Sep 17 00:00:00 2001 From: Carlos Rodrigues Date: Thu, 2 Jul 2020 21:08:21 +0100 Subject: [PATCH] build: build script compat for windows (#26) --- package.json | 3 ++- yarn.lock | 9 ++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 184d1d02..e15724a5 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "dev-client": "tsc -w -p src/client", "dev-client-copy": "node scripts/watchAndCopy", "dev-node": "tsc -w -p src/node", - "build": "rm -rf dist && tsc -p src/client && tsc -p src/node && node scripts/copy", + "build": "rimraf -rf dist && tsc -p src/client && tsc -p src/node && node scripts/copy", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", "prepublishOnly": "yarn build && yarn changelog", "postpublish": "git add CHANGELOG.md && git commit -m 'chore: changelog [ci skip]'" @@ -84,6 +84,7 @@ "lint-staged": "^10.2.1", "npm-run-all": "^4.1.5", "prettier": "^2.0.5", + "rimraf": "^3.0.2", "typescript": "^3.8.3", "yorkie": "^2.0.0" } diff --git a/yarn.lock b/yarn.lock index 0844179c..157934f0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1627,7 +1627,7 @@ glob-parent@^5.1.0, glob-parent@~5.1.0: dependencies: is-glob "^4.0.1" -glob@^7.1.2: +glob@^7.1.2, glob@^7.1.3: version "7.1.6" resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.6.tgz#141f33b81a7c2492e125594307480c46679278a6" integrity sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA== @@ -3235,6 +3235,13 @@ reusify@^1.0.4: resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== +rimraf@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + rollup-plugin-dynamic-import-variables@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/rollup-plugin-dynamic-import-variables/-/rollup-plugin-dynamic-import-variables-1.0.2.tgz#13328bd7c78f6dd1672f8eddb200d1b78b555f36"