From 48678dd226e9ffe1aaec1f082c0186a58910a92c Mon Sep 17 00:00:00 2001 From: Nate Kelley Date: Mon, 7 Jul 2025 10:48:10 -0600 Subject: [PATCH] Update new package creation script --- scripts/new-package.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/new-package.ts b/scripts/new-package.ts index 050b60e59..6693bc746 100755 --- a/scripts/new-package.ts +++ b/scripts/new-package.ts @@ -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");