Skip to content

Commit 8294462

Browse files
committed
chore: update tsup to v8 & make changes to type imports
1 parent bfaba44 commit 8294462

File tree

15 files changed

+736
-123
lines changed

15 files changed

+736
-123
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
"spec.ts": "1.1.3",
103103
"start-server-and-test": "2.0.3",
104104
"three": "0.150.1",
105-
"tsup": "6.7.0",
105+
"tsup": "8.3.0",
106106
"turbo": "1.13.3",
107107
"typescript": "5.3.3",
108108
"vite": "5.2.11",

packages/animated/package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@
44
"description": "Animated component props for React",
55
"module": "./dist/react-spring_animated.legacy-esm.js",
66
"main": "./dist/cjs/index.js",
7-
"types": "./dist/react-spring_animated.modern.d.ts",
7+
"types": "./dist/react-spring_animated.modern.d.mts",
88
"exports": {
99
"./package.json": "./package.json",
1010
".": {
11-
"types": "./dist/react-spring_animated.modern.d.ts",
12-
"import": "./dist/react-spring_animated.modern.mjs",
13-
"require": "./dist/cjs/index.js"
11+
"import": {
12+
"types": "./dist/react-spring_animated.modern.d.mts",
13+
"default": "./dist/react-spring_animated.modern.mjs"
14+
},
15+
"require": {
16+
"types": "./dist/cjs/react-spring_animated.development.d.ts",
17+
"default": "./dist/cjs/index.js"
18+
}
1419
}
1520
},
1621
"files": [

packages/core/package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@
33
"version": "9.7.5",
44
"module": "./dist/react-spring_core.legacy-esm.js",
55
"main": "./dist/cjs/index.js",
6-
"types": "./dist/react-spring_core.modern.d.ts",
6+
"types": "./dist/react-spring_core.modern.d.mts",
77
"exports": {
88
"./package.json": "./package.json",
99
".": {
10-
"types": "./dist/react-spring_core.modern.d.ts",
11-
"import": "./dist/react-spring_core.modern.mjs",
12-
"require": "./dist/cjs/index.js"
10+
"import": {
11+
"types": "./dist/react-spring_core.modern.d.mts",
12+
"default": "./dist/react-spring_core.modern.mjs"
13+
},
14+
"require": {
15+
"types": "./dist/cjs/react-spring_core.development.d.ts",
16+
"default": "./dist/cjs/index.js"
17+
}
1318
}
1419
},
1520
"files": [

packages/parallax/package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@
33
"version": "9.7.5",
44
"module": "./dist/react-spring_parallax.legacy-esm.js",
55
"main": "./dist/cjs/index.js",
6-
"types": "./dist/react-spring_parallax.modern.d.ts",
6+
"types": "./dist/react-spring_parallax.modern.d.mts",
77
"exports": {
88
"./package.json": "./package.json",
99
".": {
10-
"types": "./dist/react-spring_parallax.modern.d.ts",
11-
"import": "./dist/react-spring_parallax.modern.mjs",
12-
"require": "./dist/cjs/index.js"
10+
"import": {
11+
"types": "./dist/react-spring_parallax.modern.d.mts",
12+
"default": "./dist/react-spring_parallax.modern.mjs"
13+
},
14+
"require": {
15+
"types": "./dist/cjs/react-spring_parallax.development.d.ts",
16+
"default": "./dist/cjs/index.js"
17+
}
1318
}
1419
},
1520
"files": [

packages/rafz/package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@
44
"description": "react-spring's fork of rafz one frameloop to rule them all",
55
"module": "./dist/react-spring_rafz.legacy-esm.js",
66
"main": "./dist/cjs/index.js",
7-
"types": "./dist/react-spring_rafz.modern.d.ts",
7+
"types": "./dist/react-spring_rafz.modern.d.mts",
88
"exports": {
99
"./package.json": "./package.json",
1010
".": {
11-
"types": "./dist/react-spring_rafz.modern.d.ts",
12-
"import": "./dist/react-spring_rafz.modern.mjs",
13-
"require": "./dist/cjs/index.js"
11+
"import": {
12+
"types": "./dist/react-spring_rafz.modern.d.mts",
13+
"default": "./dist/react-spring_rafz.modern.mjs"
14+
},
15+
"require": {
16+
"types": "./dist/cjs/react-spring_rafz.development.d.ts",
17+
"default": "./dist/cjs/index.js"
18+
}
1419
}
1520
},
1621
"files": [

packages/react-spring/package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@
33
"version": "9.7.4",
44
"module": "./dist/react-spring.legacy-esm.js",
55
"main": "./dist/cjs/index.js",
6-
"types": "./dist/react-spring.modern.d.ts",
6+
"types": "./dist/react-spring.modern.d.mts",
77
"exports": {
88
"./package.json": "./package.json",
99
".": {
10-
"types": "./dist/react-spring.modern.d.ts",
11-
"import": "./dist/react-spring.modern.mjs",
12-
"require": "./dist/cjs/index.js"
10+
"import": {
11+
"types": "./dist/react-spring.modern.d.mts",
12+
"default": "./dist/react-spring.modern.mjs"
13+
},
14+
"require": {
15+
"types": "./dist/cjs/react-spring.development.d.ts",
16+
"default": "./dist/cjs/index.js"
17+
}
1318
}
1419
},
1520
"files": [

packages/shared/package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@
44
"description": "Globals and shared modules",
55
"module": "./dist/react-spring_shared.legacy-esm.js",
66
"main": "./dist/cjs/index.js",
7-
"types": "./dist/react-spring_shared.modern.d.ts",
7+
"types": "./dist/react-spring_shared.modern.d.mts",
88
"exports": {
99
"./package.json": "./package.json",
1010
".": {
11-
"types": "./dist/react-spring_shared.modern.d.ts",
12-
"import": "./dist/react-spring_shared.modern.mjs",
13-
"require": "./dist/cjs/index.js"
11+
"import": {
12+
"types": "./dist/react-spring_shared.modern.d.mts",
13+
"default": "./dist/react-spring_shared.modern.mjs"
14+
},
15+
"require": {
16+
"types": "./dist/cjs/react-spring_shared.development.d.ts",
17+
"default": "./dist/cjs/index.js"
18+
}
1419
}
1520
},
1621
"files": [

packages/types/package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@
44
"description": "Internal package with TypeScript stuff",
55
"module": "./dist/react-spring_types.legacy-esm.js",
66
"main": "./dist/cjs/index.js",
7-
"types": "./dist/react-spring_types.modern.d.ts",
7+
"types": "./dist/react-spring_types.modern.d.mts",
88
"exports": {
99
"./package.json": "./package.json",
1010
".": {
11-
"types": "./dist/react-spring_types.modern.d.ts",
12-
"import": "./dist/react-spring_types.modern.mjs",
13-
"require": "./dist/cjs/index.js"
11+
"import": {
12+
"types": "./dist/react-spring_types.modern.d.mts",
13+
"default": "./dist/react-spring_types.modern.mjs"
14+
},
15+
"require": {
16+
"types": "./dist/cjs/react-spring_types.development.d.ts",
17+
"default": "./dist/cjs/index.js"
18+
}
1419
}
1520
},
1621
"files": [

targets/konva/package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@
33
"version": "9.7.5",
44
"module": "./dist/react-spring_konva.legacy-esm.js",
55
"main": "./dist/cjs/index.js",
6-
"types": "./dist/react-spring_konva.modern.d.ts",
6+
"types": "./dist/react-spring_konva.modern.d.mts",
77
"exports": {
88
"./package.json": "./package.json",
99
".": {
10-
"types": "./dist/react-spring_konva.modern.d.ts",
11-
"import": "./dist/react-spring_konva.modern.mjs",
12-
"require": "./dist/cjs/index.js"
10+
"import": {
11+
"types": "./dist/react-spring_konva.modern.d.mts",
12+
"default": "./dist/react-spring_konva.modern.mjs"
13+
},
14+
"require": {
15+
"types": "./dist/cjs/react-spring_konva.development.d.ts",
16+
"default": "./dist/cjs/index.js"
17+
}
1318
}
1419
},
1520
"files": [

targets/native/package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@
33
"version": "9.7.5",
44
"module": "./dist/react-spring_native.legacy-esm.js",
55
"main": "./dist/cjs/index.js",
6-
"types": "./dist/react-spring_native.modern.d.ts",
6+
"types": "./dist/react-spring_native.modern.d.mts",
77
"exports": {
88
"./package.json": "./package.json",
99
".": {
10-
"types": "./dist/react-spring_native.modern.d.ts",
11-
"import": "./dist/react-spring_native.modern.mjs",
12-
"require": "./dist/cjs/index.js"
10+
"import": {
11+
"types": "./dist/react-spring_native.modern.d.mts",
12+
"default": "./dist/react-spring_native.modern.mjs"
13+
},
14+
"require": {
15+
"types": "./dist/cjs/react-spring_native.development.d.ts",
16+
"default": "./dist/cjs/index.js"
17+
}
1318
}
1419
},
1520
"files": [

0 commit comments

Comments
 (0)