🌎 A completely free and open interplanetary-microblogging platform 🚀
  • TypeScript 63%
  • Vue 30.3%
  • JavaScript 5.9%
  • GLSL 0.3%
  • SCSS 0.3%
Find a file
SASAPIYO (SASAGAWA Kiyoshi) 6836fc15c7
fix(backend/build): bundle 外に @tensorflow/tfjs-node を出す (#17501)
`@tensorflow/tfjs-node` はネイティブバイナリを含むパッケージで、rolldown bundle
に取り込まれると、bundle 後の `__dirname` 解決により `@mapbox/node-pre-gyp` の
`find()` がパッケージ root の `package.json` を見失い、たまたまヒットする
`packages/backend/package.json` を validate しようとして `is not node-pre-gyp
ready` Error を永続的に吐く問題があった。

`sharp` / `re2` / `@napi-rs/*` 等の同性質のネイティブモジュールは既に
`externalModules` に登録されているため、同じ扱いで `@tensorflow/tfjs-node` も
external 化することで、ランタイムでは通常通り node_modules から解決され、
node-pre-gyp の path 解決も正しく動作する。

再現条件: NSFW 判定機能(`sensitiveMediaDetection !== 'none'`)を有効にした
インスタンスで、起動後の画像処理ごとに `AiService.detectSensitive` →
`await import('@tensorflow/tfjs-node')` が走るたびに発生。

機能影響: なし(NSFW 判定機能は維持)。エラーログのノイズが解消される。

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-27 19:35:25 +09:00
.claude fix: add-i18n-keyの記述が間違っていたので修正 (#17418) 2026-05-17 19:30:35 +09:00
.config perf: rsa sign on slacc (#17322) 2026-05-12 17:36:49 +09:00
.devcontainer perf: rsa sign on slacc (#17322) 2026-05-12 17:36:49 +09:00
.github docs: AI コーディングエージェント共通設定を追加 (#17396) 2026-05-12 17:56:06 +09:00
.okteto ok-to-test with okteto (#8799) 2022-06-09 00:50:23 +09:00
.vscode enhance(backend): pugをやめ、JSXベースのテンプレートに変更 (#16908) 2025-12-01 18:36:55 +09:00
assets 🎨 2025-05-07 10:44:43 +09:00
chart perf: rsa sign on slacc (#17322) 2026-05-12 17:36:49 +09:00
cypress deps: Update dependencies (#17304) 2026-04-12 00:57:16 +09:00
idea add ideas 2025-09-27 20:53:21 +09:00
locales feat: 投稿通知設定したユーザーをリストで見ることができるように (#17385) 2026-05-12 21:34:45 +09:00
packages fix(backend/build): bundle 外に @tensorflow/tfjs-node を出す (#17501) 2026-05-27 19:35:25 +09:00
patches Revert typeorm patches (#16664) 2025-10-19 11:34:34 +09:00
scripts deps: update dependencies (#17461) 2026-05-22 10:22:24 +09:00
.dockerignore Minify backend (#17054) 2026-01-05 20:56:52 +09:00
.dockleignore fix: aptのキャッシュを削除しないようにする (#9803) 2023-02-05 14:15:59 +09:00
.editorconfig Migration cleanup (#16288) 2025-07-16 15:49:05 +09:00
.gitattributes 改行コードをLFに統一 (#9926) 2023-02-14 13:13:34 +09:00
.gitignore Minify backend (#17054) 2026-01-05 20:56:52 +09:00
.gitmodules enhance: 絵文字データの参照を自前ライブラリに変更 (#17381) 2026-05-09 18:35:38 +09:00
.node-version use node 22.15.0 by default 2025-12-06 17:39:17 +09:00
.vsls.json Add .vsls.json 2018-08-13 00:24:45 +09:00
AGENTS.md docs: AI コーディングエージェント共通設定を追加 (#17396) 2026-05-12 17:56:06 +09:00
CHANGELOG.md fix(backend/build): bundle 外に @tensorflow/tfjs-node を出す (#17501) 2026-05-27 19:35:25 +09:00
CLAUDE.md docs: AI コーディングエージェント共通設定を追加 (#17396) 2026-05-12 17:56:06 +09:00
CODE_OF_CONDUCT.md docs: Update Code of Conduct to version 2.1 (#12150) 2023-11-13 16:52:54 +09:00
codecov.yml Update codecov.yml 2023-02-26 14:17:29 +09:00
compose.local-db.yml Update PostgreSQL volume mount paths for PostgreSQL 18 (#16986) 2025-12-14 11:32:42 +09:00
compose_example.yml Update PostgreSQL volume mount paths for PostgreSQL 18 (#16986) 2025-12-14 11:32:42 +09:00
CONTRIBUTING.md Update CONTRIBUTING.md 2026-05-15 10:12:17 +09:00
COPYING enhance: 絵文字データの参照を自前ライブラリに変更 (#17381) 2026-05-09 18:35:38 +09:00
crowdin.yml ドキュメントをmisskey-hubに移行 2021-11-05 16:18:52 +09:00
cypress.config.ts Feat: サーバー初期設定ウィザード (#15954) 2025-05-09 19:41:54 +09:00
Dockerfile fix(docker): runnerでのpnpmの依存関係チェックを無効化 (#17425) 2026-05-18 10:23:47 +09:00
healthcheck.sh feat(backend): add /healthz endpoint (#13834) 2024-05-23 15:19:52 +09:00
LICENSE Use AGPLv3 2018-03-28 22:56:28 +09:00
package.json deps: update dependencies (#17461) 2026-05-22 10:22:24 +09:00
pnpm-lock.yaml deps(backend): update typeorm to v1 (#17476) 2026-05-22 14:27:34 +09:00
pnpm-workspace.yaml deps: update dependencies (#17461) 2026-05-22 10:22:24 +09:00
Procfile Create Procfile 2019-04-05 18:17:30 +09:00
README.md Update README.md 2026-01-07 21:43:31 +09:00
renovate.json5 chore: set nodeMaxMemory to 4096 in renovate configuration (#17437) 2026-05-19 22:25:30 +09:00
ROADMAP.md Update ROADMAP with completed tasks 2025-11-11 09:30:13 +09:00
SECURITY.md Update SECURITY.md 2025-02-01 13:57:39 +09:00

Misskey logo

🌎 Misskey is an open source, federated social media platform that's free forever! 🚀

Learn more


find an instance create an instance become a contributor join the community become a patron

Ask DeepWiki

Thanks

Sentry

Thanks to Sentry for providing the error tracking platform that helps us catch unexpected errors.

Chromatic

Thanks to Chromatic for providing the visual testing platform that helps us review UI changes and catch visual regressions.

Codecov

Thanks to Codecov for providing the code coverage platform that helps us improve our test coverage.

Crowdin

Thanks to Crowdin for providing the localization platform that helps us translate Misskey into many languages.

Docker

Thanks to Docker for providing the container platform that helps us run Misskey in production.


Support us with a !

Star History Chart