Files
moeka-project/package.json
T
Neko Ayaka 372125fb89 chore(deps): bump dependencies
Notice: after bumping up to three 0.180.0 with @types/three 0.180.0,
  Argument of type 'Group<Object3DEventMap>' is not assignable to parameter of type 'Object3D<Object3DEventMap>'.
    Type 'Group<Object3DEventMap>' is missing the following properties from type 'Object3D<Object3DEventMap>': setPointerCapture, releasePointerCapture, hasPointerCapture

Currently, AFAIK, clearly, three, and @types/three doesn't have the setPointerCapture, releasePointerCapture, hasPointerCapture method / getters
The only place I found on GitHub, points out that https://github.com/pmndrs/xr/blob/456aa380206e93888cd3a5741a1534e672ae3106/packages/pointer-events/src/pointer.ts#L69-L100 declares

```js
declare module 'three' {
  interface Object3D {
    setPointerCapture(pointerId: number): void
    releasePointerCapture(pointerId: number): void
    hasPointerCapture(pointerId: number): boolean

    intersectChildren?: boolean
    interactableDescendants?: Array<Object3D>
    /**
     * @deprecated
     */
    ancestorsHaveListeners?: boolean
    ancestorsHavePointerListeners?: boolean
    ancestorsHaveWheelListeners?: boolean
  }
}
```

And in @tresjs/core v5, it uses the @pmndrs/pointer-events internally.
Somehow the Object3D from @types/three and the one augmented by @pmndrs/pointer-events are not compatible.

`new Object3D() as unknown as Object3D` works as workaround here but there should be no need to do such a thing since these two Object3D should be the same.
With no updates from `typescript`, I assume there is no breaking change or regression from `typescript` side.
2025-09-26 17:07:07 +08:00

121 lines
3.9 KiB
JSON

{
"name": "@proj-airi/root",
"type": "module",
"version": "0.7.2-beta.3",
"private": true,
"packageManager": "pnpm@10.17.1",
"description": "LLM powered virtual character",
"author": {
"name": "Moeru AI Project AIRI Team",
"email": "airi@moeru.ai",
"url": "https://github.com/moeru-ai"
},
"license": "MIT",
"scripts": {
"postinstall": "npx simple-git-hooks && pnpm run build:packages",
"dev": "pnpm -r -F @proj-airi/stage-web dev",
"dev:docs": "pnpm -rF @proj-airi/docs run dev",
"dev:ui": "pnpm -rF @proj-airi/stage-ui run story:dev",
"dev:web": "pnpm -rF @proj-airi/stage-web run dev",
"dev:tamagotchi": "pnpm -rF @proj-airi/stage-tamagotchi run app:dev",
"dev:tamagotchi-electron": "pnpm -rF @proj-airi/stage-tamagotchi-electron run app:dev",
"dev:apps": "pnpm -rF=\"./apps/*\" run --parallel dev",
"dev:packages": "pnpm -rF=\"./packages/*\" --parallel run dev",
"build": "turbo run build -F=\"./packages/*\" -F=\"./apps/*\"",
"build:web": "turbo run build -F @proj-airi/stage-web",
"build:tamagotchi": "pnpm -rF @proj-airi/stage-tamagotchi run app:build",
"build:apps": "turbo run build -F=\"./apps/*\"",
"build:packages": "turbo run build -F=\"./packages/*\"",
"build:crates": "cargo build --workspace",
"test": "vitest --coverage",
"test:run": "vitest run",
"lint": "eslint --cache .",
"lint:fix": "eslint --cache --fix .",
"lint:rust": "cargo fmt --check && cargo clippy --workspace",
"to-avif": "tsx docs/scripts/avif.ts",
"typecheck": "pnpm -rF=\"./packages/*\" -F=\"./apps/*\" -F=\"./docs\" --parallel typecheck",
"up": "taze -w -r -I -f && pnpm prune && pnpm dedupe",
"nolyfill": "pnpm dlx nolyfill"
},
"devDependencies": {
"@antfu/eslint-config": "^5.4.1",
"@antfu/ni": "^26.0.1",
"@arethetypeswrong/core": "^0.18.2",
"@electron-toolkit/eslint-config-ts": "^3.1.0",
"@iconify/utils": "^3.0.2",
"@proj-airi/unocss-preset-chromatic": "^1.0.0",
"@types/node": "^24.5.2",
"@unocss/eslint-config": "^66.5.2",
"@unocss/eslint-plugin": "^66.5.2",
"@unocss/preset-mini": "^66.5.2",
"@unocss/preset-web-fonts": "^66.5.2",
"@vitest/coverage-v8": "^3.2.4",
"bumpp": "^10.2.3",
"eslint": "^9.36.0",
"execa": "^9.6.0",
"lint-staged": "^16.2.1",
"rollup": "^4.52.2",
"simple-git-hooks": "^2.13.1",
"smol-toml": "^1.4.2",
"taze": "^19.7.0",
"tsdown": "^0.15.4",
"tsx": "^4.20.6",
"turbo": "^2.5.8",
"typescript": "~5.9.2",
"uncrypto": "^0.1.3",
"unocss": "^66.5.2",
"unocss-preset-scrollbar": "^3.2.0",
"unplugin-lightningcss": "^0.4.3",
"unplugin-raw": "^0.6.3",
"unplugin-unused": "^0.5.3",
"unplugin-vue": "^7.0.1",
"vite": "^7.1.7",
"vite-plugin-inspect": "^11.3.3",
"vitest": "^3.2.4"
},
"workspaces": [
"packages/**",
"plugins/**",
"services/**",
"examples/**",
"docs/**",
"apps/**"
],
"pnpm": {
"overrides": {
"array-flatten": "npm:@nolyfill/array-flatten@^1.0.44",
"axios": "npm:feaxios@^0.0.23",
"is-core-module": "npm:@nolyfill/is-core-module@^1.0.39",
"isarray": "npm:@nolyfill/isarray@^1.0.44",
"safe-buffer": "npm:@nolyfill/safe-buffer@^1.0.44",
"safer-buffer": "npm:@nolyfill/safer-buffer@^1.0.44",
"side-channel": "npm:@nolyfill/side-channel@^1.0.44",
"string.prototype.matchall": "npm:@nolyfill/string.prototype.matchall@^1.0.44"
},
"onlyBuiltDependencies": [
"@discordjs/opus",
"@ffmpeg-installer/darwin-arm64",
"@parcel/watcher",
"bufferutil",
"electron",
"es5-ext",
"esbuild",
"ffmpeg-static",
"msw",
"onnxruntime-node",
"protobufjs",
"sharp",
"simple-git-hooks",
"spawn-sync",
"utf-8-validate",
"vue-demi"
]
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
"lint-staged": {
"*": "eslint --fix"
}
}