Skip to content

Commit af95eef

Browse files
authored
fix: deactivate the update notifier from npm (#1737)
1 parent fbf38f2 commit af95eef

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

apps/framework-cli/src/framework/typescript/parser.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ pub fn extract_data_model_from_file(
6363
.arg("tspc")
6464
.arg("--project")
6565
.arg(".moose/tsconfig.json")
66+
.env("NPM_CONFIG_UPDATE_NOTIFIER", "false")
6667
.current_dir(&project.project_location)
6768
.spawn()?
6869
.wait()

apps/framework-cli/src/framework/typescript/ts_node.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ pub fn run(script: &str, args: &[&str]) -> Result<Child, std::io::Error> {
1515
let mut command = Command::new("npx");
1616

1717
command
18+
.env("NPM_CONFIG_UPDATE_NOTIFIER", "false")
1819
.arg("--yes")
1920
.arg("ts-node")
2021
.arg("-e")

0 commit comments

Comments
 (0)