Skip to content

Commit ff2c163

Browse files
committed
chore: change from moduleResolution 'Node' to 'Bundler', update dev deps
1 parent 1e7ff03 commit ff2c163

File tree

21 files changed

+2995
-3010
lines changed

21 files changed

+2995
-3010
lines changed

apps/navmesh-website/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
},
1010
"dependencies": {
1111
"@pmndrs/assets": "^1.6.0",
12-
"@react-three/drei": "^9.91.0",
12+
"@react-three/drei": "^9.92.3",
1313
"@react-three/fiber": "^8.15.12",
1414
"leva": "^0.9.35",
1515
"react": "^18.2.0",
@@ -18,14 +18,14 @@
1818
"recast-navigation": "workspace:*",
1919
"styled-components": "^6.1.0",
2020
"suspend-react": "^0.1.3",
21-
"three": "^0.156.1",
21+
"three": "^0.159.0",
2222
"tunnel-rat": "^0.1.2",
2323
"zustand": "^4.3.8"
2424
},
2525
"devDependencies": {
2626
"@types/react": "^18.2.11",
2727
"@types/react-dom": "^18.2.8",
28-
"@types/three": "^0.155.0",
28+
"@types/three": "^0.159.0",
2929
"@vitejs/plugin-react": "^4.2.0",
3030
"typescript": "^5.3.2",
3131
"vite": "^4.5.0",

apps/navmesh-website/src/features/export/nav-mesh-to-gltf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
MeshStandardMaterial,
77
Scene,
88
} from 'three';
9-
import { GLTFExporter } from 'three/examples/jsm/exporters/GLTFExporter';
9+
import { GLTFExporter } from 'three/addons';
1010

1111
const navMeshToPositionsAndIndices = (navMesh: NavMesh) => {
1212
const positions: number[] = [];

apps/navmesh-website/src/features/upload/loaders.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,8 @@ import {
55
REVISION,
66
WebGLRenderer,
77
} from 'three';
8-
import { DRACOLoader } from 'three/examples/jsm/loaders/DRACOLoader.js';
9-
import { GLTFLoader } from 'three/examples/jsm/loaders/GLTFLoader.js';
10-
import { KTX2Loader } from 'three/examples/jsm/loaders/KTX2Loader.js';
8+
import { DRACOLoader, FBXLoader, GLTF, GLTFLoader, KTX2Loader, OBJLoader } from 'three/addons';
119
import { MeshoptDecoder } from 'three/examples/jsm/libs/meshopt_decoder.module.js';
12-
import { FBXLoader } from 'three/examples/jsm/loaders/FBXLoader';
13-
import { GLTF } from 'three/examples/jsm/loaders/GLTFLoader';
14-
import { OBJLoader } from 'three/examples/jsm/loaders/OBJLoader';
1510

1611
const THREE_PATH = `https://unpkg.com/three@0.${REVISION}.x`;
1712

apps/navmesh-website/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"strict": true,
1111
"forceConsistentCasingInFileNames": true,
1212
"module": "ES2022",
13-
"moduleResolution": "Node",
13+
"moduleResolution": "Bundler",
1414
"resolveJsonModule": true,
1515
"isolatedModules": true,
1616
"noEmit": true,

examples/node-cjs-example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"author": "",
1010
"license": "ISC",
1111
"dependencies": {
12-
"@types/three": "^0.155.0",
12+
"@types/three": "^0.159.0",
1313
"recast-navigation": "0.16.0",
14-
"three": "^0.156.1"
14+
"three": "^0.159.0"
1515
}
1616
}

examples/node-esm-example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"author": "",
1111
"license": "ISC",
1212
"dependencies": {
13-
"@types/three": "^0.155.0",
13+
"@types/three": "^0.159.0",
1414
"recast-navigation": "0.16.0",
15-
"three": "^0.156.1"
15+
"three": "^0.159.0"
1616
}
1717
}

examples/parcel-example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@
77
"build": "parcel build index.html"
88
},
99
"dependencies": {
10-
"@react-three/drei": "^9.91.0",
10+
"@react-three/drei": "^9.92.3",
1111
"@react-three/fiber": "^8.15.12",
1212
"react": "18.2.0",
1313
"recast-navigation": "workspace:^",
14-
"three": "^0.156.1"
14+
"three": "^0.159.0"
1515
},
1616
"devDependencies": {
1717
"parcel": "^2.10.2"

examples/react-scripts-example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@
33
"private": true,
44
"main": "src/index.js",
55
"dependencies": {
6-
"@react-three/drei": "^9.91.0",
6+
"@react-three/drei": "^9.92.3",
77
"@react-three/fiber": "^8.15.12",
88
"react": "^18.2.0",
99
"react-dom": "^18.2.0",
1010
"react-scripts": "5.0.1",
1111
"recast-navigation": "0.16.0",
1212
"suspend-react": "^0.1.3",
13-
"three": "^0.156.1"
13+
"three": "^0.159.0"
1414
},
1515
"scripts": {
1616
"start": "react-scripts start",

examples/vite-example/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@
88
"preview": "vite preview"
99
},
1010
"dependencies": {
11-
"@react-three/drei": "^9.91.0",
11+
"@react-three/drei": "^9.92.3",
1212
"@react-three/fiber": "^8.15.12",
1313
"react": "^18.2.0",
1414
"react-dom": "^18.2.0",
1515
"recast-navigation": "0.16.0",
1616
"suspend-react": "^0.1.3",
17-
"three": "^0.156.1"
17+
"three": "^0.159.0"
1818
},
1919
"devDependencies": {
2020
"@types/react": "^18.2.11",
2121
"@types/react-dom": "^18.2.8",
22-
"@types/three": "^0.155.0",
22+
"@types/three": "^0.159.0",
2323
"@vitejs/plugin-react": "^4.2.0",
2424
"typescript": "^5.3.2",
2525
"vite": "^4.5.0"

examples/vite-example/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"strict": true,
1111
"forceConsistentCasingInFileNames": true,
1212
"module": "ES2022",
13-
"moduleResolution": "Node",
13+
"moduleResolution": "Bundler",
1414
"resolveJsonModule": true,
1515
"isolatedModules": true,
1616
"noEmit": true,

packages/recast-navigation-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"@rollup/plugin-node-resolve": "^15.0.1",
3333
"@rollup/plugin-terser": "^0.4.3",
3434
"@rollup/plugin-typescript": "^11.1.5",
35-
"@types/three": "^0.155.0",
35+
"@types/three": "^0.159.0",
3636
"@typescript-eslint/eslint-plugin": "^6.10.0",
3737
"@typescript-eslint/parser": "^6.7.3",
3838
"babel-loader": "^9.1.3",
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import RawModule from '@recast-navigation/wasm';
1+
import RawModule from '@recast-navigation/wasm/wasm-compat';
22

3-
export default RawModule;
3+
export default RawModule;

packages/recast-navigation-core/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"useDefineForClassFields": true,
55
"module": "ES2022",
66
"lib": ["ES2022", "DOM"],
7-
"moduleResolution": "Node",
7+
"moduleResolution": "Bundler",
88
"strict": true,
99
"sourceMap": true,
1010
"resolveJsonModule": true,

packages/recast-navigation-generators/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"useDefineForClassFields": true,
55
"module": "ES2022",
66
"lib": ["ES2022", "DOM"],
7-
"moduleResolution": "Node",
7+
"moduleResolution": "Bundler",
88
"strict": true,
99
"sourceMap": true,
1010
"resolveJsonModule": true,

packages/recast-navigation-three/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"@rollup/plugin-node-resolve": "^15.0.1",
3737
"@rollup/plugin-terser": "^0.4.3",
3838
"@rollup/plugin-typescript": "^11.1.5",
39-
"@types/three": "^0.155.0",
39+
"@types/three": "^0.159.0",
4040
"@typescript-eslint/eslint-plugin": "^6.10.0",
4141
"@typescript-eslint/parser": "^6.7.3",
4242
"eslint": "^8.51.0",
@@ -53,7 +53,7 @@
5353
"rollup": "^4.6.0",
5454
"rollup-plugin-copy": "^3.4.0",
5555
"rollup-plugin-filesize": "^10.0.0",
56-
"three": "^0.156.1",
56+
"three": "^0.159.0",
5757
"typescript": "^5.3.2"
5858
},
5959
"packageManager": "[email protected]"

packages/recast-navigation-three/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"useDefineForClassFields": true,
55
"module": "ES2022",
66
"lib": ["ES2022", "DOM"],
7-
"moduleResolution": "Node",
7+
"moduleResolution": "Bundler",
88
"strict": true,
99
"sourceMap": true,
1010
"resolveJsonModule": true,

packages/recast-navigation-wasm/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,15 @@
1717
"types": "./dist/recast-navigation.d.ts",
1818
"exports": {
1919
".": {
20+
"types": "./dist/recast-navigation.d.ts",
2021
"import": "./dist/recast-navigation.wasm-compat.js"
2122
},
2223
"./wasm": {
24+
"types": "./dist/recast-navigation.d.ts",
2325
"import": "./dist/recast-navigation.wasm.js"
2426
},
2527
"./wasm-compat": {
28+
"types": "./dist/recast-navigation.d.ts",
2629
"import": "./dist/recast-navigation.wasm-compat.js"
2730
}
2831
},

packages/recast-navigation/.storybook/stories/nav-mesh/walkable-slope-angle.stories.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Bounds, OrbitControls, Text } from '@react-three/drei';
1+
import { Bounds, OrbitControls } from '@react-three/drei';
22
import { NavMesh } from '@recast-navigation/core';
33
import { threeToSoloNavMesh } from '@recast-navigation/three';
44
import { useControls } from 'leva';
@@ -64,12 +64,6 @@ export const WalkableSlope = () => {
6464
return (
6565
<>
6666
<Bounds fit observe>
67-
{ANGLES.map(({ degrees, position }) => (
68-
<Text key={degrees} position={[position[0], 3, -3]}>
69-
{degrees}°
70-
</Text>
71-
))}
72-
7367
<group ref={setGroup}>
7468
{ANGLES.map(({ degrees, rad, position }) => (
7569
<mesh key={degrees} rotation-x={rad} position={position}>

packages/recast-navigation/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"@mdx-js/react": "^2.3.0",
7575
"@pmndrs/assets": "^1.6.0",
7676
"@react-three/csg": "^3.1.0",
77-
"@react-three/drei": "^9.91.0",
77+
"@react-three/drei": "^9.92.3",
7878
"@react-three/fiber": "^8.15.12",
7979
"@rollup/plugin-commonjs": "^25.0.7",
8080
"@rollup/plugin-node-resolve": "^15.0.1",
@@ -89,7 +89,7 @@
8989
"@storybook/react-vite": "^7.5.3",
9090
"@types/react": "^18.2.11",
9191
"@types/react-dom": "^18.2.8",
92-
"@types/three": "^0.155.0",
92+
"@types/three": "^0.159.0",
9393
"leva": "^0.9.35",
9494
"react": "^18.2.0",
9595
"react-dom": "^18.2.0",
@@ -98,7 +98,7 @@
9898
"rollup-plugin-filesize": "^10.0.0",
9999
"storybook": "^7.5.3",
100100
"suspend-react": "^0.1.3",
101-
"three": "^0.156.1",
101+
"three": "^0.159.0",
102102
"three-pathfinding": "^1.2.0",
103103
"typescript": "^5.3.2",
104104
"vitest": "^0.34.6"

packages/recast-navigation/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"useDefineForClassFields": true,
55
"module": "ES2022",
66
"lib": ["ES2022", "DOM"],
7-
"moduleResolution": "Node",
7+
"moduleResolution": "Bundler",
88
"strict": true,
99
"sourceMap": true,
1010
"resolveJsonModule": true,

0 commit comments

Comments
 (0)