@sitecore-content-sdk/cli 0.2.0-canary.1 → 0.2.0-canary.11

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Sitecore Content SDK CLI Tools
1
+ # Sitecore Content SDK CLI
2
2
 
3
3
  This module is provided as a part of Sitecore Contents SDK. It contains the Sitecore Content SDK command line interface.
4
4
 
@@ -50,16 +50,18 @@ const commands = __importStar(require("../scripts"));
50
50
  // library from a package.json. Instead, include it from a relative
51
51
  // path to this script file (which is likely a globally installed
52
52
  // npm package).
53
- // Not erroring here because we might use this in future for scaffolding.
53
+ // Not erroring here because cli can be used in global mode.
54
54
  cli = require('../cli').default;
55
55
  console.warn('Sitecore Content SDK CLI is running in global mode because it was not installed in the local node_modules folder.');
56
56
  }
57
57
  else {
58
58
  // No error implies a projectLocalCli, which will load whatever
59
- // version of jss-cli you have installed in a local package.json
59
+ // version of content sdk cli you have installed in a local package.json
60
60
  cli = require(projectLocalCli).default;
61
- // Since we are in context of a project, load its environment variables
62
- (0, process_env_1.default)(process.cwd());
63
61
  }
62
+ // load environment variables from current working directory
63
+ // if the current working directory is not an app project root .env file will be missing and nothing will be loaded
64
+ // in that case loading environment variables will be handled by the actual cli command
65
+ (0, process_env_1.default)(process.cwd());
64
66
  cli(commands);
65
67
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-content-sdk/cli",
3
- "version": "0.2.0-canary.1",
3
+ "version": "0.2.0-canary.11",
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.2.0-canary.1",
37
+ "@sitecore-content-sdk/core": "0.2.0-canary.11",
38
38
  "dotenv": "^16.4.7",
39
39
  "dotenv-expand": "^12.0.1",
40
40
  "resolve": "^1.22.10",
@@ -61,7 +61,7 @@
61
61
  "ts-node": "^10.9.1",
62
62
  "typescript": "~5.7.3"
63
63
  },
64
- "gitHead": "3a88a58fe414d18d4cf1ffece9660526f59976da",
64
+ "gitHead": "de80493a455c74a130490ca9a8133b5aae9c68b1",
65
65
  "files": [
66
66
  "dist",
67
67
  "types"