release: WRNexusJS 0.3.5
This commit is contained in:
@@ -985,6 +985,14 @@ const MIGRATIONS: Migration[] = [
|
||||
// Compiler-only fix. Existing WRN source files require no migration.
|
||||
},
|
||||
},
|
||||
{
|
||||
version: "0.3.5",
|
||||
id: "new-component-added",
|
||||
description: "UI component Added.",
|
||||
apply() {
|
||||
// Compiler-only fix. Existing WRN source files require no migration.
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
/** Release tooling uses this to require an explicit migration entry per version. */
|
||||
@@ -1023,21 +1031,34 @@ function appVersion(appRoot: string, pkg: Record<string, unknown>): string {
|
||||
}
|
||||
|
||||
/** Refresh pure framework-owned reference files. Never touches user-edited CLAUDE.md. */
|
||||
function refreshFrameworkFiles(appRoot: string, dryRun: boolean, log: (m: string) => void): void {
|
||||
// Public llms.txt is generated and web-visible, so it is safe to refresh.
|
||||
const llms = join(appRoot, "public", "llms.txt");
|
||||
if (!existsSync(llms) || readFileSync(llms, "utf8") !== AI_GUIDE) {
|
||||
log("~ public/llms.txt refreshed");
|
||||
function refreshFrameworkFiles(
|
||||
appRoot: string,
|
||||
dryRun: boolean,
|
||||
log: (message: string) => void,
|
||||
): void {
|
||||
const publicDir = join(appRoot, "public");
|
||||
const llms = join(publicDir, "llms.txt");
|
||||
|
||||
if (!existsSync(llms)) {
|
||||
log("+ public/llms.txt created");
|
||||
|
||||
if (!dryRun) {
|
||||
mkdirSync(join(appRoot, "public"), { recursive: true });
|
||||
mkdirSync(publicDir, {
|
||||
recursive: true,
|
||||
});
|
||||
|
||||
writeFileSync(llms, AI_GUIDE, "utf8");
|
||||
}
|
||||
}
|
||||
// CLAUDE.md is often user-edited — only create it when absent.
|
||||
|
||||
const claude = join(appRoot, "CLAUDE.md");
|
||||
|
||||
if (!existsSync(claude)) {
|
||||
log("+ CLAUDE.md created");
|
||||
if (!dryRun) writeFileSync(claude, CLAUDE_MD, "utf8");
|
||||
|
||||
if (!dryRun) {
|
||||
writeFileSync(claude, CLAUDE_MD, "utf8");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user