@stylexswc/rs-compiler 0.15.4 → 0.15.5

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/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@stylexswc/rs-compiler",
3
3
  "description": "NAPI-RS compiler for transform StyleX code",
4
- "version": "0.15.4",
4
+ "version": "0.15.5",
5
5
  "private": false,
6
6
  "license": "MIT",
7
7
  "files": [
8
8
  "dist/index.d.ts",
9
9
  "dist/index.js",
10
+ "dist/transform.d.ts",
11
+ "dist/transform.js",
10
12
  "README.md",
11
13
  "LICENSE"
12
14
  ],
@@ -19,14 +21,28 @@
19
21
  "path": "../../scripts/packages"
20
22
  }
21
23
  },
24
+ "dependencies": {
25
+ "picomatch": "^4.0.4"
26
+ },
22
27
  "devDependencies": {
23
28
  "@napi-rs/cli": "^3.5.1",
24
29
  "@stylexjs/open-props": "^0.11.1",
25
30
  "@stylexjs/stylex": "^0.18.2",
31
+ "@stylexswc/ast": "0.15.5",
32
+ "@stylexswc/logs": "0.15.5",
33
+ "@stylexswc/macros": "0.15.5",
34
+ "@stylexswc/misc": "0.15.5",
35
+ "@stylexswc/regex": "0.15.5",
36
+ "@stylexswc/stylex-enums": "0.15.5",
37
+ "@stylexswc/stylex-structures": "0.15.5",
38
+ "@stylexswc/transform": "0.15.5",
39
+ "@stylexswc/types": "0.15.5",
40
+ "@stylexswc/typescript-config": "0.15.5",
26
41
  "@swc-node/register": "^1.11.1",
27
42
  "@swc/core": "^1.15.11",
28
43
  "@taplo/cli": "^0.7.0",
29
44
  "@types/node": "^25.5.0",
45
+ "@types/picomatch": "^4.0.3",
30
46
  "ava": "^7.0.0",
31
47
  "benchmark": "^2.1.4",
32
48
  "chalk": "^5.6.2",
@@ -35,16 +51,7 @@
35
51
  "oxlint": "^1.50.0",
36
52
  "prettier": "^3.8.1",
37
53
  "tinybench": "^6.0.0",
38
- "typescript": "^6.0.2",
39
- "@stylexswc/logs": "0.15.4",
40
- "@stylexswc/ast": "0.15.4",
41
- "@stylexswc/misc": "0.15.4",
42
- "@stylexswc/regex": "0.15.4",
43
- "@stylexswc/stylex-enums": "0.15.4",
44
- "@stylexswc/macros": "0.15.4",
45
- "@stylexswc/stylex-structures": "0.15.4",
46
- "@stylexswc/types": "0.15.4",
47
- "@stylexswc/transform": "0.15.4"
54
+ "typescript": "^6.0.2"
48
55
  },
49
56
  "peerDependencies": {
50
57
  "@swc/core": "^1"
@@ -91,21 +98,20 @@
91
98
  },
92
99
  "repository": "https://github.com/Dwlad90/stylex-swc-plugin",
93
100
  "optionalDependencies": {
94
- "@stylexswc/rs-compiler-linux-x64-gnu": "0.15.4",
95
- "@stylexswc/rs-compiler-win32-x64-msvc": "0.15.4",
96
- "@stylexswc/rs-compiler-darwin-x64": "0.15.4",
97
- "@stylexswc/rs-compiler-darwin-arm64": "0.15.4",
98
- "@stylexswc/rs-compiler-linux-arm64-gnu": "0.15.4",
99
- "@stylexswc/rs-compiler-linux-x64-musl": "0.15.4",
100
- "@stylexswc/rs-compiler-win32-arm64-msvc": "0.15.4"
101
+ "@stylexswc/rs-compiler-linux-x64-gnu": "0.15.5",
102
+ "@stylexswc/rs-compiler-win32-x64-msvc": "0.15.5",
103
+ "@stylexswc/rs-compiler-darwin-x64": "0.15.5",
104
+ "@stylexswc/rs-compiler-darwin-arm64": "0.15.5",
105
+ "@stylexswc/rs-compiler-linux-arm64-gnu": "0.15.5",
106
+ "@stylexswc/rs-compiler-linux-x64-musl": "0.15.5",
107
+ "@stylexswc/rs-compiler-win32-arm64-msvc": "0.15.5"
101
108
  },
102
109
  "scripts": {
103
110
  "artifacts": "napi artifacts",
104
111
  "bench": "node --import @swc-node/register/esm-register benchmark/bench.ts",
105
- "build": "napi build --platform --release --output-dir dist",
112
+ "build": "napi build --platform --release --output-dir dist --js transform.js --dts transform.d.ts",
106
113
  "build:debug": "napi build --platform",
107
- "build:swc": "node scripts/inject-swc-plugins.mjs",
108
- "build:types": "node scripts/inject-types.mjs",
114
+ "build:ts": "tsc",
109
115
  "check:artifacts": "scripty ./dist/rs-compiler.*.node",
110
116
  "format": "run-p format:prettier format:rs format:toml",
111
117
  "format:check": "run-p format:rs:check format:toml:check",
@@ -114,13 +120,22 @@
114
120
  "format:rs:check": "cargo fmt -- --check",
115
121
  "format:toml": "taplo format",
116
122
  "format:toml:check": "taplo format --check",
117
- "lint": "oxlint .",
118
- "lint:check": " cargo clippy --all-targets --all-features -- -D warnings",
119
- "postbuild": "pnpm run build:swc && pnpm run build:types && pnpm run check:artifacts",
123
+ "lint": "run-p lint:rs lint:js",
124
+ "lint:check": "run-p lint:rs lint:js:check",
125
+ "lint:js": "run-p lint:js:oxlint lint:js:eslint",
126
+ "lint:js:check": "eslint . --color --format json --output-file dist/eslint_report.json",
127
+ "lint:js:eslint": "eslint . --color",
128
+ "lint:js:oxlint": "oxlint .",
129
+ "lint:rs": "cargo clippy --all-targets --all-features -- -D warnings",
130
+ "postbuild": "pnpm run build:ts && pnpm run check:artifacts",
120
131
  "test": "ava",
121
132
  "test:coverage": "scripty",
122
133
  "test:flamegraph": "scripty",
123
- "typecheck": "scripty --rs",
134
+ "typecheck": "scripty --rs && pnpm run typecheck:all",
135
+ "typecheck:all": "run-p typecheck:ts typecheck:test typecheck:bench",
136
+ "typecheck:bench": "tsc --noEmit --project benchmark/tsconfig.json",
137
+ "typecheck:test": "tsc --noEmit --project __test__/tsconfig.json",
138
+ "typecheck:ts": "tsc --noEmit",
124
139
  "version": "napi version"
125
140
  }
126
141
  }