diff --git a/packages/misskey-bubble-game/package.json b/packages/misskey-bubble-game/package.json index 5a6b952e07..9de7ba005f 100644 --- a/packages/misskey-bubble-game/package.json +++ b/packages/misskey-bubble-game/package.json @@ -2,6 +2,7 @@ "type": "module", "name": "misskey-bubble-game", "version": "0.0.1", + "types": "./built/dts/index.d.ts", "exports": { ".": { "import": "./built/esm/index.js", @@ -15,7 +16,7 @@ "scripts": { "build": "node ./build.js", "build:tsc": "npm run tsc", - "tsc": "npm run ts-esm && npm run ts-dts", + "tsc": "npm run tsc-esm && npm run tsc-dts", "tsc-esm": "tsc --outDir built/esm", "tsc-dts": "tsc --outDir built/dts --declaration true --emitDeclarationOnly true --declarationMap true", "watch": "nodemon -w src -e ts,js,cjs,mjs,json --exec \"pnpm run build:tsc\"", diff --git a/packages/misskey-js/package.json b/packages/misskey-js/package.json index 06c3ce6b54..ad9afd6742 100644 --- a/packages/misskey-js/package.json +++ b/packages/misskey-js/package.json @@ -1,7 +1,7 @@ { "type": "module", "name": "misskey-js", - "version": "2024.2.0-beta.3", + "version": "2024.2.0-beta.7", "description": "Misskey SDK for JavaScript", "types": "./built/dts/index.d.ts", "exports": { @@ -19,7 +19,7 @@ "ts": "npm run ts-esm && npm run ts-dts", "ts-esm": "tsc --outDir built/esm", "ts-dts": "tsc --outDir built/dts --declaration true --emitDeclarationOnly true --declarationMap true", - "watch": "nodemon -w src -e ts,js,cjs,mjs,json --exec \"pnpm run build\"", + "watch": "nodemon -w src -e ts,js,cjs,mjs,json --exec \"pnpm run ts\"", "tsd": "tsd", "api": "pnpm api-extractor run --local --verbose", "api-prod": "pnpm api-extractor run --verbose", diff --git a/packages/misskey-reversi/package.json b/packages/misskey-reversi/package.json index bd8d4b498c..52d497d3f8 100644 --- a/packages/misskey-reversi/package.json +++ b/packages/misskey-reversi/package.json @@ -2,6 +2,7 @@ "type": "module", "name": "misskey-reversi", "version": "0.0.1", + "types": "./built/dts/index.d.ts", "exports": { ".": { "import": "./built/esm/index.js", diff --git a/scripts/dev.mjs b/scripts/dev.mjs index dd8b9abd01..d8f369af3f 100644 --- a/scripts/dev.mjs +++ b/scripts/dev.mjs @@ -28,19 +28,19 @@ await execa('pnpm', ['build-assets'], { stderr: process.stderr, }); -await execa('pnpm', ['--filter', 'misskey-js', 'build'], { +await execa('pnpm', ['--filter', 'misskey-js', 'ts'], { cwd: _dirname + '/../', stdout: process.stdout, stderr: process.stderr, }); -await execa('pnpm', ['--filter', 'misskey-reversi', 'build'], { +await execa('pnpm', ['--filter', 'misskey-reversi', 'build:tsc'], { cwd: _dirname + '/../', stdout: process.stdout, stderr: process.stderr, }); -await execa('pnpm', ['--filter', 'misskey-bubble-game', 'build'], { +await execa('pnpm', ['--filter', 'misskey-bubble-game', 'build:tsc'], { cwd: _dirname + '/../', stdout: process.stdout, stderr: process.stderr, @@ -82,6 +82,12 @@ 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,