From f8f6e1fad8057edc02e4ce4382b1bc086d01211c Mon Sep 17 00:00:00 2001 From: Myles Borins Date: Mon, 26 Oct 2020 17:42:22 -0400 Subject: [PATCH] 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 --- scripts/release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release.sh b/scripts/release.sh index 75d2115aadf83..a3c1356b002f7 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