mirror of
https://github.com/nix-community/dream2nix.git
synced 2024-09-11 14:35:30 +03:00
nodejs: use package name set via CLI
This commit is contained in:
parent
c441eabbb8
commit
12c9f565aa
@ -103,9 +103,10 @@
|
||||
inputData = packageLockWithPinnedVersions;
|
||||
|
||||
mainPackageName =
|
||||
parsed.name or
|
||||
(if name != "{automatic}" then name else
|
||||
throw (
|
||||
if name != "{automatic}" then
|
||||
name
|
||||
else
|
||||
parsed.name or (throw (
|
||||
"Could not identify package name. "
|
||||
+ "Please specify extra argument 'name'"
|
||||
));
|
||||
|
@ -51,12 +51,13 @@
|
||||
inputData = parsedLock;
|
||||
|
||||
mainPackageName =
|
||||
packageJSON.name or
|
||||
(if name != "{automatic}" then name else
|
||||
throw (
|
||||
"Could not identify package name. "
|
||||
+ "Please specify extra argument 'name'"
|
||||
));
|
||||
if name != "{automatic}" then
|
||||
name
|
||||
else
|
||||
parsed.name or (throw (
|
||||
"Could not identify package name. "
|
||||
+ "Please specify extra argument 'name'"
|
||||
));
|
||||
|
||||
mainPackageVersion = packageJSON.version or "unknown";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user