From f86d0186d2420d3502b49d8a98fcd262aaa1b362 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sat, 20 Jan 2024 11:18:53 +0900 Subject: [PATCH] fix(dev): fix pnpm dev --- packages/misskey-bubble-game/package.json | 1 + pnpm-lock.yaml | 6 ++++++ scripts/dev.mjs | 24 +++++++++++++++++------ 3 files changed, 25 insertions(+), 6 deletions(-) diff --git a/packages/misskey-bubble-game/package.json b/packages/misskey-bubble-game/package.json index 806d69367..852c923c3 100644 --- a/packages/misskey-bubble-game/package.json +++ b/packages/misskey-bubble-game/package.json @@ -18,6 +18,7 @@ "@typescript-eslint/eslint-plugin": "6.19.0", "@typescript-eslint/parser": "6.19.0", "eslint": "8.56.0", + "nodemon": "3.0.2", "typescript": "5.3.3" }, "files": [ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0a8040372..c18cee30c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1059,6 +1059,9 @@ importers: eslint: specifier: 8.56.0 version: 8.56.0 + nodemon: + specifier: 3.0.2 + version: 3.0.2 typescript: specifier: 5.3.3 version: 5.3.3 @@ -1180,6 +1183,9 @@ importers: eslint: specifier: 8.56.0 version: 8.56.0 + nodemon: + specifier: 3.0.2 + version: 3.0.2 typescript: specifier: 5.3.3 version: 5.3.3 diff --git a/scripts/dev.mjs b/scripts/dev.mjs index ed0ea1fb3..9b60af657 100644 --- a/scripts/dev.mjs +++ b/scripts/dev.mjs @@ -28,6 +28,24 @@ await execa('pnpm', ['build-assets'], { stderr: process.stderr, }); +await execa('pnpm', ['--filter', 'misskey-js', 'build'], { + cwd: _dirname + '/../', + stdout: process.stdout, + stderr: process.stderr, +}); + +await execa('pnpm', ['--filter', 'misskey-reversi', 'build'], { + cwd: _dirname + '/../', + stdout: process.stdout, + stderr: process.stderr, +}); + +await execa('pnpm', ['--filter', 'misskey-bubble-game', 'build'], { + cwd: _dirname + '/../', + stdout: process.stdout, + stderr: process.stderr, +}); + execa('pnpm', ['build-pre', '--watch'], { cwd: _dirname + '/../', stdout: process.stdout, @@ -58,12 +76,6 @@ execa('pnpm', ['--filter', 'sw', 'watch'], { stderr: process.stderr, }); -execa('pnpm', ['--filter', 'misskey-js', 'watch'], { - cwd: _dirname + '/../', - stdout: process.stdout, - stderr: process.stderr, -}); - execa('pnpm', ['--filter', 'misskey-reversi', 'watch'], { cwd: _dirname + '/../', stdout: process.stdout,