From e2472931df862a91de88064c762e5ec6c325f021 Mon Sep 17 00:00:00 2001 From: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com> Date: Tue, 21 Nov 2023 13:18:19 -0500 Subject: [PATCH] Missed an isPnpm usage --- index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index df4daeb4..13b96fa8 100644 --- a/index.js +++ b/index.js @@ -83,7 +83,7 @@ module.exports = { })(), ); - if (options.packageManager === 'pnpm' || options.pnpm) { + if (isPnpm(options)) { tasks.push(pnpm.createWorkspacesFile(options.target, addonInfo, testAppInfo)); } @@ -324,7 +324,7 @@ module.exports = { files = files.filter((filename) => !filename.endsWith('.npmrc')); } - if (!(isYarn(options))) { + if (!isYarn(options)) { let ignoredFiles = ['.yarnrc.yml']; files = files.filter((filename) => !ignoredFiles.includes(filename)); @@ -362,10 +362,9 @@ function buildBlueprintOptions(blueprintOptions) { return ''; } - // These methods exist because in ember-cli 5.4, package manager handling // had changed to solely use the packageManager key, however -// prior to ember-cli 5.4, pnpm, yarn, and npm, had their own booleans on +// prior to ember-cli 5.4, pnpm, yarn, and npm, had their own booleans on // the options object. function isPnpm(options) { return options.packageManager === 'pnpm' || options.pnpm; @@ -377,4 +376,5 @@ function isYarn(options) { function isNpm(options) { return options.packageManager === 'npm' || options.npm; -} \ No newline at end of file +} +