File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 8
8
"**/node_modules" : true ,
9
9
"**/build" : true ,
10
10
"**/coverage" : true ,
11
- "**/dist" : true ,
11
+ "**/dist" : true
12
12
},
13
13
"eslint.validate" : [
14
14
" javascript" ,
32
32
" ./svelte"
33
33
],
34
34
"typescript.preferences.preferTypeOnlyAutoImports" : true ,
35
- "rustTestExplorer.rootCargoManifestFilePath" : " ./Cargo.toml"
35
+ "rustTestExplorer.rootCargoManifestFilePath" : " ./Cargo.toml" ,
36
+ // This won't work in multi-root workspaces, could be fixed by using a rust-analyzer.toml once there is some more documentation on that.
37
+ // For now you need to set this in your own vscode settings file.
38
+ "rust-analyzer.cargo.extraEnv" : {
39
+ "ATOMICSERVER_SKIP_JS_BUILD" : " true"
40
+ }
36
41
}
Original file line number Diff line number Diff line change @@ -20,6 +20,15 @@ struct Dirs {
20
20
fn main ( ) -> std:: io:: Result < ( ) > {
21
21
// Uncomment this line if you want faster builds during development
22
22
// return Ok(());
23
+
24
+ // If the ATOMICSERVER_SKIP_JS_BUILD environment variable is set, skip the JS build
25
+ if let Ok ( env_skip) = std:: env:: var ( "ATOMICSERVER_SKIP_JS_BUILD" ) {
26
+ if env_skip == "true" {
27
+ p ! ( "ATOMICSERVER_SKIP_JS_BUILD is set, skipping JS build." ) ;
28
+ return Ok ( ( ) ) ;
29
+ }
30
+ }
31
+
23
32
const BROWSER_ROOT : & str = "../browser/" ;
24
33
let dirs: Dirs = {
25
34
Dirs {
You can’t perform that action at this time.
0 commit comments