@contentstorage/core 0.6.3 → 0.6.4

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.
@@ -11,6 +11,7 @@ import { jsonToTS } from '../type-generation/index.js';
11
11
  export async function generateTypes() {
12
12
  console.log(chalk.blue('Starting type generation...'));
13
13
  const args = process.argv.slice(2);
14
+ console.log('Received arguments:', args);
14
15
  const cliConfig = {};
15
16
  for (let i = 0; i < args.length; i++) {
16
17
  const arg = args[i];
@@ -31,6 +32,7 @@ export async function generateTypes() {
31
32
  }
32
33
  }
33
34
  }
35
+ console.log('Parsed CLI config:', cliConfig);
34
36
  let fileConfig = {};
35
37
  try {
36
38
  fileConfig = await loadConfig();
@@ -39,6 +41,7 @@ export async function generateTypes() {
39
41
  console.log(chalk.yellow('Could not load a configuration file. Proceeding with CLI arguments.'));
40
42
  }
41
43
  const config = { ...fileConfig, ...cliConfig };
44
+ console.log('Final merged config:', config);
42
45
  if (!config.typesOutputFile) {
43
46
  console.error(chalk.red.bold("Configuration error: 'typesOutputFile' is missing."));
44
47
  process.exit(1);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@contentstorage/core",
3
3
  "author": "Kaido Hussar <kaidohus@gmail.com>",
4
4
  "homepage": "https://contentstorage.app",
5
- "version": "0.6.3",
5
+ "version": "0.6.4",
6
6
  "type": "module",
7
7
  "description": "Fetch content from contentstorage and generate TypeScript types",
8
8
  "module": "dist/index.js",