Skip to content

Commit

Permalink
Fixes "yarn init"
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanis committed Feb 1, 2023
1 parent 8ba1a57 commit 54e4fee
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 3 deletions.
35 changes: 35 additions & 0 deletions .yarn/versions/576186de.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
releases:
"@yarnpkg/cli": patch
"@yarnpkg/plugin-init": patch

declined:
- "@yarnpkg/eslint-config"
- "@yarnpkg/plugin-compat"
- "@yarnpkg/plugin-constraints"
- "@yarnpkg/plugin-dlx"
- "@yarnpkg/plugin-essentials"
- "@yarnpkg/plugin-git"
- "@yarnpkg/plugin-interactive-tools"
- "@yarnpkg/plugin-nm"
- "@yarnpkg/plugin-npm"
- "@yarnpkg/plugin-npm-cli"
- "@yarnpkg/plugin-pack"
- "@yarnpkg/plugin-patch"
- "@yarnpkg/plugin-pnp"
- "@yarnpkg/plugin-pnpm"
- "@yarnpkg/plugin-stage"
- "@yarnpkg/plugin-typescript"
- "@yarnpkg/plugin-version"
- "@yarnpkg/plugin-workspace-tools"
- vscode-zipfs
- "@yarnpkg/builder"
- "@yarnpkg/core"
- "@yarnpkg/doctor"
- "@yarnpkg/extensions"
- "@yarnpkg/fslib"
- "@yarnpkg/libui"
- "@yarnpkg/nm"
- "@yarnpkg/pnp"
- "@yarnpkg/pnpify"
- "@yarnpkg/sdks"
- "@yarnpkg/shell"
4 changes: 1 addition & 3 deletions packages/plugin-init/sources/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,10 +207,8 @@ export default class InitCommand extends BaseCommand {
}).join(``);

const gitattributesPath = ppath.join(this.context.cwd, `.gitattributes` as Filename);
if (!xfs.existsSync(gitattributesPath)) {
if (!xfs.existsSync(gitattributesPath))
await xfs.writeFilePromise(gitattributesPath, gitattributesBody);
changedPaths.push(gitattributesPath);
}

const editorConfigProperties = {
[`*`]: {
Expand Down

0 comments on commit 54e4fee

Please sign in to comment.