@ohos-rs/oxk 0.4.1 → 0.5.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ohos-rs/oxk",
3
- "version": "0.4.1",
3
+ "version": "0.5.0",
4
4
  "description": "An ArkTS/ArkUI tool based on oxc",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -31,6 +31,9 @@
31
31
  "browser.js",
32
32
  "format.js",
33
33
  "format.d.ts",
34
+ "lint.js",
35
+ "lint.d.ts",
36
+ "oxlint-runtime",
34
37
  "bin"
35
38
  ],
36
39
  "exports": {
@@ -41,6 +44,10 @@
41
44
  "./format": {
42
45
  "types": "./format.d.ts",
43
46
  "default": "./format.js"
47
+ },
48
+ "./lint": {
49
+ "types": "./lint.d.ts",
50
+ "default": "./lint.js"
44
51
  }
45
52
  },
46
53
  "napi": {
@@ -59,11 +66,11 @@
59
66
  "aarch64-unknown-linux-musl",
60
67
  "aarch64-pc-windows-msvc",
61
68
  "armv7-linux-androideabi",
62
- "wasm32-wasi-preview1-threads"
69
+ "wasm32-wasip1-threads"
63
70
  ]
64
71
  },
65
72
  "engines": {
66
- "node": ">= 10"
73
+ "node": "^20.19.0 || >=22.18.0"
67
74
  },
68
75
  "publishConfig": {
69
76
  "registry": "https://registry.npmjs.org/",
@@ -72,8 +79,10 @@
72
79
  "scripts": {
73
80
  "artifacts": "napi artifacts",
74
81
  "bench": "node --import @oxc-node/core/register benchmark/bench.ts",
75
- "build": "napi build --platform --release",
76
- "build:debug": "napi build --platform",
82
+ "build": "napi build --platform --release --no-dts-cache",
83
+ "build:debug": "napi build --platform --no-dts-cache",
84
+ "build:debug:binding": "node scripts/build-binding-only.cjs",
85
+ "build:oxlint-runtime": "node scripts/build-oxlint-runtime.mjs",
77
86
  "format": "run-p format:prettier format:rs format:toml",
78
87
  "format:prettier": "prettier . -w",
79
88
  "format:toml": "taplo format",
@@ -81,8 +90,11 @@
81
90
  "lint": "oxlint",
82
91
  "prepublishOnly": "napi prepublish -t npm",
83
92
  "test": "ava",
93
+ "test:binding": "ava __test__/index.spec.ts __test__/format.spec.ts",
94
+ "test:cli": "ava __test__/cli.spec.ts",
95
+ "test:wasi": "node scripts/smoke-wasi.cjs",
84
96
  "test:build": "pnpm run build:debug && pnpm run test",
85
- "version": "napi version"
97
+ "version": "bash ../../scripts/update-version.sh"
86
98
  },
87
99
  "dependencies": {
88
100
  "glob": "^11.1.0",
@@ -95,9 +107,14 @@
95
107
  "@napi-rs/wasm-runtime": "^1.0.4",
96
108
  "@oxc-node/core": "^0.0.35",
97
109
  "@tybys/wasm-util": "^0.10.0",
110
+ "@typescript-eslint/scope-manager": "^8.59.3",
111
+ "ajv": "6.14.0",
98
112
  "ava": "^6.4.1",
99
113
  "chalk": "^5.6.2",
100
114
  "emnapi": "^1.5.0",
115
+ "esbuild": "0.25.11",
116
+ "eslint": "^9.39.4",
117
+ "esquery": "^1.7.0",
101
118
  "husky": "^9.1.7",
102
119
  "lint-staged": "^16.1.6",
103
120
  "npm-run-all2": "^8.0.4",
@@ -123,19 +140,19 @@
123
140
  ]
124
141
  },
125
142
  "optionalDependencies": {
126
- "@ohos-rs/oxk-darwin-x64": "0.4.1",
127
- "@ohos-rs/oxk-darwin-arm64": "0.4.1",
128
- "@ohos-rs/oxk-linux-x64-gnu": "0.4.1",
129
- "@ohos-rs/oxk-win32-x64-msvc": "0.4.1",
130
- "@ohos-rs/oxk-linux-x64-musl": "0.4.1",
131
- "@ohos-rs/oxk-linux-arm64-gnu": "0.4.1",
132
- "@ohos-rs/oxk-win32-ia32-msvc": "0.4.1",
133
- "@ohos-rs/oxk-linux-arm-gnueabihf": "0.4.1",
134
- "@ohos-rs/oxk-android-arm64": "0.4.1",
135
- "@ohos-rs/oxk-freebsd-x64": "0.4.1",
136
- "@ohos-rs/oxk-linux-arm64-musl": "0.4.1",
137
- "@ohos-rs/oxk-win32-arm64-msvc": "0.4.1",
138
- "@ohos-rs/oxk-android-arm-eabi": "0.4.1",
139
- "@ohos-rs/oxk-wasm32-wasi": "0.4.1"
143
+ "@ohos-rs/oxk-darwin-x64": "0.5.0",
144
+ "@ohos-rs/oxk-darwin-arm64": "0.5.0",
145
+ "@ohos-rs/oxk-linux-x64-gnu": "0.5.0",
146
+ "@ohos-rs/oxk-win32-x64-msvc": "0.5.0",
147
+ "@ohos-rs/oxk-linux-x64-musl": "0.5.0",
148
+ "@ohos-rs/oxk-linux-arm64-gnu": "0.5.0",
149
+ "@ohos-rs/oxk-win32-ia32-msvc": "0.5.0",
150
+ "@ohos-rs/oxk-linux-arm-gnueabihf": "0.5.0",
151
+ "@ohos-rs/oxk-android-arm64": "0.5.0",
152
+ "@ohos-rs/oxk-freebsd-x64": "0.5.0",
153
+ "@ohos-rs/oxk-linux-arm64-musl": "0.5.0",
154
+ "@ohos-rs/oxk-win32-arm64-msvc": "0.5.0",
155
+ "@ohos-rs/oxk-android-arm-eabi": "0.5.0",
156
+ "@ohos-rs/oxk-wasm32-wasi": "0.5.0"
140
157
  }
141
158
  }