1
+ [workspace ]
2
+ members = [" ." , " packages/ts-wasm-language-service" ]
3
+
1
4
[package ]
2
5
authors = [
" LongYinan <[email protected] >" ]
3
6
edition = " 2021"
@@ -7,25 +10,39 @@ version = "0.0.0"
7
10
[lib ]
8
11
crate-type = [" cdylib" ]
9
12
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
+
10
27
[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
20
37
21
38
[target .'cfg(all(not(target_os = "linux"), not(target_family = "wasm")))' .dependencies ]
22
- mimalloc = " 0.1 "
39
+ mimalloc = { workspace = true }
23
40
24
41
[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" ] }
26
43
27
44
[build-dependencies ]
28
- napi-build = " 2 "
45
+ napi-build = { workspace = true }
29
46
30
47
[profile .release ]
31
48
codegen-units = 1
0 commit comments