(destDir: string, projectName: string)
| 233 | } |
| 234 | |
| 235 | function writeDefaultPackageJson(destDir: string, projectName: string): void { |
| 236 | const packageJsonPath = resolve(destDir, "package.json"); |
| 237 | if (existsSync(packageJsonPath)) return; |
| 238 | |
| 239 | writeFileSync( |
| 240 | packageJsonPath, |
| 241 | `${JSON.stringify( |
| 242 | { |
| 243 | name: toPackageName(projectName), |
| 244 | private: true, |
| 245 | type: "module", |
| 246 | scripts: buildPackageScripts(), |
| 247 | }, |
| 248 | null, |
| 249 | 2, |
| 250 | )}\n`, |
| 251 | "utf-8", |
| 252 | ); |
| 253 | } |
| 254 | |
| 255 | function listHtmlFiles(dir: string): string[] { |
| 256 | const files: string[] = []; |
no test coverage detected