Skip to content

Commit

Permalink
Generate production bundled(npm) - similar to Cockpit project approach
Browse files Browse the repository at this point in the history
  • Loading branch information
droideck committed Jan 27, 2024
1 parent 1dd303b commit d763ac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rpm/bundle-rust-npm.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ def write_provides_bundled(provides_lines: List[str], spec_file: str, cleaned: b
sys.exit(1)

rust_output = run_cmd(["cargo", "license", "--json", "--current-dir", args.cargo_path])
npm_output = run_cmd(["npx", "license-checker", "--json", "--start", args.npm_path])
npm_output = run_cmd(["npx", "license-checker", "--production", "--json", "--start", args.npm_path])

if rust_output is None or npm_output is None:
log.error("Failed to process dependencies. Ensure cargo-license and license-checker are installed and accessible. "
Expand Down

0 comments on commit d763ac6

Please sign in to comment.