diff --git a/packages/cli/.gitignore b/packages/cli/.gitignore index 5d6f3e478f..1ff8aa7bb3 100644 --- a/packages/cli/.gitignore +++ b/packages/cli/.gitignore @@ -1,5 +1,4 @@ /npm /artifacts /LICENSE -/LICENSE.md /skills/vite-plus/docs diff --git a/packages/cli/build.ts b/packages/cli/build.ts index 7269ccfb97..438ba802a9 100644 --- a/packages/cli/build.ts +++ b/packages/cli/build.ts @@ -8,7 +8,7 @@ * 4. syncCorePackageExports() - Creates shim files to re-export from @voidzero-dev/vite-plus-core * 5. syncTestPackageExports() - Creates shim files to re-export from @voidzero-dev/vite-plus-test * 6. copySkillDocs() - Copies docs into skills/vite-plus/docs for runtime MCP access - * 7. syncReadmeFromRoot()/syncLicenseFromRoot() - Keeps package docs/license in sync + * 7. syncReadmeFromRoot() - Keeps package README in sync * * The sync functions allow this package to be a drop-in replacement for 'vite' by * re-exporting all the same subpaths (./client, ./types/*, etc.) while delegating @@ -64,13 +64,13 @@ if (!skipTs) { generateLicenseFile({ title: 'Vite-Plus CLI license', packageName: 'Vite-Plus', - outputPath: join(projectDir, 'LICENSE.md'), + outputPath: join(projectDir, 'LICENSE'), coreLicensePath: join(projectDir, '..', '..', 'LICENSE'), bundledPaths: [join(projectDir, 'dist', 'global')], resolveFrom: [projectDir], }); - if (!existsSync(join(projectDir, 'LICENSE.md'))) { - throw new Error('LICENSE.md was not generated during build'); + if (!existsSync(join(projectDir, 'LICENSE'))) { + throw new Error('LICENSE was not generated during build'); } } // Build native first - TypeScript may depend on the generated binding types @@ -83,7 +83,6 @@ if (!skipTs) { } await copySkillDocs(); await syncReadmeFromRoot(); -await syncLicenseFromRoot(); async function buildNapiBinding() { const buildCommand = createBuildCommand(napiArgs); @@ -482,12 +481,6 @@ async function syncReadmeFromRoot() { } } -async function syncLicenseFromRoot() { - const rootLicensePath = join(projectDir, '..', '..', 'LICENSE'); - const packageLicensePath = join(projectDir, 'LICENSE'); - await copyFile(rootLicensePath, packageLicensePath); -} - function splitReadme(content: string, label: string) { const match = /^---\s*$/m.exec(content); if (!match || match.index === undefined) {