@trigger.dev/cli: create-integration - Generate the README.md file

This commit is contained in:
Eric Allam
2023-07-12 15:34:33 +01:00
parent 520ab88a97
commit 5e36ad961f
2 changed files with 11 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
"@trigger.dev/cli": patch
---
Generate the README for a new integration package
@@ -174,6 +174,12 @@ export async function createIntegrationCommand(path: string, cliOptions: any) {
JSON.stringify(tsconfigJson, null, 2)
);
const readme = `
# ${resolvedOptions.packageName}
`;
await createFileInPath(resolvedPath, "README.md", readme);
// Create the tsup.config.ts
const tsupConfig = `
import { defineConfig } from "tsup";