Skip to content

Commit 85cd49e

Browse files
committed
chore: use workspace protocol for internal deps
Switches every @react-spring/* internal dependency from a version range (~10.0.x) to workspace:~ so pnpm always resolves them locally and changesets converts them to real version ranges at publish time. Avoids the chicken-and-egg case where pnpm install --frozen-lockfile fails on the release path because the bumped internal versions don't exist on npm yet.
1 parent 344972e commit 85cd49e

12 files changed

Lines changed: 111 additions & 257 deletions

File tree

packages/animated/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
"pack": "pnpm pack && mv *.tgz package.tgz"
5555
},
5656
"dependencies": {
57-
"@react-spring/shared": "~10.0.3",
58-
"@react-spring/types": "~10.0.3"
57+
"@react-spring/shared": "workspace:~",
58+
"@react-spring/types": "workspace:~"
5959
},
6060
"peerDependencies": {
6161
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"

packages/core/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@
5757
"pack": "pnpm pack && mv *.tgz package.tgz"
5858
},
5959
"dependencies": {
60-
"@react-spring/animated": "~10.0.3",
61-
"@react-spring/shared": "~10.0.3",
62-
"@react-spring/types": "~10.0.3"
60+
"@react-spring/animated": "workspace:~",
61+
"@react-spring/shared": "workspace:~",
62+
"@react-spring/types": "workspace:~"
6363
},
6464
"devDependencies": {
65-
"@react-spring/rafz": "~10.0.3"
65+
"@react-spring/rafz": "workspace:~"
6666
},
6767
"peerDependencies": {
6868
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"

packages/parallax/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@
5454
"test": "vite serve ./test"
5555
},
5656
"dependencies": {
57-
"@react-spring/shared": "~10.0.3",
58-
"@react-spring/web": "~10.0.3"
57+
"@react-spring/shared": "workspace:~",
58+
"@react-spring/web": "workspace:~"
5959
},
6060
"devDependencies": {
6161
"@vitejs/plugin-react-refresh": "1.3.6",

packages/rafz/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,6 @@
5151
"pack": "pnpm pack && mv *.tgz package.tgz"
5252
},
5353
"devDependencies": {
54-
"@react-spring/shared": "~10.0.3"
54+
"@react-spring/shared": "workspace:~"
5555
}
5656
}

packages/react-spring/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@
4747
"provenance": true
4848
},
4949
"dependencies": {
50-
"@react-spring/core": "~10.0.3",
51-
"@react-spring/konva": "~10.0.3",
52-
"@react-spring/native": "~10.0.3",
53-
"@react-spring/three": "~10.0.3",
54-
"@react-spring/web": "~10.0.3",
55-
"@react-spring/zdog": "~10.0.3"
50+
"@react-spring/core": "workspace:~",
51+
"@react-spring/konva": "workspace:~",
52+
"@react-spring/native": "workspace:~",
53+
"@react-spring/three": "workspace:~",
54+
"@react-spring/web": "workspace:~",
55+
"@react-spring/zdog": "workspace:~"
5656
},
5757
"peerDependencies": {
5858
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",

packages/shared/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@
4848
"provenance": true
4949
},
5050
"dependencies": {
51-
"@react-spring/rafz": "~10.0.3",
52-
"@react-spring/types": "~10.0.3"
51+
"@react-spring/rafz": "workspace:~",
52+
"@react-spring/types": "workspace:~"
5353
},
5454
"peerDependencies": {
5555
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0"

0 commit comments

Comments
 (0)