diff options
author | Myles Borins <mylesborins@github.com> | 2020-10-27 00:42:22 +0300 |
---|---|---|
committer | nlf <quitlahok@gmail.com> | 2020-10-27 21:36:35 +0300 |
commit | f8f6e1fad8057edc02e4ce4382b1bc086d01211c (patch) | |
tree | 7bbe9e4c55661d2a14d1874d79834134b4937dde /scripts/release.sh | |
parent | 46c7f792ab16dd0b091e1ad6d37de860c8885883 (diff) |
tools: properly remove pycache in release script
Looks like the latest version of node-gyp has the .pyc in a
__pycache__ directory rather than with the other python files.
There is currently a non-exiting error when running the release
script due to this.
PR-URL: https://github.com/npm/cli/pull/2049
Credit: @MylesBorins
Close: #2049
Reviewed-by: @nlf
Diffstat (limited to 'scripts/release.sh')
-rw-r--r-- | scripts/release.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/release.sh b/scripts/release.sh index 75d2115aa..a3c1356b0 100644 --- a/scripts/release.sh +++ b/scripts/release.sh @@ -7,8 +7,8 @@ unset CDPATH set -e rm -rf release *.tgz || true -rm node_modules/node-gyp/gyp/pylib/gyp/*.pyc || true -rm node_modules/node-gyp/gyp/pylib/gyp/generator/*.pyc || true +rm node_modules/node-gyp/gyp/pylib/gyp/__pycache__/*.pyc || true +rm node_modules/node-gyp/gyp/pylib/gyp/generator/__pycache__/*.pyc || true mkdir release node ./bin/npm-cli.js pack --loglevel error >/dev/null mv *.tgz release |