Skip to content

Commit

Permalink
Updated: npm from pnpm in vercel
Browse files Browse the repository at this point in the history
  • Loading branch information
Arvind-4 committed May 22, 2024
1 parent 1154b13 commit 651f0ca
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 19 deletions.
4 changes: 2 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ python3 -m pip install -r requirements.txt
# --noinput || true

echo "Running npm install..."
pnpm bootstrap
npm run bootstrap

echo "Running npm Production..."
pnpm collect
npm run collect

echo "Collecting static files..."
python3 src/manage.py collectstatic --noinput --clear
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "django-react",
"version": "1.0.0",
"scripts": {
"bootstrap": "cd src/ui && pnpm install",
"collect": "cd src/ui && pnpm collect"
"bootstrap": "npm install --prefix src/ui",
"collect": "npm run collect --prefix src/ui"
},
"keywords": [],
"author": "",
Expand Down
9 changes: 0 additions & 9 deletions pnpm-lock.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion pyvenv.cfg
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
home = /usr/local/python/3.10.13/bin
implementation = CPython
version_info = 3.10.13.final.0
virtualenv = 20.25.1
virtualenv = 20.26.2
include-system-site-packages = false
base-prefix = /usr/local/python/3.10.13
base-exec-prefix = /usr/local/python/3.10.13
Expand Down
11 changes: 6 additions & 5 deletions src/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,15 @@
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"format": "prettier --write .",
"preview": "vite preview",
"collect": "pnpm build && pnpm build-rename && pnpm copy-buildfiles",
"build-rename": "pnpm build-rename-js && pnpm build-rename-css",
"collect": "npm run build && npm run build-rename && npm run copy-buildfiles",
"build-rename": "npm run build-rename-js && npm run build-rename-css",
"build-rename-js": "renamer --regex --find 'index\\-[^\\.]+\\.js' --replace 'index.min.js' dist/assets/*.js",
"build-rename-css": "renamer --regex --find 'index\\-[^\\.]+\\.css' --replace 'index.min.css' dist/assets/*.css",
"copy-buildfiles": "pnpm copy-build-js && pnpm copy-build-css && pnpm copy-build-images",
"copy-buildfiles": "npm run copy-build-js && npm run copy-build-css && npm run copy-build-images",
"copy-build-js": "copyfiles -f 'dist/assets/*.js' '../staticfiles/js/'",
"copy-build-css": "copyfiles -f 'dist/assets/*.css' '../staticfiles/css/'",
"copy-build-images": "copyfiles -f 'dist/*.{svg,png,jpeg}' '../staticfiles/'",
"collectstatic": "pnpm collect && python ../manage.py collectstatic --no-input --clear"
"collectstatic": "npm run collect && python ../manage.py collectstatic --no-input --clear"
},
"dependencies": {
"react": "^18.2.0",
Expand All @@ -58,7 +58,8 @@
},
"engines": {
"node": ">=18.0.0",
"pnpm": ">=8.0.0"
"pnpm": ">=8.0.0",
"npm": ">=8.0.0"
},
"devDependencies": {
"@types/node": "^20.11.25",
Expand Down

0 comments on commit 651f0ca

Please sign in to comment.