Skip to content
This repository was archived by the owner on Sep 17, 2023. It is now read-only.

Commit d20a90c

Browse files
committed
fix: use --force when running npm pack
This flag should fix a race condition we are seeing according to the error message: ``` npm ERR! Could not move /tmp/npm-106-07447faf/tmp/packing-989d668d/bitgo-common-1.0.0.tgz to bitgo-common-1.0.0.tgz: destination already exists. npm ERR! File exists: undefined npm ERR! Remove the existing file and try again, or run npm npm ERR! with --force to overwrite files recklessly. ```
1 parent 58d87b4 commit d20a90c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ $({{ unscoped_package_name.replace("-", "_").to_uppercase() }}_INTERNAL_DEPENDEN
2828
# re-compile its input sources. Since we don't have the list of sources available here,
2929
# let's invoke pack only when the file does not exist.
3030
{{ pack_archive_filename }}:
31-
cd {{ package_directory }}; npm pack
31+
cd {{ package_directory }}; npm pack --force
3232

3333
{{ unscoped_package_name.replace("-", "_").to_uppercase() }}_INTERNAL_NPM_DEPENDENCIES_EXCLUSIVE = {{ internal_npm_dependencies_exclusive.join(" \\\n") }}
3434

0 commit comments

Comments
 (0)