Skip to content

Commit

Permalink
Merge pull request #213 from bartocc/bartocc/patch-69226
Browse files Browse the repository at this point in the history
Properly configure Yarn v3
  • Loading branch information
ef4 authored Oct 10, 2023
2 parents 08e7d6a + aa4d842 commit 69f4c77
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions files/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
11 changes: 11 additions & 0 deletions files/gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,14 @@ yarn-error.log
/package-lock.json.ember-try
/yarn.lock.ember-try
/pnpm-lock.ember-try.yaml

<% if (yarn) { %>
# https://yarnpkg.com/getting-started/qa/#which-files-should-be-gitignored
.yarn/*
!.yarn/cache
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
<% } %>
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,12 @@ module.exports = {
files = files.filter((filename) => !filename.endsWith('.npmrc'));
}

if (!this.yarn) {
let ignoredFiles = ['.yarnrc.yml'];

files = files.filter(filename => !ignoredFiles.includes(filename));
}

return files;
},

Expand Down

0 comments on commit 69f4c77

Please sign in to comment.