File tree Expand file tree Collapse file tree 10 files changed +37
-56
lines changed
webpack-unplugin-placeholder-css-example
crates/stylex-rs-compiler Expand file tree Collapse file tree 10 files changed +37
-56
lines changed Original file line number Diff line number Diff line change 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 : |
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 }}
Original file line number Diff line number Diff line change 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",
4334 ],
4435 "source": [
4536 "package.json",
46- "pkgs /*/package.json"
37+ "* /*/package.json"
4738 ],
4839 "versionGroups": []
4940}
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
6161 "webpack" : " ^5.105.2"
6262 },
6363 "peerDependencies" : {
64- "next" : " >=15.0.0 "
64+ "next" : " ^16.1.6 "
6565 },
6666 "keywords" : [
6767 " next" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 22
33echo " 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
178fi
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."
2212exit 1
You can’t perform that action at this time.
0 commit comments