Skip to content

Commit

Permalink
fix: fix pnpm err,not use pnpm at now
Browse files Browse the repository at this point in the history
  • Loading branch information
dongwa committed May 26, 2022
1 parent 43ad926 commit bb11aac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ export async function build(opts: BuildOptions): Promise<BuilderOutput> {
const nodeVersion = await getNodeVersion(entrypointPath, undefined, {}, meta);
const spawnOpts = getSpawnOptions(meta, nodeVersion);

/** Not use pnpm at now.TODO:support pnpm */
const pnpmLockName = 'pnpm-lock.yaml';
if (fs.existsSync(pnpmLockName)) fs.unlinkSync(pnpmLockName);

// Detect npm (prefer yarn)
const isYarn = !fs.existsSync('package-lock.json');
consola.log('Using', isYarn ? 'yarn' : 'npm');
Expand Down

0 comments on commit bb11aac

Please sign in to comment.