Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,7 @@ jobs:
if: steps.filter.outputs.src == 'true'
run: |
rustup target add wasm32-wasip1-threads
pnpm napi build --target wasm32-wasip1-threads --cwd ./napi/playground
pnpm napi build --target wasm32-wasip1-threads --cwd ./napi/parser
pnpm napi build --target wasm32-wasip1-threads --cwd ./napi/transform
pnpm napi build --target wasm32-wasip1-threads --cwd ./napi/minify
pnpm run build-wasm-dev
git diff --exit-code # Must commit everything
- name: Test wasi in browser
if: steps.filter.outputs.src == 'true'
Expand All @@ -156,6 +153,7 @@ jobs:
rm -rf *.wasm
pnpm exec playwright install chromium
pnpm run build-wasi
pnpm run build-wasm-dev
pnpm run build-npm-dir
pnpm run test-browser
pnpm build-browser-bundle --npmDir npm-dir
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ target/
/tasks/compat_data/node_modules/
/tasks/compat_data/compat-table/
/tasks/e2e/node_modules/
/plugins/node_modules/
/tasks/e2e/tests/nestjs/node_modules/
/npm/*/node_modules
/napi/*/npm-dir
Expand Down
2 changes: 2 additions & 0 deletions apps/oxfmt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
"tinypool": "2.0.0"
},
"devDependencies": {
"@arethetypeswrong/core": "catalog:",
"@napi-rs/cli": "catalog:",
"@types/node": "catalog:",
"execa": "^9.6.0",
"tsdown": "catalog:",
Expand Down
1 change: 1 addition & 0 deletions apps/oxfmt/tsdown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ export default defineConfig({
platform: "node",
target: "node20",
dts: true,
attw: { profile: "esm-only" },
clean: true,
outDir: "dist",
shims: false,
Expand Down
4 changes: 3 additions & 1 deletion apps/oxlint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,16 @@
"conformance": "node ./conformance/src/index.ts"
},
"devDependencies": {
"@arethetypeswrong/core": "catalog:",
"@napi-rs/cli": "catalog:",
"@types/esquery": "^1.5.4",
"@types/estree": "^1.0.8",
"@types/json-schema": "^7.0.15",
"@types/json-stable-stringify-without-jsonify": "^1.0.2",
"@typescript-eslint/scope-manager": "8.48.1",
"ajv": "^6.12.6",
"cross-env": "catalog:",
"eslint": "^9.36.0",
"eslint": "catalog:",
"esquery": "^1.6.0",
"execa": "^9.6.0",
"jiti": "^2.6.0",
Expand Down
4 changes: 4 additions & 0 deletions napi/minify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@
"build": "pnpm run build-dev --features allocator --release",
"postbuild": "publint",
"postbuild-dev": "node scripts/patch.js",
"build-wasm": "pnpm run build-wasm-dev --release",
"build-wasm-dev": "pnpm run build-dev --target wasm32-wasip1-threads",
"test": "tsc && vitest run --dir ./test"
},
"devDependencies": {
"@napi-rs/cli": "catalog:",
"@types/node": "catalog:",
"publint": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
},
Expand Down
6 changes: 5 additions & 1 deletion napi/parser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@
"build": "pnpm run build-dev --features allocator --release",
"postbuild": "publint",
"postbuild-dev": "node scripts/patch.js",
"build-wasi": "pnpm run build-dev --release --target wasm32-wasip1-threads",
"build-wasi": "napi build --target wasm32-wasip1-threads",
"build-wasm": "pnpm run build-wasm-dev --release",
"build-wasm-dev": "pnpm run build-dev --target wasm32-wasip1-threads",
"build-npm-dir": "rm -rf npm-dir && napi create-npm-dirs --npm-dir npm-dir && pnpm napi artifacts --npm-dir npm-dir --output-dir src-js",
"build-browser-bundle": "node scripts/build-browser-bundle.js",
"test": "tsc && pnpm run test-node run",
Expand All @@ -69,13 +71,15 @@
},
"devDependencies": {
"@codspeed/vitest-plugin": "^5.0.0",
"@napi-rs/cli": "catalog:",
"@napi-rs/wasm-runtime": "catalog:",
"@types/node": "catalog:",
"@typescript-eslint/visitor-keys": "^8.44.0",
"@vitest/browser": "4.0.15",
"@vitest/browser-playwright": "4.0.15",
"esbuild": "^0.27.0",
"playwright": "^1.51.0",
"publint": "catalog:",
"tinypool": "^2.0.0",
"typescript": "catalog:",
"vitest": "catalog:"
Expand Down
10 changes: 7 additions & 3 deletions napi/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,18 @@
},
"scripts": {
"build-test": "echo 'Skipped because there are no tests.'",
"build-dev": "pnpm run build:napi && node scripts/patch.js",
"build": "pnpm run build:napi --release && node scripts/patch.js",
"build:napi": "napi build --platform --esm --target wasm32-wasip1-threads",
"build-dev": "pnpm run build-wasm-dev && node scripts/patch.js",
"build": "pnpm run build-wasm-dev --release && node scripts/patch.js",
"build-wasm-dev": "napi build --platform --esm --target wasm32-wasip1-threads",
"postbuild": "publint"
},
"dependencies": {
"@napi-rs/wasm-runtime": "catalog:"
},
"devDependencies": {
"@napi-rs/cli": "catalog:",
"publint": "catalog:"
},
"napi": {
"binaryName": "playground",
"packageName": "@oxc-playground/binding",
Expand Down
4 changes: 4 additions & 0 deletions napi/transform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,14 @@
"build": "pnpm run build-dev --features allocator --release",
"postbuild": "publint",
"postbuild-dev": "node scripts/patch.js",
"build-wasm": "pnpm run build-wasm-dev --release",
"build-wasm-dev": "pnpm run build-dev --target wasm32-wasip1-threads",
"test": "tsc && vitest run --dir ./test"
},
"devDependencies": {
"@napi-rs/cli": "catalog:",
"@types/node": "catalog:",
"publint": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
},
Expand Down
2 changes: 1 addition & 1 deletion oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"promise",
"vitest"
],
"jsPlugins": ["./oxlint-plugin.mts"],
"jsPlugins": ["./plugins/oxlint-plugin.mts"],
"categories": {
"correctness": "error",
"perf": "error"
Expand Down
10 changes: 2 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,15 @@
"build": "pnpm --workspace-concurrency=1 --filter \"./napi/*\" --filter \"./apps/*\" build",
"build-dev": "pnpm --workspace-concurrency=1 --filter \"./napi/*\" --filter \"./apps/*\" build-dev",
"build-test": "pnpm --workspace-concurrency=1 --filter \"./napi/*\" --filter \"./apps/*\" build-test",
"build-wasm-dev": "pnpm --workspace-concurrency=1 --filter \"./napi/*\" build-wasm-dev",
"test": "pnpm --workspace-concurrency=1 --filter \"./napi/*\" --filter \"./apps/*\" test",
"fmt": "oxfmt -c oxfmtrc.jsonc",
"lint": "oxlint -c oxlintrc.json --deny-warnings --type-aware --type-check --report-unused-disable-directives"
},
"devDependencies": {
"@arethetypeswrong/core": "0.18.2",
"@napi-rs/cli": "catalog:",
"emnapi": "1.7.1",
"eslint": "^9.39.2",
"oxfmt": "^0.18.0",
"oxlint": "^1.33.0",
"oxlint-tsgolint": "0.9.1",
"publint": "catalog:",
"typescript": "catalog:",
"vitest": "catalog:"
"oxlint-tsgolint": "0.9.1"
},
"packageManager": "pnpm@10.24.0"
}
File renamed without changes.
6 changes: 6 additions & 0 deletions plugins/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"name": "plugins",
"devDependencies": {
"eslint": "catalog:"
}
}
Loading
Loading