Skip to content

Commit 7f5ef0f

Browse files
committed
feat(core): import wasm file
1 parent 5375275 commit 7f5ef0f

21 files changed

+2885
-79
lines changed

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib"
3+
}

Cargo.lock

+174-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+29-12
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
[workspace]
2+
members = [".", "packages/ts-wasm-language-service"]
3+
14
[package]
25
authors = ["LongYinan <[email protected]>"]
36
edition = "2021"
@@ -7,25 +10,39 @@ version = "0.0.0"
710
[lib]
811
crate-type = ["cdylib"]
912

13+
[workspace.dependencies]
14+
mimalloc = "0.1"
15+
napi = { version = "3.0.0-alpha", default-features = false, features = ["serde-json", "napi3"] }
16+
napi-build = "2"
17+
napi-derive = { version = "3.0.0-alpha", default-features = false, features = ["type-def"] }
18+
oxc = { version = "0.37", features = ["codegen", "transformer", "sourcemap_concurrent", "semantic"] }
19+
oxc_resolver = "2"
20+
phf = "0.11"
21+
serde = { version = "1.0", features = ["derive"] }
22+
serde_json = "1"
23+
tracing = "0.1"
24+
tracing-subscriber = { version = "0.3", default-features = false, features = ["std", "fmt"] }
25+
walrus = "0.23"
26+
1027
[dependencies]
11-
napi = { version = "3.0.0-alpha", default-features = false, features = ["serde-json", "napi3"] }
12-
napi-derive = { version = "3.0.0-alpha", default-features = false, features = ["type-def"] }
13-
oxc = { version = "0.37", features = ["codegen", "transformer", "sourcemap_concurrent", "semantic"] }
14-
oxc_resolver = "2"
15-
phf = "0.11"
16-
serde = { version = "1.0", features = ["derive"] }
17-
serde_json = "1"
18-
tracing = "0.1"
19-
tracing-subscriber = { version = "0.3", default-features = false, features = ["std", "fmt"] } # Omit the `regex` feature
28+
napi = { workspace = true }
29+
napi-derive = { workspace = true }
30+
oxc = { workspace = true }
31+
oxc_resolver = { workspace = true }
32+
phf = { workspace = true }
33+
serde = { workspace = true }
34+
serde_json = { workspace = true }
35+
tracing = { workspace = true }
36+
tracing-subscriber = { workspace = true } # Omit the `regex` feature
2037

2138
[target.'cfg(all(not(target_os = "linux"), not(target_family = "wasm")))'.dependencies]
22-
mimalloc = "0.1"
39+
mimalloc = { workspace = true }
2340

2441
[target.'cfg(all(target_os = "linux", not(target_arch = "arm")))'.dependencies]
25-
mimalloc = { version = "0.1", features = ["local_dynamic_tls"] }
42+
mimalloc = { workspace = true, features = ["local_dynamic_tls"] }
2643

2744
[build-dependencies]
28-
napi-build = "2"
45+
napi-build = { workspace = true }
2946

3047
[profile.release]
3148
codegen-units = 1

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"@napi-rs/wasm-runtime": "^0.2.5",
99
"@oxc-node/cli": "workspace:*",
1010
"@oxc-node/core": "workspace:*",
11+
"@oxc-node/ts-wasm-language-service": "workspace:*",
1112
"@taplo/cli": "^0.7.0",
1213
"@types/node": "^22.9.3",
1314
"ava": "^6.2.0",
@@ -23,6 +24,7 @@
2324
},
2425
"scripts": {
2526
"bench": "pnpm --filter=bench bench",
27+
"build:ts": "tsc -b ./tsconfig.json",
2628
"format": "taplo fmt && prettier --write . && cargo fmt",
2729
"lint": "oxlint",
2830
"test": "pnpm --sequential --filter=integrate* run test",

packages/cli/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"@oxc-node/core": "workspace:*"
1212
},
1313
"devDependencies": {
14-
"clipanion": "^4.0.0-rc.3",
15-
"rolldown": "^0.13.0"
14+
"clipanion": "^4.0.0-rc.4",
15+
"rolldown": "^0.14.0"
1616
},
1717
"files": [
1818
"dist"

packages/integrate-module/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!src/add.wasm
41 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)