mirror of https://github.com/buster-so/buster.git
Update new package creation script
This commit is contained in:
parent
80221a2837
commit
48678dd226
|
@ -336,6 +336,14 @@ export {};
|
||||||
JSON.stringify(biomeJson, null, 2) + "\n"
|
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
|
// Create basic index.ts file
|
||||||
const indexTs = `export * from './lib/index';
|
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 env.d.ts");
|
||||||
console.log("📄 Created tsconfig.json");
|
console.log("📄 Created tsconfig.json");
|
||||||
console.log("📄 Created biome.json");
|
console.log("📄 Created biome.json");
|
||||||
|
console.log("📄 Created vitest.config.ts");
|
||||||
console.log("📄 Created src/index.ts");
|
console.log("📄 Created src/index.ts");
|
||||||
console.log("📄 Created src/lib/index.ts");
|
console.log("📄 Created src/lib/index.ts");
|
||||||
console.log("📄 Created scripts/validate-env.js");
|
console.log("📄 Created scripts/validate-env.js");
|
||||||
|
|
Loading…
Reference in New Issue