create-meridian-app 0.1.14 → 0.1.16
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.
|
@@ -46,7 +46,8 @@ function renderPackageJson(vars) {
|
|
|
46
46
|
"create-meridian-app": "latest",
|
|
47
47
|
typescript: "^5.4.0",
|
|
48
48
|
tsx: "^4.0.0",
|
|
49
|
-
"@types/node": "^22.0.0"
|
|
49
|
+
"@types/node": "^22.0.0",
|
|
50
|
+
"@types/express": "^5.0.0"
|
|
50
51
|
}
|
|
51
52
|
},
|
|
52
53
|
null,
|
|
@@ -419,7 +420,6 @@ ${handlers.join("\n\n")}
|
|
|
419
420
|
|
|
420
421
|
// src/utils.ts
|
|
421
422
|
import path from "path";
|
|
422
|
-
import os from "os";
|
|
423
423
|
import { randomBytes } from "crypto";
|
|
424
424
|
import fs from "fs/promises";
|
|
425
425
|
import { existsSync } from "fs";
|
|
@@ -464,7 +464,7 @@ process.stdout.write(JSON.stringify({
|
|
|
464
464
|
dashboardPort: c?.admin?.port ?? 5174,
|
|
465
465
|
}))
|
|
466
466
|
`;
|
|
467
|
-
const scriptPath = path.join(
|
|
467
|
+
const scriptPath = path.join(rootDir, `.meridian-ports-${randomBytes(8).toString("hex")}.mjs`);
|
|
468
468
|
await fs.writeFile(scriptPath, script, { encoding: "utf-8", mode: 384 });
|
|
469
469
|
try {
|
|
470
470
|
const result = await execa("node", ["--import", "tsx/esm", scriptPath], { cwd: rootDir });
|
package/dist/cli.js
CHANGED
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
toKebabCase,
|
|
15
15
|
toPascalCase,
|
|
16
16
|
writeFile
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BHKKG34J.js";
|
|
18
18
|
|
|
19
19
|
// src/cli.ts
|
|
20
20
|
import { Command } from "commander";
|
|
@@ -315,8 +315,7 @@ await app.stop()
|
|
|
315
315
|
process.exit(0)
|
|
316
316
|
`;
|
|
317
317
|
const { randomBytes } = await import("crypto");
|
|
318
|
-
const
|
|
319
|
-
const scriptPath = path3.join(tmpdir(), `meridian-migrate-${randomBytes(8).toString("hex")}.mjs`);
|
|
318
|
+
const scriptPath = path3.join(rootDir, `.meridian-migrate-${randomBytes(8).toString("hex")}.mjs`);
|
|
320
319
|
const { writeFile: writeFile2, unlink } = await import("fs/promises");
|
|
321
320
|
await writeFile2(scriptPath, script, { encoding: "utf-8", mode: 384 });
|
|
322
321
|
try {
|
|
@@ -739,8 +738,7 @@ await app.stop()
|
|
|
739
738
|
process.exit(output.success ? 0 : 1)
|
|
740
739
|
`;
|
|
741
740
|
const { randomBytes } = await import("crypto");
|
|
742
|
-
const
|
|
743
|
-
const scriptPath = path11.join(tmpdir(), `meridian-user-create-${randomBytes(8).toString("hex")}.mjs`);
|
|
741
|
+
const scriptPath = path11.join(rootDir, `.meridian-user-create-${randomBytes(8).toString("hex")}.mjs`);
|
|
744
742
|
const { writeFile: writeFile2, unlink } = await import("fs/promises");
|
|
745
743
|
await writeFile2(scriptPath, script, { encoding: "utf-8", mode: 384 });
|
|
746
744
|
try {
|
package/dist/index.js
CHANGED