From 65740da979773eb6ae88b9e0fae8ff6c8c65c2e9 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 13 Nov 2021 13:01:22 +0900 Subject: [PATCH 1/3] =?UTF-8?q?npm=20script=E3=81=AE=E4=BA=92=E6=8F=9B?= =?UTF-8?q?=E6=80=A7=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 3 ++- scripts/clean-all.js | 12 ++++++++++++ scripts/clean.js | 6 ------ 3 files changed, 14 insertions(+), 7 deletions(-) create mode 100644 scripts/clean-all.js diff --git a/package.json b/package.json index 86f8a03cbe..53288b44c8 100644 --- a/package.json +++ b/package.json @@ -28,7 +28,8 @@ "mocha": "cd packages/backend && cross-env TS_NODE_FILES=true TS_NODE_TRANSPILE_ONLY=true TS_NODE_PROJECT=\"./test/tsconfig.json\" npx mocha", "test": "npm run mocha", "format": "gulp format", - "clean": "node ./scripts/clean.js" + "clean": "node ./scripts/clean.js", + "clean-all": "node ./scripts/clean-all.js" }, "dependencies": { "@types/gulp": "4.0.9", diff --git a/scripts/clean-all.js b/scripts/clean-all.js new file mode 100644 index 0000000000..814ff3f257 --- /dev/null +++ b/scripts/clean-all.js @@ -0,0 +1,12 @@ +const fs = require('fs'); + +(async () => { + fs.rmSync(__dirname + '/../packages/backend/built', { recursive: true, force: true }); + fs.rmSync(__dirname + '/../packages/backend/node_modules', { recursive: true, force: true }); + + fs.rmSync(__dirname + '/../packages/client/built', { recursive: true, force: true }); + fs.rmSync(__dirname + '/../packages/client/node_modules', { recursive: true, force: true }); + + fs.rmSync(__dirname + '/../built', { recursive: true, force: true }); + fs.rmSync(__dirname + '/../node_modules', { recursive: true, force: true }); +})(); diff --git a/scripts/clean.js b/scripts/clean.js index 1dca10605f..a14f1fb35b 100644 --- a/scripts/clean.js +++ b/scripts/clean.js @@ -1,13 +1,7 @@ const fs = require('fs'); -const execa = require('execa'); (async () => { fs.rmSync(__dirname + '/../packages/backend/built', { recursive: true, force: true }); - fs.rmSync(__dirname + '/../packages/backend/node_modules', { recursive: true, force: true }); - fs.rmSync(__dirname + '/../packages/client/built', { recursive: true, force: true }); - fs.rmSync(__dirname + '/../packages/client/node_modules', { recursive: true, force: true }); - fs.rmSync(__dirname + '/../built', { recursive: true, force: true }); - fs.rmSync(__dirname + '/../node_modules', { recursive: true, force: true }); })(); From ac7f04e6693bd96d2d175a19d52eba68a8b8e5d2 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 13 Nov 2021 17:02:22 +0900 Subject: [PATCH 2/3] add alias to improve compatibility --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 53288b44c8..bb6d3a30f8 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,8 @@ "test": "npm run mocha", "format": "gulp format", "clean": "node ./scripts/clean.js", - "clean-all": "node ./scripts/clean-all.js" + "clean-all": "node ./scripts/clean-all.js", + "cleanall": "npm run clean-all" }, "dependencies": { "@types/gulp": "4.0.9", From 7f5299cf46ccffc3a1d61c5f7a2c155c0f1503ab Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 13 Nov 2021 17:08:04 +0900 Subject: [PATCH 3/3] 12.96.1 --- CHANGELOG.md | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 032d76e457..cd90898fea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ --> +## 12.96.1 (2021/11/13) +### Improvements +- npm scriptの互換性を向上 + ## 12.96.0 (2021/11/13) ### Improvements diff --git a/package.json b/package.json index bb6d3a30f8..a6a735341e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "misskey", - "version": "12.96.0", + "version": "12.96.1", "codename": "indigo", "repository": { "type": "git",