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