Skip to content

Commit

Permalink
update node module
Browse files Browse the repository at this point in the history
Signed-off-by: Vasek - Tom C <[email protected]>
  • Loading branch information
TomChv committed Aug 8, 2024
1 parent 4f9da97 commit eff3c01
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ class Node {
@func()
ctr: Container;

constructor(source: Directory, packageManager: string = "NPM", version: string = "20.9.0") {
constructor(source: Directory, packageManager?: string, version?: string) {
if (!packageManager) {
packageManager = PackageManager.NPM;
}

if (!version) {
version = "20.9.0"; // LTS
}

this.ctr = dag
.container()
.from(`node:${version}`)
Expand Down

0 comments on commit eff3c01

Please sign in to comment.