From 4f2e77f8b0c655ff98851fd8215a8c356fbc5ca6 Mon Sep 17 00:00:00 2001 From: Jared Galanis Date: Sat, 9 Mar 2024 15:56:34 -0500 Subject: [PATCH] fix: update to use pnpm in generate script to align with ember.js --- generate-local.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/generate-local.js b/generate-local.js index 508df1f..e16a5a2 100755 --- a/generate-local.js +++ b/generate-local.js @@ -52,9 +52,9 @@ async function runCmd(cmd, path, args = []) { } try { - await commandExists('yarn'); + await commandExists('pnpm'); } catch (e) { - exit(chalk.red('We need yarn installed globally for this script to work')); + exit(chalk.red('We need pnpm installed globally for this script to work')); } let emberProjectPath = path.join('../', 'ember.js'); @@ -70,13 +70,13 @@ let buildDocs = async projDirPath => { checkIfProjectDirExists(projDirPath); if (project === 'ember') { - await runCmd('volta', projDirPath, ['run', 'yarn']); + await runCmd('corepack', projDirPath, ['pnpm', 'install']); } else { await runCmd('corepack', projDirPath, ['pnpm', 'install']); } await runCmd( - project === 'ember' ? 'volta run yarn docs' : 'corepack pnpm run build:docs', + project === 'ember' ? 'corepack pnpm run docs' : 'corepack pnpm run build:docs', projDirPath, ); @@ -100,6 +100,6 @@ let dirMap = { await buildDocs(dirMap[project]); -await execa('volta', ['run', 'yarn', 'start', '--projects', project, '--version', version], { +await execa('pnpm', ['run', 'start', '--projects', project, '--version', version], { stdio: 'inherit', });