@sitecore-content-sdk/cli 0.3.0-canary.24 → 0.3.0-canary.26
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.
|
@@ -63,5 +63,15 @@ const commands = __importStar(require("../scripts"));
|
|
|
63
63
|
// if the current working directory is not an app project root .env file will be missing and nothing will be loaded
|
|
64
64
|
// in that case loading environment variables will be handled by the actual cli command
|
|
65
65
|
(0, process_env_1.default)(process.cwd());
|
|
66
|
+
// Re-enable debug logging after environment variables are loaded
|
|
67
|
+
// This ensures that DEBUG environment variables from .env files take effect
|
|
68
|
+
if (process.env.DEBUG) {
|
|
69
|
+
const debugScopes = process.env.DEBUG.split(',')
|
|
70
|
+
.map((scope) => scope.trim())
|
|
71
|
+
.filter(Boolean);
|
|
72
|
+
console.log(`Debug enabled for scopes: [${debugScopes.join(', ')}]`);
|
|
73
|
+
const debug = require('debug');
|
|
74
|
+
debug.enable(process.env.DEBUG);
|
|
75
|
+
}
|
|
66
76
|
cli(commands);
|
|
67
77
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sitecore-content-sdk/cli",
|
|
3
|
-
"version": "0.3.0-canary.
|
|
3
|
+
"version": "0.3.0-canary.26",
|
|
4
4
|
"description": "Sitecore Content SDK CLI",
|
|
5
5
|
"main": "dist/cjs/cli.js",
|
|
6
6
|
"module": "dist/esm/cli.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"url": "https://github.com/sitecore/content-sdk/issues"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@sitecore-content-sdk/core": "0.3.0-canary.
|
|
37
|
+
"@sitecore-content-sdk/core": "0.3.0-canary.26",
|
|
38
38
|
"chokidar": "^4.0.3",
|
|
39
39
|
"dotenv": "^16.5.0",
|
|
40
40
|
"dotenv-expand": "^12.0.2",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"ts-node": "^10.9.1",
|
|
62
62
|
"typescript": "~5.8.3"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "56205c6d3dd9d7459c5db7b8f7748a6dcc4e930e",
|
|
65
65
|
"files": [
|
|
66
66
|
"dist",
|
|
67
67
|
"types"
|