unplugin-stylex 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # unplugin-stylex
2
2
 
3
+ ## 0.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#247](https://github.com/eryue0220/unplugin-stylex/pull/247) [`02373e9`](https://github.com/eryue0220/unplugin-stylex/commit/02373e9a4f24d7bda76b5b3f59417a9e031a20a0) Thanks [@eryue0220](https://github.com/eryue0220)! - update project dependencies
8
+
3
9
  ## 0.6.0
4
10
 
5
11
  ### Minor Changes
package/biome.json CHANGED
@@ -34,8 +34,9 @@
34
34
  "includes": [
35
35
  "examples/**",
36
36
  "!!**/.astro",
37
- "!examples/**/node_modules",
37
+ "!examples/**/build",
38
38
  "!examples/**/dist",
39
+ "!examples/**/node_modules",
39
40
  "src/**",
40
41
  "test/**"
41
42
  ]
package/jsr.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eryue0220/unplugin-stylex",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "exports": {
5
5
  "./index": "./src/index.ts",
6
6
  "./esbuild": "./src/esbuild.ts",
@@ -16,5 +16,12 @@
16
16
  "@/utils": "./src/utils/index.ts",
17
17
  "@/utils/*": "./src/utils/*"
18
18
  },
19
- "exclude": [".eslintrc.json", ".eslintignore", "test", "examples", "pnpm-lock.yaml", "pnpm-workspace.yaml"]
19
+ "exclude": [
20
+ ".eslintrc.json",
21
+ ".eslintignore",
22
+ "test",
23
+ "examples",
24
+ "pnpm-lock.yaml",
25
+ "pnpm-workspace.yaml"
26
+ ]
20
27
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unplugin-stylex",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Unplugin for stylex",
5
5
  "repository": "https://github.com/eryue0220/unplugin-stylex",
6
6
  "keywords": [
@@ -81,25 +81,25 @@
81
81
  "@stylexjs/stylex": "0.x"
82
82
  },
83
83
  "dependencies": {
84
- "@babel/core": "^7.28.5",
85
- "@babel/plugin-syntax-flow": "^7.27.1",
86
- "@babel/plugin-syntax-jsx": "^7.27.1",
87
- "@babel/plugin-syntax-typescript": "^7.27.1",
84
+ "@babel/core": "^7.29.0",
85
+ "@babel/plugin-syntax-flow": "^7.28.6",
86
+ "@babel/plugin-syntax-jsx": "^7.28.6",
87
+ "@babel/plugin-syntax-typescript": "^7.28.6",
88
88
  "@rollup/pluginutils": "^5.1.4",
89
- "@stylexjs/babel-plugin": "^0.17.2",
90
- "@types/node": "^24.10.1",
91
- "unplugin": "^2.3.11"
89
+ "@stylexjs/babel-plugin": "^0.17.5",
90
+ "unplugin": "^3.0.0"
92
91
  },
93
92
  "devDependencies": {
94
- "@biomejs/biome": "2.3.8",
93
+ "@biomejs/biome": "2.4.6",
95
94
  "@changesets/changelog-github": "^0.5.2",
96
95
  "@changesets/cli": "^2.29.8",
96
+ "@types/node": "^25.3.0",
97
97
  "@vitest/coverage-v8": "^4.0.15",
98
- "babel-plugin-syntax-hermes-parser": "^0.32.1",
99
- "jsr": "^0.13.4",
98
+ "babel-plugin-syntax-hermes-parser": "^0.33.3",
99
+ "jsr": "^0.14.2",
100
100
  "tsup": "^8.5.1",
101
101
  "typescript": "^5.9.3",
102
- "vite": "^7.2.6",
102
+ "vite": "^7.3.1",
103
103
  "vitest": "^4.0.15"
104
104
  },
105
105
  "scripts": {
@@ -114,8 +114,9 @@
114
114
  "format:fix": "pnpm biome format --write .",
115
115
  "ci": "pnpm run lint && pnpm run check && pnpm run build",
116
116
  "jsr": "pnpm dlx jsr publish",
117
+ "sync:jsr-version": "node scripts/sync-jsr-version.mjs",
117
118
  "changeset": "pnpm dlx @changesets/cli add",
118
- "changeset:version": "pnpm dlx @changesets/cli version && pnpm install",
119
- "changeset:release": "pnpm run build && pnpm publish -r --no-git-checks --access public && pnpm exec changeset tag"
119
+ "changeset:version": "pnpm dlx @changesets/cli version && pnpm run sync:jsr-version && pnpm install",
120
+ "changeset:release": "pnpm run build && pnpm dlx @changesets/cli publish"
120
121
  }
121
122
  }
@@ -0,0 +1,21 @@
1
+ import { readFileSync, writeFileSync } from "node:fs";
2
+ import { resolve } from "node:path";
3
+
4
+ const rootDir = resolve(import.meta.dirname, "..");
5
+ const packageJsonPath = resolve(rootDir, "package.json");
6
+ const jsrJsonPath = resolve(rootDir, "jsr.json");
7
+
8
+ const packageJson = JSON.parse(readFileSync(packageJsonPath, "utf8"));
9
+ const jsrJson = JSON.parse(readFileSync(jsrJsonPath, "utf8"));
10
+
11
+ if (typeof packageJson.version !== "string" || packageJson.version.length === 0) {
12
+ throw new Error("package.json version is missing");
13
+ }
14
+
15
+ if (jsrJson.version !== packageJson.version) {
16
+ jsrJson.version = packageJson.version;
17
+ writeFileSync(jsrJsonPath, `${JSON.stringify(jsrJson, null, 2)}\n`);
18
+ console.log(`Synced jsr.json version to ${packageJson.version}`);
19
+ } else {
20
+ console.log(`jsr.json version already up to date: ${packageJson.version}`);
21
+ }