@mokup/cli 0.3.1 → 1.0.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.
package/dist/index.cjs CHANGED
@@ -43,12 +43,12 @@ async function writeBundle(outDir, hasHandlers) {
43
43
  lines.push("", "export default mokupBundle", "export { mokupBundle }", "");
44
44
  const dts = [
45
45
  "import type { Manifest, ModuleMap } from '@mokup/runtime'",
46
- "export interface MokupBundle {",
46
+ "export interface WorkerBundle {",
47
47
  " manifest: Manifest",
48
48
  " moduleMap?: ModuleMap",
49
49
  " moduleBase?: string | URL",
50
50
  "}",
51
- "declare const mokupBundle: MokupBundle",
51
+ "declare const mokupBundle: WorkerBundle",
52
52
  "export default mokupBundle",
53
53
  "export { mokupBundle }",
54
54
  ""
@@ -316,8 +316,8 @@ async function writeHandlerIndex(handlerModuleMap, handlersDir, outDir) {
316
316
  ];
317
317
  await node_fs.promises.writeFile(pathe.join(handlersDir, "index.mjs"), lines.join("\n"), "utf8");
318
318
  const dts = [
319
- "export type MokupModuleMap = Record<string, Record<string, unknown>>",
320
- "export declare const mokupModuleMap: MokupModuleMap",
319
+ "export type ModuleMap = Record<string, Record<string, unknown>>",
320
+ "export declare const mokupModuleMap: ModuleMap",
321
321
  ""
322
322
  ];
323
323
  await node_fs.promises.writeFile(pathe.join(handlersDir, "index.d.ts"), dts.join("\n"), "utf8");
package/dist/index.mjs CHANGED
@@ -36,12 +36,12 @@ async function writeBundle(outDir, hasHandlers) {
36
36
  lines.push("", "export default mokupBundle", "export { mokupBundle }", "");
37
37
  const dts = [
38
38
  "import type { Manifest, ModuleMap } from '@mokup/runtime'",
39
- "export interface MokupBundle {",
39
+ "export interface WorkerBundle {",
40
40
  " manifest: Manifest",
41
41
  " moduleMap?: ModuleMap",
42
42
  " moduleBase?: string | URL",
43
43
  "}",
44
- "declare const mokupBundle: MokupBundle",
44
+ "declare const mokupBundle: WorkerBundle",
45
45
  "export default mokupBundle",
46
46
  "export { mokupBundle }",
47
47
  ""
@@ -309,8 +309,8 @@ async function writeHandlerIndex(handlerModuleMap, handlersDir, outDir) {
309
309
  ];
310
310
  await promises.writeFile(join(handlersDir, "index.mjs"), lines.join("\n"), "utf8");
311
311
  const dts = [
312
- "export type MokupModuleMap = Record<string, Record<string, unknown>>",
313
- "export declare const mokupModuleMap: MokupModuleMap",
312
+ "export type ModuleMap = Record<string, Record<string, unknown>>",
313
+ "export declare const mokupModuleMap: ModuleMap",
314
314
  ""
315
315
  ];
316
316
  await promises.writeFile(join(handlersDir, "index.d.ts"), dts.join("\n"), "utf8");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mokup/cli",
3
3
  "type": "module",
4
- "version": "0.3.1",
4
+ "version": "1.0.0",
5
5
  "description": "CLI for building mokup manifests and handlers.",
6
6
  "license": "MIT",
7
7
  "homepage": "https://mokup.icebreaker.top",
@@ -29,9 +29,9 @@
29
29
  "dependencies": {
30
30
  "@hono/node-server": "^1.19.9",
31
31
  "commander": "^14.0.0",
32
- "@mokup/runtime": "0.1.1",
33
- "@mokup/shared": "0.1.0",
34
- "@mokup/server": "1.0.1"
32
+ "@mokup/runtime": "1.0.0",
33
+ "@mokup/server": "1.0.2",
34
+ "@mokup/shared": "1.0.0"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/node": "^25.0.9",