Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
fix for #174: create npmrc containing prefix to build package symli…
Browse files Browse the repository at this point in the history
…nks properly
  • Loading branch information
Ma27 committed Jul 12, 2017
1 parent fe41d67 commit 1a020b5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions manifests/instance.pp
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,17 @@
}
}

$node_prefix = "${target_dir}"
file { "nodejs-npmrc-etc-dir-${version}":
ensure => directory,
path => "${node_unpack_folder}/etc",
} ->
file { "nodejs-npmrc-${version}":
ensure => present,
path => "${node_unpack_folder}/etc/npmrc",
content => template("${module_name}/npmrc")
}

file { "nodejs-symlink-bin-with-version-${version}":
ensure => 'link',
path => $node_symlink,
Expand Down
1 change: 1 addition & 0 deletions templates/npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
prefix=<%= @node_prefix.sub! '/bin', '' %>

0 comments on commit 1a020b5

Please sign in to comment.