mirror of
https://github.com/NoRedInk/noredink-ui.git
synced 2024-09-17 10:17:09 +03:00
run scripts in the foreground
This commit is contained in:
parent
c63a3176e3
commit
76c9c22bc6
@ -22,11 +22,6 @@ if __name__ == "__main__":
|
||||
help="The package-lock.json corresponding to package.json",
|
||||
default="package-lock.json",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--no-ignore-scripts",
|
||||
action="store_true",
|
||||
help="Don't run package post-install scripts",
|
||||
)
|
||||
parser.add_argument(
|
||||
"--bin-dir",
|
||||
help="Path to a node installation's binary directory. If present, will be treated as an extra entry in PATH for the duration of this command.",
|
||||
@ -45,9 +40,7 @@ if __name__ == "__main__":
|
||||
shutil.copy(args.package, os.path.join(tempdir, "package.json"))
|
||||
shutil.copy(args.package_lock, os.path.join(tempdir, "package-lock.json"))
|
||||
|
||||
cmd = ["npm", "clean-install"]
|
||||
if not args.no_ignore_scripts:
|
||||
cmd.append("--ignore-scripts")
|
||||
cmd = ["npm", "clean-install", "--foreground-scripts"]
|
||||
|
||||
proc = subprocess.Popen(cmd, cwd=tempdir)
|
||||
proc.communicate()
|
||||
|
Loading…
Reference in New Issue
Block a user