Update new package creation script

This commit is contained in:
Nate Kelley 2025-07-07 10:48:10 -06:00
parent 80221a2837
commit 48678dd226
No known key found for this signature in database
GPG Key ID: FD90372AB8D98B4F
1 changed files with 9 additions and 0 deletions

View File

@ -336,6 +336,14 @@ export {};
JSON.stringify(biomeJson, null, 2) + "\n"
);
// Create vitest.config.ts
const vitestConfig = `import { baseConfig } from '@buster/vitest-config';
export default baseConfig;
`;
await writeFile(join(directory, "vitest.config.ts"), vitestConfig);
// Create basic index.ts file
const indexTs = `export * from './lib/index';
`;
@ -397,6 +405,7 @@ console.log('✅ All required environment variables are present');
console.log("📄 Created env.d.ts");
console.log("📄 Created tsconfig.json");
console.log("📄 Created biome.json");
console.log("📄 Created vitest.config.ts");
console.log("📄 Created src/index.ts");
console.log("📄 Created src/lib/index.ts");
console.log("📄 Created scripts/validate-env.js");