vovk-cli 0.0.1-draft.31 → 0.0.1-draft.33

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.
@@ -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 ?? 'debug', // TODO: change to 'warn' when v3 is ready
18
+ logLevel: env.VOVK_LOG_LEVEL ?? conf.logLevel ?? 'warn',
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: {
@@ -3,7 +3,6 @@ import { Worker } from 'node:worker_threads';
3
3
  import path from 'node:path';
4
4
  import { fileURLToPath } from 'node:url';
5
5
  import './importUncachedModuleWorker.mjs'; // required for TS compilation
6
- // TODO comments
7
6
  function importUncachedModule(modulePath) {
8
7
  return new Promise((resolve, reject) => {
9
8
  const __filename = fileURLToPath(import.meta.url);
@@ -1,7 +1,6 @@
1
1
  import { parentPort, workerData as wData } from 'node:worker_threads';
2
2
  import { pathToFileURL } from 'node:url';
3
3
  void (async () => {
4
- // TODO Comments
5
4
  if (!parentPort)
6
5
  return;
7
6
  const workerData = wData;
package/dist/index.mjs CHANGED
File without changes
@@ -2,6 +2,7 @@ import { Readable } from 'node:stream';
2
2
  import { createGunzip } from 'node:zlib';
3
3
  import tar from 'tar-stream';
4
4
  import getNPMPackageMetadata from '../utils/getNPMPackageMetadata.mjs';
5
+ // Crereated with AI
5
6
  /**
6
7
  * Retrieves a list of files in the 'templates' folder of an NPM package.
7
8
  * @param packageName - The name of the NPM package.
@@ -36,7 +37,6 @@ function extractTemplatesFromTarball(tarballBuffer) {
36
37
  const files = [];
37
38
  extract.on('entry', (header, stream, next) => {
38
39
  const filePath = header.name;
39
- // TODO revisit comments
40
40
  // Check if the file is in the 'templates' folder
41
41
  if (filePath.startsWith('package/templates/')) {
42
42
  files.push(filePath.replace('package/', ''));
@@ -1,5 +1,5 @@
1
1
  import net from 'node:net';
2
- // TODO check comments
2
+ // Created with AI
3
3
  /**
4
4
  * Checks if a port is available.
5
5
  * @param {number} port - The port to check.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk-cli",
3
- "version": "0.0.1-draft.31",
3
+ "version": "0.0.1-draft.33",
4
4
  "bin": {
5
5
  "vovk": "./dist/index.mjs"
6
6
  },
@@ -10,8 +10,9 @@
10
10
  "prefix": ".",
11
11
  "scripts": {
12
12
  "build": "rm -rf dist tsconfig.build.tsbuildinfo && tsc -P tsconfig.build.json",
13
+ "postbuild": "chmod +x ./dist/index.mjs",
13
14
  "build-test": "rm -rf test_dist && tsc -P tsconfig.test.json",
14
- "pre-test": "npm run build && chmod +x ./dist/index.mjs && npm run build-test",
15
+ "pre-test": "npm run build && npm run build-test",
15
16
  "test-only": "npm run pre-test && node --test --test-only test_dist/test/**/*.mjs",
16
17
  "test": "npm run pre-test && node --test --test-concurrency=1 test_dist/test/**/*.mjs",
17
18
  "tsc": "tsc --noEmit",
@@ -35,7 +36,7 @@
35
36
  },
36
37
  "homepage": "https://vovk.dev",
37
38
  "peerDependencies": {
38
- "vovk": "^3.0.0-draft.25"
39
+ "vovk": "^3.0.0-draft.26"
39
40
  },
40
41
  "dependencies": {
41
42
  "@inquirer/prompts": "^7.1.0",