@digigov/cli 2.4.3-nextjs-16.27-07-26-15-19 → 2.5.0

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.
package/CHANGELOG.md CHANGED
@@ -1,12 +1,16 @@
1
1
  # Change Log - @digigov/cli
2
2
 
3
- <!-- This log was last generated on Mon, 27 Jul 2026 15:19:46 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Mon, 27 Jul 2026 17:23:56 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 2.4.3-nextjs-16.27-07-26-15-19
7
+ ## 2.5.0
8
8
 
9
- Mon, 27 Jul 2026 15:19:46 GMT
9
+ Mon, 27 Jul 2026 17:23:56 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - expose the logger as CJS via the @digigov/cli/lib/logger subpath so CommonJS consumers (e.g. Next config files) can require it; the ESM lib export is unchanged (sangelopoulos@admin.grnet.gr)
10
14
 
11
15
  ### Patches
12
16
 
@@ -3,7 +3,7 @@ import path from 'path';
3
3
  import chalk from 'chalk';
4
4
  import { execa } from 'execa';
5
5
  import { DigigovCommand } from '../../lib/command.js';
6
- import { logger } from '../../lib/logger.js';
6
+ import { logger } from '../../lib/logger.cjs';
7
7
  import { findPackageJson } from '../../lib/project-utils.cjs';
8
8
  import {
9
9
  getScopedDependencies,
@@ -2,7 +2,7 @@ import fs from "fs-extra";
2
2
  import path from "path";
3
3
  import chalk from "chalk";
4
4
  import { DigigovCommand } from "../../lib/command.js";
5
- import { logger } from "../../lib/logger.js";
5
+ import { logger } from "../../lib/logger.cjs";
6
6
  import { findPackageJson } from "../../lib/project-utils.cjs";
7
7
  import {
8
8
  getScopedDependencies,
@@ -2,7 +2,7 @@ import { execa } from "execa";
2
2
  import * as p from "@clack/prompts";
3
3
  import ora from "ora";
4
4
  import { DigigovCommand } from "../../lib/command.js";
5
- import { logger } from "../../lib/logger.js";
5
+ import { logger } from "../../lib/logger.cjs";
6
6
  import { detectPackageManager, buildAddArgs } from "../../lib/pm-detect.js";
7
7
  import { fetchScopeManifest } from "../../lib/manifest.js";
8
8
  import { RegistryError } from "../../lib/registry.js";
@@ -4,7 +4,7 @@ import * as p from "@clack/prompts";
4
4
  import ora from "ora";
5
5
  import chalk from "chalk";
6
6
  import { DigigovCommand } from "../../lib/command.js";
7
- import { logger } from "../../lib/logger.js";
7
+ import { logger } from "../../lib/logger.cjs";
8
8
  import { findPackageJson } from "../../lib/project-utils.cjs";
9
9
  import { detectPackageManager, buildInstallArgs } from "../../lib/pm-detect.js";
10
10
  import {
package/lib/command.js CHANGED
@@ -3,7 +3,7 @@ import path from "path";
3
3
  import * as execa from "execa";
4
4
  import * as commander from "commander";
5
5
  import { fileURLToPath } from "url";
6
- import { logger } from "./logger.js";
6
+ import { logger } from "./logger.cjs";
7
7
  import { findPackageJson } from "./project-utils.cjs";
8
8
 
9
9
  /**
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export * from './command.js';
2
2
  export * from './project-utils.cjs';
3
- export * from './logger.js';
3
+ export * from './logger.cjs';
4
4
  export * from './pm-detect.js';
5
5
  export * from './registry.js';
6
6
  export * from './scope-scan.js';
@@ -1,4 +1,6 @@
1
- import chalk from 'chalk';
1
+ // CJS so both module systems can use it: the ESM lib re-exports it, and the
2
+ // Next config chain (next.common.cjs) requires it via `@digigov/cli/lib/logger`.
3
+ const chalk = require('chalk');
2
4
 
3
5
  const args = process.argv.slice(2);
4
6
  const IS_DEBUG = args.includes('--debug') || args.includes('-d');
@@ -60,7 +62,7 @@ function timeEnd(label) {
60
62
  console.timeEnd(chalk.bgMagenta('⏱️ ' + label));
61
63
  }
62
64
 
63
- export const logger = {
65
+ const logger = {
64
66
  log,
65
67
  info,
66
68
  error,
@@ -70,3 +72,7 @@ export const logger = {
70
72
  time,
71
73
  timeEnd,
72
74
  };
75
+
76
+ module.exports = {
77
+ logger,
78
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@digigov/cli",
3
3
  "description": "CLI for Digigov apps and libs with plugin support",
4
- "version": "2.4.3-nextjs-16.27-07-26-15-19",
4
+ "version": "2.5.0",
5
5
  "author": "GRNET Devs <devs@lists.grnet.gr>",
6
6
  "type": "module",
7
7
  "bin": {
@@ -42,6 +42,7 @@
42
42
  "require": "./lib/project-utils.cjs",
43
43
  "default": "./lib/index.js"
44
44
  },
45
+ "./lib/logger": "./lib/logger.cjs",
45
46
  "./tsconfig.cli": "./tsconfig.cli.json"
46
47
  },
47
48
  "scripts": {