From 6652977967ad0c152447057b86b67da1fb96f345 Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Wed, 11 Aug 2021 23:08:54 +0800 Subject: [PATCH] chore: add a note that `pnpm init` cannot be distinguished at the moment --- index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/index.js b/index.js index cab65f72..c99f0169 100755 --- a/index.js +++ b/index.js @@ -304,6 +304,8 @@ async function init() { // Instructions: // Supported package managers: pnpm > yarn > npm + // Note: until is resolved, + // it is not possible to tell if the command is called by `pnpm init`. const packageManager = /pnpm/.test(process.env.npm_execpath) ? 'pnpm' : /yarn/.test(process.env.npm_execpath) -- 2.39.5