@sap/cli-core 2025.19.0 → 2025.20.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
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 2025.20.0
9
+
10
+ ### Fixed
11
+
12
+ - Fixed ESM dynamic import issues on Windows by converting file paths to proper file URLs using `pathToFileURL()`.
13
+
8
14
  ## 2025.18.0
9
15
 
10
16
  ### Changed
package/dwc/utils.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { satisfies } from "compare-versions";
2
2
  import fs from "fs-extra";
3
3
  import path from "path";
4
+ import { pathToFileURL } from "url";
4
5
  import { getPackageName } from "../config/core.js";
5
6
  import { checkVersion as check, compareEtags as compare, } from "../discovery/index.js";
6
7
  import { get } from "../logger/index.js";
@@ -32,7 +33,7 @@ export const addCommandsFromFolder = async (pathToFolder, program) => {
32
33
  })).filter((f) => f.includes(".command") && !f.endsWith(".d.ts"))) {
33
34
  try {
34
35
  const importPath = await resolveCommandIndex(pathToFolder, file);
35
- const content = await import(importPath);
36
+ const content = await import(pathToFileURL(importPath).href);
36
37
  if (content.addCommands) {
37
38
  debug("adding commands from file %s.addCommands", file);
38
39
  await content.addCommands(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sap/cli-core",
3
- "version": "2025.19.0",
3
+ "version": "2025.20.0",
4
4
  "description": "Command-Line Interface (CLI) Core Module",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "SAP SE",
@@ -23,7 +23,7 @@
23
23
  "commander": "12.1.0",
24
24
  "compare-versions": "6.1.1",
25
25
  "config": "4.1.1",
26
- "dotenv": "17.2.1",
26
+ "dotenv": "17.2.2",
27
27
  "form-data": "4.0.4",
28
28
  "fs-extra": "11.3.1",
29
29
  "https": "1.0.0",