vovk-cli 0.0.1-draft.157 → 0.0.1-draft.159

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.
@@ -7,7 +7,7 @@ export default async function writeConfigJson(schemaOutAbsolutePath, projectInfo
7
7
  const existingStr = await fs.readFile(configJsonPath, 'utf-8').catch(() => null);
8
8
  if (existingStr !== configStr) {
9
9
  await fs.writeFile(configJsonPath, configStr);
10
- projectInfo?.log.info(`Config JSON written to ${configJsonPath}`);
10
+ projectInfo?.log.info(`Config JSON is written to ${configJsonPath}`);
11
11
  }
12
12
  else {
13
13
  projectInfo?.log.debug(`Config JSON is up to date at ${configJsonPath}`);
@@ -21,38 +21,38 @@ export default function getTemplateDefs(userTemplateDefs = {}) {
21
21
  const defs = {};
22
22
  const builtInDefs = {
23
23
  [BuiltInTemplateName.ts]: {
24
- templatePath: path.resolve(templatesDir, 'ts/'),
24
+ templatePath: `vovk-cli/module-templates/${BuiltInTemplateName.ts}/`,
25
25
  origin: null,
26
26
  requires: { [BuiltInTemplateName.fullSchemaTs]: '.' },
27
27
  },
28
28
  [BuiltInTemplateName.cjs]: {
29
- templatePath: path.resolve(templatesDir, 'cjs/'),
29
+ templatePath: `vovk-cli/module-templates/${BuiltInTemplateName.cjs}/`,
30
30
  origin: null,
31
31
  requires: { [BuiltInTemplateName.fullSchemaCjs]: '.' },
32
32
  },
33
33
  [BuiltInTemplateName.mjs]: {
34
- templatePath: path.resolve(templatesDir, 'mjs/'),
34
+ templatePath: `vovk-cli/module-templates/${BuiltInTemplateName.mjs}/`,
35
35
  origin: null,
36
36
  requires: { [BuiltInTemplateName.fullSchemaCjs]: '.' },
37
37
  },
38
38
  [BuiltInTemplateName.readme]: {
39
- templatePath: path.resolve(templatesDir, 'readme/'),
39
+ templatePath: `vovk-cli/module-templates/${BuiltInTemplateName.readme}/`,
40
40
  origin: null,
41
41
  },
42
42
  [BuiltInTemplateName.packageJson]: {
43
- templatePath: path.resolve(templatesDir, 'packageJson/'),
43
+ templatePath: `vovk-cli/module-templates/${BuiltInTemplateName.packageJson}/`,
44
44
  origin: null,
45
45
  },
46
46
  [BuiltInTemplateName.fullSchemaTs]: {
47
- templatePath: path.resolve(templatesDir, 'fullSchemaTs/'),
47
+ templatePath: `vovk-cli/module-templates/${BuiltInTemplateName.fullSchemaTs}/`,
48
48
  origin: null,
49
49
  },
50
50
  [BuiltInTemplateName.fullSchemaCjs]: {
51
- templatePath: path.resolve(templatesDir, 'fullSchemaCjs/'),
51
+ templatePath: `vovk-cli/module-templates/${BuiltInTemplateName.fullSchemaCjs}/`,
52
52
  origin: null,
53
53
  },
54
54
  [BuiltInTemplateName.fullSchemaJson]: {
55
- templatePath: path.resolve(templatesDir, 'fullSchemaJson/'),
55
+ templatePath: `vovk-cli/module-templates/${BuiltInTemplateName.fullSchemaJson}/`,
56
56
  origin: null,
57
57
  },
58
58
  [BuiltInTemplateName.rs]: {
@@ -22,7 +22,7 @@ export default async function getConfig({ cliGenerateOptions, cliBundleOptions,
22
22
  validateOnClient: typeof validateOnClientImport === 'string'
23
23
  ? [validateOnClientImport]
24
24
  : (validateOnClientImport ?? null),
25
- createRPC: typeof createRPCImport === 'string' ? [createRPCImport, 'vovk'] : createRPCImport,
25
+ createRPC: typeof createRPCImport === 'string' ? [createRPCImport] : createRPCImport,
26
26
  };
27
27
  const config = {
28
28
  $schema: SchemaIdEnum.CONFIG,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk-cli",
3
- "version": "0.0.1-draft.157",
3
+ "version": "0.0.1-draft.159",
4
4
  "bin": {
5
5
  "vovk": "./dist/index.mjs"
6
6
  },
@@ -38,7 +38,7 @@
38
38
  "vovk": "^3.0.0-draft.128"
39
39
  },
40
40
  "optionalDependencies": {
41
- "vovk-python-client": "^0.0.1-draft.23"
41
+ "vovk-python-client": "^0.0.1-draft.24"
42
42
  },
43
43
  "dependencies": {
44
44
  "@inquirer/prompts": "^7.5.1",
@@ -67,7 +67,7 @@
67
67
  "tsdown": "^0.11.7",
68
68
  "type-fest": "^4.41.0",
69
69
  "undici": "^7.9.0",
70
- "vovk-openapi": "^0.0.1-draft.73"
70
+ "vovk-openapi": "^0.0.1-draft.74"
71
71
  },
72
72
  "devDependencies": {
73
73
  "@types/concat-stream": "^2.0.3",