Skip to content

Commit

Permalink
Move this to the right place during install.
Browse files Browse the repository at this point in the history
  • Loading branch information
danfuzz committed May 21, 2024
1 parent e943610 commit bc894b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/lib/bashy-node/node-project/build-main-module
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,6 @@ function build-project {
&& copy-scripts "${srcMainModule}" "${destDir}" \
&& copy-local-modules "${destLocalModules}" "${deps}" \
&& remove-dead-local-modules "${destLocalModules}" "${deps}" \
&& run-postinstall-scripts "${destLocalModules}" "$(jget "${deps}" '.postinstallScripts')" \
|| return "$?"

# Do `npm install`, but only if it hasn't yet been done _or_ the top-level
Expand All @@ -169,6 +168,9 @@ function build-project {
fi

cp "${destLibDir}/package-lock.json" "${srcPackageLockJson}"

run-postinstall-scripts "${destLocalModules}" "$(jget "${deps}" '.postinstallScripts')" \
|| return "$?"
}

# Figures out the pithy commit info to associate with the build.
Expand Down

0 comments on commit bc894b2

Please sign in to comment.