Skip to content

Commit 5b0debd

Browse files
committed
removed cli package setup code from setup.sh file
1 parent cf6b01c commit 5b0debd

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "1.0.0",
44
"description": "",
55
"scripts": {
6-
"preinstall": "npm install -g pnpm",
76
"test": "echo \"Error: no test specified\" && exit 1",
87
"postinstall": "(cd ./api && npm install) ; (cd ./ui && npm install) ; (cd ./upload-api && npm install)",
98
"env": "npm start",
@@ -45,4 +44,4 @@
4544
"dependencies": {
4645
"@contentstack/cli-utilities": "^1.8.4"
4746
}
48-
}
47+
}

setup.sh

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,6 @@ if [[ "$NODE_VERSION" != v21.* ]]; then
2525
fi
2626
nvm use 21
2727

28-
Setup CLI
29-
echo "Setting up CLI repo..."
30-
cd "$SCRIPT_DIR/cli" || exit 1
31-
32-
# Check if current user can write to node_modules
33-
if [ -w node_modules ] || [ ! -d node_modules ]; then
34-
npm run setup-repo --force
35-
else
36-
echo "Permission issue detected. Trying with sudo..."
37-
sudo npm run setup-repo --force
38-
fi
39-
4028
# Return to script root
4129
cd "$SCRIPT_DIR" || exit 1
4230

0 commit comments

Comments
 (0)