@siteping/cli 0.4.7 → 0.4.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12372,7 +12372,7 @@ function syncPrismaModels(schemaPath = DEFAULT_SCHEMA_PATH) {
|
|
|
12372
12372
|
}
|
|
12373
12373
|
}
|
|
12374
12374
|
if (addedModels.length > 0 || changes.length > 0) {
|
|
12375
|
-
const output = printSchema(schema);
|
|
12375
|
+
const output = printSchema(schema).replace(/^(\r?\n)+/, "");
|
|
12376
12376
|
try {
|
|
12377
12377
|
writeFileSync(schemaPath, output, "utf-8");
|
|
12378
12378
|
} catch (error) {
|
|
@@ -12850,7 +12850,7 @@ function syncCommand(options) {
|
|
|
12850
12850
|
}
|
|
12851
12851
|
|
|
12852
12852
|
// src/index.ts
|
|
12853
|
-
var program2 = new Command().name("siteping").description("CLI to configure @siteping/* in your project").version("0.4.
|
|
12853
|
+
var program2 = new Command().name("siteping").description("CLI to configure @siteping/* in your project").version("0.4.8");
|
|
12854
12854
|
program2.command("init").description("Set up the Prisma schema and API route in your project").action(initCommand).addHelpText("after", "\n Examples:\n $ siteping init");
|
|
12855
12855
|
program2.command("sync").description("Sync the Prisma schema (non-interactive, CI-friendly)").option("--schema <path>", "Path to the schema.prisma file").action(syncCommand).addHelpText("after", "\n Examples:\n $ siteping sync\n $ siteping sync --schema prisma/schema.prisma");
|
|
12856
12856
|
program2.command("status").description("Full diagnostic of the Siteping integration").option("--schema <path>", "Path to the schema.prisma file").action(statusCommand).addHelpText("after", "\n Examples:\n $ siteping status\n $ siteping status --schema prisma/schema.prisma");
|