Skip to content

Commit

Permalink
Missed an isPnpm usage
Browse files Browse the repository at this point in the history
  • Loading branch information
NullVoxPopuli committed Nov 21, 2023
1 parent 13c6108 commit e247293
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ module.exports = {
})(),
);

if (options.packageManager === 'pnpm' || options.pnpm) {
if (isPnpm(options)) {
tasks.push(pnpm.createWorkspacesFile(options.target, addonInfo, testAppInfo));
}

Expand Down Expand Up @@ -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));
Expand Down Expand Up @@ -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;
Expand All @@ -377,4 +376,5 @@ function isYarn(options) {

function isNpm(options) {
return options.packageManager === 'npm' || options.npm;
}
}

0 comments on commit e247293

Please sign in to comment.