diff --git a/.yarn/versions/576186de.yml b/.yarn/versions/576186de.yml new file mode 100644 index 000000000000..a4644527d8b9 --- /dev/null +++ b/.yarn/versions/576186de.yml @@ -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" diff --git a/packages/plugin-init/sources/commands/init.ts b/packages/plugin-init/sources/commands/init.ts index 33de37ace85e..1bd2adafd0e3 100644 --- a/packages/plugin-init/sources/commands/init.ts +++ b/packages/plugin-init/sources/commands/init.ts @@ -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 = { [`*`]: {