Skip to content

Commit

Permalink
Remove obsolete Netlify config, format, fix msg
Browse files Browse the repository at this point in the history
  • Loading branch information
karlhorky committed Oct 29, 2023
1 parent f7a5562 commit 0019e17
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions bin/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,20 +32,6 @@ if ('next' in projectDependencies) {
}
}

// As of April 2023, Netlify uses pnpm v7, which causes peer dependencies
// which we rely on being automatically installed to not be available
// (pnpm v8+ sets `auto-install-peers` to true)
//
// TODO: Remove again when Netlify upgrades to pnpm v8+
// https://answers.netlify.com/t/upgrade-netlify-build-to-pnpm-v8/90570
if (
'@upleveled/react-scripts' in projectDependencies &&
!projectPackageJson.packageManager
) {
projectPackageJson.packageManager = 'pnpm@8.3.1';
console.log('✅ Configured package manager in package.json for Netlify');
}

writeFileSync(
projectPackageJsonPath,
JSON.stringify(projectPackageJson, null, 2) + '\n',
Expand Down Expand Up @@ -180,7 +166,6 @@ for (const {
let overwriteExistingFile = false;

if (existsSync(filePathInProject)) {

if (templateFileName === 'tsconfig.json') {
const projectTsconfigJson = JSON.parse(
readFileSync(join(process.cwd(), 'tsconfig.json'), 'utf-8')
Expand Down Expand Up @@ -211,7 +196,7 @@ for (const {
}
}

console.log('✅ Done updating config files');
console.log('✅ Done copying config files');

try {
if (
Expand Down

0 comments on commit 0019e17

Please sign in to comment.