Skip to content

Commit 9e18895

Browse files
committed
fix(syncpack): updated code to be compatible with version 14
1 parent b29003b commit 9e18895

File tree

10 files changed

+37
-56
lines changed

10 files changed

+37
-56
lines changed

.github/workflows/sync-deps.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: Sync dependencies
4242
run: |
43-
pnpm syncpack fix-mismatches --source "**/package.json"
43+
pnpm syncpack fix
4444
4545
- name: Commit changes if needed
4646
run: |
@@ -57,9 +57,9 @@ jobs:
5757
fi
5858
5959
- name: Comment on PR
60-
if: steps.commit-changes.outputs.changes_pushed == 'true' # Only run if changes were pushed
60+
if: steps.commit-changes.outputs.changes_pushed == 'true' # Only run if changes were pushed
6161
run: |
6262
gh pr comment ${{ github.event.pull_request.number }} --body "I've synchronized dependencies across the workspace to ensure consistency."
6363
env:
6464
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.syncpackrc

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,6 @@
11
{
2-
"dependencyTypes": [
3-
"dev",
4-
"prod",
5-
"resolutions",
6-
"overrides",
7-
"pnpmOverrides"
8-
],
9-
"filter": ".",
102
"indent": " ",
113
"semverGroups": [],
12-
"semverRange": "",
134
"sortAz": [
145
"contributors",
156
"private",
@@ -43,7 +34,7 @@
4334
],
4435
"source": [
4536
"package.json",
46-
"pkgs/*/package.json"
37+
"*/*/package.json"
4738
],
4839
"versionGroups": []
4940
}

apps/webpack-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"@stylexswc/playwright": "0.14.2",
2424
"@stylexswc/postcss-plugin": "0.14.2",
2525
"@stylexswc/webpack-plugin": "0.14.2",
26-
"@swc/core": "^1.15.11",
26+
"@swc/core": "^1",
2727
"autoprefixer": "^10.4.23",
2828
"css-loader": "^7.1.2",
2929
"file-loader": "^6.2.0",

apps/webpack-unplugin-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"devDependencies": {
2323
"@playwright/test": "^1.58.1",
2424
"@stylexswc/playwright": "0.14.2",
25-
"@swc/core": "^1.15.11",
25+
"@swc/core": "^1",
2626
"@types/react": "^19.2.14",
2727
"@types/react-dom": "^19.2.3",
2828
"html-webpack-plugin": "^5.6.5",

apps/webpack-unplugin-placeholder-css-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"devDependencies": {
2323
"@playwright/test": "^1.58.1",
2424
"@stylexswc/playwright": "0.14.2",
25-
"@swc/core": "^1.15.11",
25+
"@swc/core": "^1",
2626
"@types/react": "^19.2.14",
2727
"@types/react-dom": "^19.2.3",
2828
"css-loader": "^7.1.2",

crates/stylex-rs-compiler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"@stylexjs/stylex": "^0.17.5",
4848
"@stylexswc/shared": "0.14.2",
4949
"@swc-node/register": "^1.11.1",
50-
"@swc/core": "^1.15.11",
50+
"@swc/core": "^1",
5151
"@taplo/cli": "^0.7.0",
5252
"@types/node": "^25.3.0",
5353
"ava": "^6.4.1",

packages/nextjs-plugin/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,26 @@
55
"private": false,
66
"license": "MIT",
77
"sideEffects": false,
8-
"files": [
9-
"dist"
10-
],
11-
"publishConfig": {
12-
"registry": "https://registry.npmjs.org/",
13-
"access": "public"
14-
},
158
"exports": {
169
"./turbopack": {
10+
"types": "./dist/turbopack.d.ts",
1711
"import": "./dist/turbopack.js",
18-
"require": "./dist/turbopack.js",
19-
"types": "./dist/turbopack.d.ts"
12+
"require": "./dist/turbopack.js"
2013
},
2114
".": {
15+
"types": "./dist/index.d.ts",
2216
"import": "./dist/index.js",
23-
"require": "./dist/index.js",
24-
"types": "./dist/index.d.ts"
17+
"require": "./dist/index.js"
2518
},
2619
"./package.json": "./package.json"
2720
},
21+
"files": [
22+
"dist"
23+
],
24+
"publishConfig": {
25+
"registry": "https://registry.npmjs.org/",
26+
"access": "public"
27+
},
2828
"scripts": {
2929
"build": "scripty --ts",
3030
"check:artifacts": "scripty",
@@ -61,7 +61,7 @@
6161
"webpack": "^5.105.2"
6262
},
6363
"peerDependencies": {
64-
"next": ">=15.0.0"
64+
"next": "^16.1.6"
6565
},
6666
"keywords": [
6767
"next",

packages/unplugin/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,13 +116,13 @@
116116
"webpack": "^5.105.2"
117117
},
118118
"peerDependencies": {
119-
"@farmfe/core": ">=1.0.0",
120-
"@nuxt/kit": ">=3.0.0",
121-
"@nuxt/schema": ">=3.0.0",
122-
"esbuild": ">=0.18.0",
123-
"rollup": ">=3.0.0",
124-
"vite": ">=4.0.0",
125-
"webpack": ">=5.0.0"
119+
"@farmfe/core": "^1.7.11",
120+
"@nuxt/kit": "^4.2.2",
121+
"@nuxt/schema": "^4.2.0",
122+
"esbuild": "^0.27.3",
123+
"rollup": "^4.58.0",
124+
"vite": "^7.3.1",
125+
"webpack": "^5.105.2"
126126
},
127127
"bugs": "https://github.com/Dwlad90/stylex-swc-plugin/issues",
128128
"homepage": "https://github.com/Dwlad90/stylex-swc-plugin/tree/develop/packages/unplugin#readme",

pnpm-lock.yaml

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/git/version-mismatch-check.sh

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,11 @@
22

33
echo "Checking dependency versions across workspace..."
44

5-
raw_output=$(FORCE_COLOR=true pnpm exec syncpack list-mismatches --source "**/package.json")
6-
7-
last_line=$(echo "$raw_output" | tail -n 1)
8-
has_no_mismatches=0
9-
10-
if [[ "$last_line" == *"already valid"* ]]; then
11-
has_no_mismatches=1
12-
fi
13-
14-
if [[ $has_no_mismatches -eq 1 ]]; then
5+
if pnpm exec syncpack lint; then
156
echo "All dependencies are in sync across the workspace."
167
exit 0
178
fi
189

19-
echo "$raw_output"
20-
echo "Please run 'pnpm syncpack fix-mismatches --source \"**/package.json\"' to fix the mismatches or fix them manually."
21-
10+
echo ""
11+
echo "Please run 'pnpm syncpack fix' to fix the mismatches or fix them manually."
2212
exit 1

0 commit comments

Comments
 (0)