@geekmidas/cli 0.2.4 → 0.3.0

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.
@@ -1,21 +0,0 @@
1
- import { join, relative } from "path";
2
- import { writeFile } from "node:fs/promises";
3
-
4
- //#region src/build/manifests.ts
5
- const logger = console;
6
- async function generateManifests(outputDir, routes, functions, crons, subscribers) {
7
- const manifest = {
8
- routes,
9
- functions,
10
- crons,
11
- subscribers
12
- };
13
- const manifestPath = join(outputDir, "manifest.json");
14
- await writeFile(manifestPath, JSON.stringify(manifest, null, 2));
15
- logger.log(`\nGenerated unified manifest with ${routes.length} routes, ${functions.length} functions, ${crons.length} crons, ${subscribers.length} subscribers`);
16
- logger.log(`Manifest: ${relative(process.cwd(), manifestPath)}`);
17
- }
18
-
19
- //#endregion
20
- export { generateManifests };
21
- //# sourceMappingURL=manifests-BrJXpHrf.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manifests-BrJXpHrf.mjs","names":["outputDir: string","routes: RouteInfo[]","functions: FunctionInfo[]","crons: CronInfo[]","subscribers: SubscriberInfo[]","manifest: BuildManifest"],"sources":["../src/build/manifests.ts"],"sourcesContent":["import { writeFile } from 'node:fs/promises';\nimport { join, relative } from 'path';\nimport type {\n BuildManifest,\n CronInfo,\n FunctionInfo,\n RouteInfo,\n SubscriberInfo,\n} from '../types';\n\nconst logger = console;\n\nexport async function generateManifests(\n outputDir: string,\n routes: RouteInfo[],\n functions: FunctionInfo[],\n crons: CronInfo[],\n subscribers: SubscriberInfo[],\n): Promise<void> {\n // Generate unified manifest for all providers\n const manifest: BuildManifest = {\n routes,\n functions,\n crons,\n subscribers,\n };\n\n const manifestPath = join(outputDir, 'manifest.json');\n await writeFile(manifestPath, JSON.stringify(manifest, null, 2));\n\n logger.log(\n `\\nGenerated unified manifest with ${routes.length} routes, ${functions.length} functions, ${crons.length} crons, ${subscribers.length} subscribers`,\n );\n logger.log(`Manifest: ${relative(process.cwd(), manifestPath)}`);\n}\n"],"mappings":";;;;AAUA,MAAM,SAAS;AAEf,eAAsB,kBACpBA,WACAC,QACAC,WACAC,OACAC,aACe;CAEf,MAAMC,WAA0B;EAC9B;EACA;EACA;EACA;CACD;CAED,MAAM,eAAe,KAAK,WAAW,gBAAgB;AACrD,OAAM,UAAU,cAAc,KAAK,UAAU,UAAU,MAAM,EAAE,CAAC;AAEhE,QAAO,KACJ,oCAAoC,OAAO,OAAO,WAAW,UAAU,OAAO,cAAc,MAAM,OAAO,UAAU,YAAY,OAAO,cACxI;AACD,QAAO,KAAK,YAAY,SAAS,QAAQ,KAAK,EAAE,aAAa,CAAC,EAAE;AACjE"}
@@ -1,27 +0,0 @@
1
- const require_chunk = require('./chunk-CUT6urMc.cjs');
2
- const path = require_chunk.__toESM(require("path"));
3
- const node_fs_promises = require_chunk.__toESM(require("node:fs/promises"));
4
-
5
- //#region src/build/manifests.ts
6
- const logger = console;
7
- async function generateManifests(outputDir, routes, functions, crons, subscribers) {
8
- const manifest = {
9
- routes,
10
- functions,
11
- crons,
12
- subscribers
13
- };
14
- const manifestPath = (0, path.join)(outputDir, "manifest.json");
15
- await (0, node_fs_promises.writeFile)(manifestPath, JSON.stringify(manifest, null, 2));
16
- logger.log(`\nGenerated unified manifest with ${routes.length} routes, ${functions.length} functions, ${crons.length} crons, ${subscribers.length} subscribers`);
17
- logger.log(`Manifest: ${(0, path.relative)(process.cwd(), manifestPath)}`);
18
- }
19
-
20
- //#endregion
21
- Object.defineProperty(exports, 'generateManifests', {
22
- enumerable: true,
23
- get: function () {
24
- return generateManifests;
25
- }
26
- });
27
- //# sourceMappingURL=manifests-D0saShvH.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"manifests-D0saShvH.cjs","names":["outputDir: string","routes: RouteInfo[]","functions: FunctionInfo[]","crons: CronInfo[]","subscribers: SubscriberInfo[]","manifest: BuildManifest"],"sources":["../src/build/manifests.ts"],"sourcesContent":["import { writeFile } from 'node:fs/promises';\nimport { join, relative } from 'path';\nimport type {\n BuildManifest,\n CronInfo,\n FunctionInfo,\n RouteInfo,\n SubscriberInfo,\n} from '../types';\n\nconst logger = console;\n\nexport async function generateManifests(\n outputDir: string,\n routes: RouteInfo[],\n functions: FunctionInfo[],\n crons: CronInfo[],\n subscribers: SubscriberInfo[],\n): Promise<void> {\n // Generate unified manifest for all providers\n const manifest: BuildManifest = {\n routes,\n functions,\n crons,\n subscribers,\n };\n\n const manifestPath = join(outputDir, 'manifest.json');\n await writeFile(manifestPath, JSON.stringify(manifest, null, 2));\n\n logger.log(\n `\\nGenerated unified manifest with ${routes.length} routes, ${functions.length} functions, ${crons.length} crons, ${subscribers.length} subscribers`,\n );\n logger.log(`Manifest: ${relative(process.cwd(), manifestPath)}`);\n}\n"],"mappings":";;;;;AAUA,MAAM,SAAS;AAEf,eAAsB,kBACpBA,WACAC,QACAC,WACAC,OACAC,aACe;CAEf,MAAMC,WAA0B;EAC9B;EACA;EACA;EACA;CACD;CAED,MAAM,eAAe,eAAK,WAAW,gBAAgB;AACrD,OAAM,gCAAU,cAAc,KAAK,UAAU,UAAU,MAAM,EAAE,CAAC;AAEhE,QAAO,KACJ,oCAAoC,OAAO,OAAO,WAAW,UAAU,OAAO,cAAc,MAAM,OAAO,UAAU,YAAY,OAAO,cACxI;AACD,QAAO,KAAK,YAAY,mBAAS,QAAQ,KAAK,EAAE,aAAa,CAAC,EAAE;AACjE"}