Skip to content

Commit

Permalink
fix: improve generateIdeaSettings()
Browse files Browse the repository at this point in the history
  • Loading branch information
exKAZUu committed Sep 4, 2024
1 parent 6fa2192 commit 4de4735
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/generators/gitignore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const commonContent = `
.devcontainer/
dist/
temp/
`;

export async function generateGitignore(config: PackageConfig, rootConfig: PackageConfig): Promise<void> {
Expand Down Expand Up @@ -141,7 +140,7 @@ android/app/src/main/assets/
if (rootConfig.depending.reactNative || config.depending.reactNative || config.doesContainsPubspecYaml) {
generated = generated.replaceAll(/^(.idea\/.+)$/gm, '$1\nandroid/$1');
}
const newContent = headUserContent + generated + tailUserContent;
const newContent = headUserContent + '\n' + generated + tailUserContent;
await promisePool.run(() => fsUtil.generateFile(filePath, newContent));
});
}
Expand Down
2 changes: 1 addition & 1 deletion src/generators/idea.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ ${extensions.prettier.map((ext) => createTaskOptions('node', 'node_modules/.bin/
const biomeContent = `<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectTasksOptions">
${extensions.prettier.map((ext) => createTaskOptions('bun', 'node_modules/.bin/biome check --fix --no-errors-on-unmatched', 'Biome', ext)).join('')}
${extensions.prettier.map((ext) => createTaskOptions('bun', '--bun node_modules/.bin/biome check --fix --no-errors-on-unmatched', 'Biome', ext)).join('')}
</component>
</project>
`;
Expand Down

0 comments on commit 4de4735

Please sign in to comment.