-
Notifications
You must be signed in to change notification settings - Fork 484
Remove usage of execSync in scripts #4099
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
4c8f7d0
2f0dda7
29b0ba6
6c7bb72
b44f7b6
85d1b45
c5b6877
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -1,7 +1,7 @@ | ||||||||
| import chalk from 'chalk'; | ||||||||
| import path from 'path'; | ||||||||
| import fs from 'fs'; | ||||||||
| import { execSync } from 'child_process'; | ||||||||
| import { execFileSync } from 'child_process'; | ||||||||
| import { getRepoRoot, commitVersionChange } from '../utils/git.js'; | ||||||||
| import { sanitizeVersion } from '../utils/version.js'; | ||||||||
|
|
||||||||
|
|
@@ -22,7 +22,10 @@ export function startRelease(releaseVersion: string): void { | |||||||
|
|
||||||||
| // Run npm install in app directory | ||||||||
| console.log(chalk.blue('Running npm install in app directory...')); | ||||||||
| execSync('npm install', { stdio: 'inherit', cwd: path.join(repoRoot, 'app') }); | ||||||||
| execFileSync('npm', ['install'], { | ||||||||
| stdio: 'inherit', | ||||||||
| cwd: path.join(repoRoot, 'app'), | ||||||||
|
||||||||
| cwd: path.join(repoRoot, 'app'), | |
| cwd: path.join(repoRoot, 'app'), | |
| shell: true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a real issue, I tested it in node on windows with cmd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this could probably be reverted, doing this now
Uh oh!
There was an error while loading. Please reload this page.