vovk-cli 0.0.1-draft.35 → 0.0.1-draft.37

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.
@@ -130,8 +130,8 @@ export class VovkDev {
130
130
  this.#projectInfo = await getProjectInfo();
131
131
  if (!isInitial) {
132
132
  log.info('Config file has been updated');
133
- isInitial = false;
134
133
  }
134
+ isInitial = false;
135
135
  await this.#modulesWatcher?.close();
136
136
  await this.#segmentWatcher?.close();
137
137
  this.#watchModules();
@@ -165,6 +165,7 @@ export class VovkDev {
165
165
  await ensureClient(this.#projectInfo);
166
166
  // automatically watches segments and modules
167
167
  this.#watchConfig();
168
+ log.info('Ready');
168
169
  }
169
170
  #processControllerChange = async (filePath) => {
170
171
  const { log } = this.#projectInfo;
@@ -15,7 +15,7 @@ export default async function getConfig({ clientOutDir, cwd }) {
15
15
  origin: (env.VOVK_ORIGIN ?? conf.origin ?? '').replace(/\/$/, ''), // Remove trailing slash
16
16
  rootEntry: env.VOVK_ROOT_ENTRY ?? conf.rootEntry ?? 'api',
17
17
  rootSegmentModulesDirName: env.VOVK_ROOT_SEGMENT_MODULES_DIR_NAME ?? conf.rootSegmentModulesDirName ?? '',
18
- logLevel: env.VOVK_LOG_LEVEL ?? conf.logLevel ?? 'warn',
18
+ logLevel: env.VOVK_LOG_LEVEL ?? conf.logLevel ?? 'info',
19
19
  prettifyClient: (env.VOVK_PRETTIFY_CLIENT ? !!env.VOVK_PRETTIFY_CLIENT : null) ?? conf.prettifyClient ?? false,
20
20
  devHttps: (env.VOVK_DEV_HTTPS ? !!env.VOVK_DEV_HTTPS : null) ?? conf.devHttps ?? false,
21
21
  templates: {
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env node
2
- import type { VovkConfig, VovkDevEnv } from './types.mjs';
3
2
  import 'dotenv/config';
4
- export type { VovkConfig, VovkDevEnv };
3
+ import type { VovkConfig, VovkEnv } from './types.mjs';
4
+ export type { VovkConfig, VovkEnv };
package/dist/index.mjs CHANGED
@@ -1,6 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
  import path from 'node:path';
3
3
  import { readFileSync } from 'node:fs';
4
+ import { pathToFileURL } from 'node:url';
5
+ import 'dotenv/config';
4
6
  import { Command } from 'commander';
5
7
  import concurrently from 'concurrently';
6
8
  import getAvailablePort from './utils/getAvailablePort.mjs';
@@ -9,9 +11,7 @@ import generateClient from './generateClient.mjs';
9
11
  import locateSegments from './locateSegments.mjs';
10
12
  import { VovkDev } from './dev/index.mjs';
11
13
  import newComponents from './new/index.mjs';
12
- import 'dotenv/config';
13
14
  import initProgram from './initProgram.mjs';
14
- import { pathToFileURL } from 'node:url';
15
15
  const program = new Command();
16
16
  const packageJSON = JSON.parse(readFileSync(path.join(import.meta.dirname, '../package.json'), 'utf-8'));
17
17
  program.name('vovk').description('Vovk CLI').version(packageJSON.version);
package/dist/types.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { LogLevelNames } from 'loglevel';
2
2
  export type KnownAny = any;
3
- export type VovkDevEnv = {
3
+ export type VovkEnv = {
4
4
  PORT?: string;
5
5
  VOVK_CLIENT_OUT_DIR?: string;
6
6
  VOVK_SCHEMA_OUT_DIR?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk-cli",
3
- "version": "0.0.1-draft.35",
3
+ "version": "0.0.1-draft.37",
4
4
  "bin": {
5
5
  "vovk": "./dist/index.mjs"
6
6
  },
@@ -36,7 +36,7 @@
36
36
  },
37
37
  "homepage": "https://vovk.dev",
38
38
  "peerDependencies": {
39
- "vovk": "^3.0.0-draft.31"
39
+ "vovk": "^3.0.0-draft.33"
40
40
  },
41
41
  "dependencies": {
42
42
  "@inquirer/prompts": "^7.1.0",