Skip to content

Commit ef0d2c7

Browse files
author
hHolyMolly
committed
chore: remove LICENSE in prepare script
1 parent 121de0d commit ef0d2c7

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

gulp/utils/prepare.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@ import { fileURLToPath } from 'node:url';
77
if (!existsSync('.git')) {
88
const projectName = basename(resolve('.'));
99

10-
// Remove CI workflows (only needed for the template repo)
11-
if (existsSync('.github/workflows')) {
12-
rmSync('.github/workflows', { recursive: true });
10+
// Remove template-specific files
11+
for (const file of ['LICENSE', '.github/workflows']) {
12+
if (existsSync(file)) {
13+
rmSync(file, { recursive: true });
14+
}
1315
}
1416

1517
// Reset package.json to a clean project state

0 commit comments

Comments
 (0)