Skip copying tasks/ dir during project init (TASK-FORMAT is no longer needed)

This commit is contained in:
nrslib 2026-02-11 21:05:21 +09:00
parent fa3ac7437e
commit ef0eeb057f
2 changed files with 1 additions and 11 deletions

View File

@ -80,17 +80,6 @@ describe('copyProjectResourcesToDir', () => {
expect(existsSync(join(testProjectDir, '.gitignore'))).toBe(true);
expect(existsSync(join(testProjectDir, 'dotgitignore'))).toBe(false);
});
it('should copy tasks/TASK-FORMAT to target directory', () => {
const resourcesDir = getProjectResourcesDir();
if (!existsSync(join(resourcesDir, 'tasks', 'TASK-FORMAT'))) {
return; // Skip if resource file doesn't exist
}
copyProjectResourcesToDir(testProjectDir);
expect(existsSync(join(testProjectDir, 'tasks', 'TASK-FORMAT'))).toBe(true);
});
});
describe('getLanguageResourcesDir', () => {

View File

@ -53,6 +53,7 @@ export function copyProjectResourcesToDir(targetDir: string): void {
return;
}
copyDirRecursive(resourcesDir, targetDir, {
skipDirs: ['tasks'],
renameMap: { dotgitignore: '.gitignore' },
});
}