Skip to content

Commit 651f0ca

Browse files
committed
Updated: npm from pnpm in vercel
1 parent 1154b13 commit 651f0ca

File tree

5 files changed

+11
-19
lines changed

5 files changed

+11
-19
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ python3 -m pip install -r requirements.txt
2121
# --noinput || true
2222

2323
echo "Running npm install..."
24-
pnpm bootstrap
24+
npm run bootstrap
2525

2626
echo "Running npm Production..."
27-
pnpm collect
27+
npm run collect
2828

2929
echo "Collecting static files..."
3030
python3 src/manage.py collectstatic --noinput --clear

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"name": "django-react",
33
"version": "1.0.0",
44
"scripts": {
5-
"bootstrap": "cd src/ui && pnpm install",
6-
"collect": "cd src/ui && pnpm collect"
5+
"bootstrap": "npm install --prefix src/ui",
6+
"collect": "npm run collect --prefix src/ui"
77
},
88
"keywords": [],
99
"author": "",

pnpm-lock.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

pyvenv.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
home = /usr/local/python/3.10.13/bin
22
implementation = CPython
33
version_info = 3.10.13.final.0
4-
virtualenv = 20.25.1
4+
virtualenv = 20.26.2
55
include-system-site-packages = false
66
base-prefix = /usr/local/python/3.10.13
77
base-exec-prefix = /usr/local/python/3.10.13

src/ui/package.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@
4141
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
4242
"format": "prettier --write .",
4343
"preview": "vite preview",
44-
"collect": "pnpm build && pnpm build-rename && pnpm copy-buildfiles",
45-
"build-rename": "pnpm build-rename-js && pnpm build-rename-css",
44+
"collect": "npm run build && npm run build-rename && npm run copy-buildfiles",
45+
"build-rename": "npm run build-rename-js && npm run build-rename-css",
4646
"build-rename-js": "renamer --regex --find 'index\\-[^\\.]+\\.js' --replace 'index.min.js' dist/assets/*.js",
4747
"build-rename-css": "renamer --regex --find 'index\\-[^\\.]+\\.css' --replace 'index.min.css' dist/assets/*.css",
48-
"copy-buildfiles": "pnpm copy-build-js && pnpm copy-build-css && pnpm copy-build-images",
48+
"copy-buildfiles": "npm run copy-build-js && npm run copy-build-css && npm run copy-build-images",
4949
"copy-build-js": "copyfiles -f 'dist/assets/*.js' '../staticfiles/js/'",
5050
"copy-build-css": "copyfiles -f 'dist/assets/*.css' '../staticfiles/css/'",
5151
"copy-build-images": "copyfiles -f 'dist/*.{svg,png,jpeg}' '../staticfiles/'",
52-
"collectstatic": "pnpm collect && python ../manage.py collectstatic --no-input --clear"
52+
"collectstatic": "npm run collect && python ../manage.py collectstatic --no-input --clear"
5353
},
5454
"dependencies": {
5555
"react": "^18.2.0",
@@ -58,7 +58,8 @@
5858
},
5959
"engines": {
6060
"node": ">=18.0.0",
61-
"pnpm": ">=8.0.0"
61+
"pnpm": ">=8.0.0",
62+
"npm": ">=8.0.0"
6263
},
6364
"devDependencies": {
6465
"@types/node": "^20.11.25",

0 commit comments

Comments
 (0)