Skip to content

Commit c9d19c9

Browse files
markkuhnMark Kuhn
and
Mark Kuhn
authored
undo node_modules removal in pre-publish (#127)
* undo node_modules removal in pre-publish * rm unused function in utils.sh Co-authored-by: Mark Kuhn <[email protected]>
1 parent 698b515 commit c9d19c9

File tree

2 files changed

+1
-12
lines changed

2 files changed

+1
-12
lines changed

bin/publish-package.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ source $rootdir/bin/utils.sh
99
new_version=$(cat package.json | jq '.version' --raw-output)
1010
echo "Deploying $new_version to NPM"
1111

12-
rm -rf node_modules/
1312
# we need to do this so that eslint doesn't try to stat the directory
1413
# and blow up on too many symlinks
1514
rm -rf examples/agent/node_modules/
1615
rm -rf examples/ecs-firelens/node_modules/
16+
rm -rf examples/eks/node_modules/
1717
rm -rf examples/lambda/src/node_modules/
1818
rm -rf examples/testing/node_modules/
1919

bin/utils.sh

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,3 @@ function check_exit() {
1010
exit $last_exit_code;
1111
fi
1212
}
13-
14-
function confirm() {
15-
echo "Confirm [Yy]?"
16-
read REPLY""
17-
if [[ $REPLY =~ ^[Yy]$ ]]
18-
then
19-
# do dangerous stuff
20-
else
21-
exit 1
22-
fi
23-
}

0 commit comments

Comments
 (0)