From 44b8ac135fdc0778e1eb4d57f6afdd798f007870 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 20 Jan 2024 11:11:20 +0900 Subject: [PATCH] fix(dev): fix workspace settings --- package.json | 5 ++++- scripts/clean-all.js | 9 +++++++++ scripts/clean.js | 3 +++ scripts/dev.mjs | 12 ++++++++++++ 4 files changed, 28 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 49de5a5ef..ee50cecb1 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,10 @@ "workspaces": [ "packages/frontend", "packages/backend", - "packages/sw" + "packages/sw", + "packages/misskey-js", + "packages/misskey-reversi", + "packages/misskey-bubble-game" ], "private": true, "scripts": { diff --git a/scripts/clean-all.js b/scripts/clean-all.js index 4735eed76..160014a3f 100644 --- a/scripts/clean-all.js +++ b/scripts/clean-all.js @@ -16,6 +16,15 @@ const fs = require('fs'); fs.rmSync(__dirname + '/../packages/sw/built', { recursive: true, force: true }); fs.rmSync(__dirname + '/../packages/sw/node_modules', { recursive: true, force: true }); + fs.rmSync(__dirname + '/../packages/misskey-js/built', { recursive: true, force: true }); + fs.rmSync(__dirname + '/../packages/misskey-js/node_modules', { recursive: true, force: true }); + + fs.rmSync(__dirname + '/../packages/misskey-reversi/built', { recursive: true, force: true }); + fs.rmSync(__dirname + '/../packages/misskey-reversi/node_modules', { recursive: true, force: true }); + + fs.rmSync(__dirname + '/../packages/misskey-bubble-game/built', { recursive: true, force: true }); + fs.rmSync(__dirname + '/../packages/misskey-bubble-game/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 812553e17..09ac78685 100644 --- a/scripts/clean.js +++ b/scripts/clean.js @@ -9,5 +9,8 @@ const fs = require('fs'); fs.rmSync(__dirname + '/../packages/backend/built', { recursive: true, force: true }); fs.rmSync(__dirname + '/../packages/frontend/built', { recursive: true, force: true }); fs.rmSync(__dirname + '/../packages/sw/built', { recursive: true, force: true }); + fs.rmSync(__dirname + '/../packages/misskey-js/built', { recursive: true, force: true }); + fs.rmSync(__dirname + '/../packages/misskey-reversi/built', { recursive: true, force: true }); + fs.rmSync(__dirname + '/../packages/misskey-bubble-game/built', { recursive: true, force: true }); fs.rmSync(__dirname + '/../built', { recursive: true, force: true }); })(); diff --git a/scripts/dev.mjs b/scripts/dev.mjs index 30dbebcf0..ed0ea1fb3 100644 --- a/scripts/dev.mjs +++ b/scripts/dev.mjs @@ -63,3 +63,15 @@ execa('pnpm', ['--filter', 'misskey-js', 'watch'], { stdout: process.stdout, stderr: process.stderr, }); + +execa('pnpm', ['--filter', 'misskey-reversi', 'watch'], { + cwd: _dirname + '/../', + stdout: process.stdout, + stderr: process.stderr, +}); + +execa('pnpm', ['--filter', 'misskey-bubble-game', 'watch'], { + cwd: _dirname + '/../', + stdout: process.stdout, + stderr: process.stderr, +});