use pnpm for next-with-deps (#54847)

This fixes the "Usage Error: This project is configured to use pnpm" error when running `next-with-deps` since we [enforce a package manager](https://github.com/vercel/next.js/blob/canary/package.json#L252)
This commit is contained in:
Zack Tanner 2023-08-31 09:12:38 -07:00 committed by GitHub
parent 826ef8c715
commit f0fa7c5406
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ done
if [ ! -z $HAS_CONFLICTING_DEP ] || [ ! -d "$PROJECT_DIR/node_modules" ];then if [ ! -z $HAS_CONFLICTING_DEP ] || [ ! -d "$PROJECT_DIR/node_modules" ];then
cd $PROJECT_DIR cd $PROJECT_DIR
yarn install pnpm i --ignore-workspace
for dep in ${CONFLICTING_DEPS[@]};do for dep in ${CONFLICTING_DEPS[@]};do
rm -rf node_modules/$dep rm -rf node_modules/$dep
done done