vovk-cli 0.0.1-draft.376 → 0.0.1-draft.377

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.
@@ -29,7 +29,7 @@ locatedSegments, isNodeNextResolution, hasMixins, isVovkProject, vovkCliPackage,
29
29
  // Feel free to report an issue at https://github.com/finom/vovk/issues`;
30
30
  placeholder = outPath.endsWith('.py') ? placeholder.replace(/\/\//g, '#') : placeholder;
31
31
  const getFirstLineBanner = (type = 'c') => {
32
- const text = `auto-generated by vovk-cli v${vovkCliPackage.version} at ${new Date().toISOString()}`;
32
+ const text = `Generated by vovk-cli v${vovkCliPackage.version} at ${new Date().toISOString()}`;
33
33
  switch (type) {
34
34
  case 'html':
35
35
  return `<!-- ${text} -->`;
@@ -48,8 +48,14 @@ export default function getConfig({ configPath, cwd, logLevel, }: {
48
48
  requires?: Record<string, string>;
49
49
  prebundleOutDir?: string;
50
50
  keepPrebundleDir?: boolean;
51
- tsdownBuildOptions?: Parameters<typeof import("tsdown/index.mjs").build>[0];
52
- generatorConfig?: import("vovk").VovkGeneratorConfig;
51
+ tsdownBuildOptions?: Parameters<typeof import("tsdown/index.mjs") extends {
52
+ build: infer T;
53
+ } ? T : never>[0];
54
+ generatorConfig?: import("vovk").VovkGeneratorConfig<{
55
+ fetcher?: string | [string, string] | [string];
56
+ validateOnClient?: string | [string, string] | [string] | null;
57
+ createRPC?: string | [string, string] | [string];
58
+ }>;
53
59
  } & ({
54
60
  excludeSegments?: never;
55
61
  includeSegments?: string[];
@@ -64,7 +70,11 @@ export default function getConfig({ configPath, cwd, logLevel, }: {
64
70
  controller?: string;
65
71
  [key: string]: string | undefined;
66
72
  };
67
- generatorConfig?: import("vovk").VovkGeneratorConfig & {
73
+ generatorConfig?: import("vovk").VovkGeneratorConfig<{
74
+ fetcher?: string | [string, string] | [string];
75
+ validateOnClient?: string | [string, string] | [string] | null;
76
+ createRPC?: string | [string, string] | [string];
77
+ }> & {
68
78
  segments?: Record<string, import("vovk/types").VovkSegmentConfig>;
69
79
  };
70
80
  } | null;
package/dist/index.mjs CHANGED
@@ -20,7 +20,7 @@ program
20
20
  .command('dev')
21
21
  .alias('d')
22
22
  .description('Start schema watcher (optional flag --next-dev to start it with Next.js)')
23
- .argument('[nextArgs...]', 'extra arguments for the dev command')
23
+ .argument('[nextArgs...]', 'extra arguments for the implicit next dev command call')
24
24
  .option('--next-dev', 'start schema watcher and Next.js with automatic port allocation')
25
25
  .option('--exit', 'kill the processes when schema and client is generated')
26
26
  .option('--schema-out <path>', 'path to schema output directory (default: .vovk-schema)')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk-cli",
3
- "version": "0.0.1-draft.376",
3
+ "version": "0.0.1-draft.377",
4
4
  "bin": {
5
5
  "vovk": "./dist/index.mjs"
6
6
  },
@@ -35,7 +35,7 @@
35
35
  },
36
36
  "homepage": "https://vovk.dev",
37
37
  "peerDependencies": {
38
- "vovk": "^3.0.0-draft.443",
38
+ "vovk": "^3.0.0-draft.444",
39
39
  "vovk-ajv": "^0.0.0-draft.108",
40
40
  "vovk-client": "^0.0.4-draft.135",
41
41
  "vovk-python": "^0.0.1-draft.77",