Skip copying tasks/ dir during project init (TASK-FORMAT is no longer needed)
This commit is contained in:
parent
fa3ac7437e
commit
ef0eeb057f
@ -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', () => {
|
||||
|
||||
@ -53,6 +53,7 @@ export function copyProjectResourcesToDir(targetDir: string): void {
|
||||
return;
|
||||
}
|
||||
copyDirRecursive(resourcesDir, targetDir, {
|
||||
skipDirs: ['tasks'],
|
||||
renameMap: { dotgitignore: '.gitignore' },
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user