File tree Expand file tree Collapse file tree 2 files changed +1
-14
lines changed
Expand file tree Collapse file tree 2 files changed +1
-14
lines changed Original file line number Diff line number Diff line change 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" ,
4544 "dependencies" : {
4645 "@contentstack/cli-utilities" : " ^1.8.4"
4746 }
48- }
47+ }
Original file line number Diff line number Diff line change @@ -25,18 +25,6 @@ if [[ "$NODE_VERSION" != v21.* ]]; then
2525fi
2626nvm 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
4129cd " $SCRIPT_DIR " || exit 1
4230
You can’t perform that action at this time.
0 commit comments