@sitecore-content-sdk/cli 0.1.0-beta.25 → 0.1.0-beta.28

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.
@@ -39,9 +39,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
39
39
  Object.defineProperty(exports, "__esModule", { value: true });
40
40
  const resolve_1 = __importDefault(require("resolve"));
41
41
  const process_env_1 = __importDefault(require("../utils/process-env"));
42
- const commands = __importStar(require("./../scripts"));
42
+ const commands = __importStar(require("../scripts"));
43
43
  /**
44
- * Resolves and executes the locally installed version of the sitecore-content-sdk (scs) CLI.
44
+ * Resolves and executes the locally installed version of the sitecore content sdk CLI (sitecore-tools).
45
45
  */
46
46
  (0, resolve_1.default)('@sitecore-content-sdk/cli', { basedir: process.cwd() }, (error, projectLocalCli) => {
47
47
  let cli;
package/dist/cjs/cli.js CHANGED
@@ -30,7 +30,7 @@ process.on('unhandledRejection', (err) => {
30
30
  function cli(commands) {
31
31
  return __awaiter(this, void 0, void 0, function* () {
32
32
  let appCommands = yargs_1.default.usage('$0 <command>');
33
- appCommands = appCommands.scriptName('scs');
33
+ appCommands = appCommands.scriptName('sitecore-tools');
34
34
  // Register commands if available
35
35
  if (commands && Object.keys(commands).length > 0) {
36
36
  for (const cmd of Object.keys(commands)) {
@@ -13,7 +13,7 @@ const config_1 = require("@sitecore-content-sdk/core/config");
13
13
  * @param {Argv} yargs
14
14
  */
15
15
  function builder(yargs) {
16
- return yargs.command('scaffold <componentName>', 'Scaffolds a new component. Use `scs scaffold --help` for available options.', args, handler);
16
+ return yargs.command('scaffold <componentName>', 'Scaffolds a new component. Use `sitecore-tools scaffold --help` for available options.', args, handler);
17
17
  }
18
18
  /**
19
19
  * @param {Argv} yargs
@@ -51,7 +51,7 @@ dashes, or underscores. It can also contain slashes to indicate a subfolder. Exa
51
51
  function handler(argv) {
52
52
  var _a;
53
53
  if (!argv.componentName) {
54
- throw new Error('Component name is required. Usage: scs scaffold <ComponentName>');
54
+ throw new Error('Component name is required. Usage: sitecore-tools scaffold <ComponentName>');
55
55
  }
56
56
  const nameParamFormat = new RegExp(/^((?:[\w\-]+\/)*)([A-Z][\w-]+)$/);
57
57
  const regExResult = nameParamFormat.exec(argv.componentName);
package/dist/esm/cli.js CHANGED
@@ -24,7 +24,7 @@ process.on('unhandledRejection', (err) => {
24
24
  export default function cli(commands) {
25
25
  return __awaiter(this, void 0, void 0, function* () {
26
26
  let appCommands = yargs.usage('$0 <command>');
27
- appCommands = appCommands.scriptName('scs');
27
+ appCommands = appCommands.scriptName('sitecore-tools');
28
28
  // Register commands if available
29
29
  if (commands && Object.keys(commands).length > 0) {
30
30
  for (const cmd of Object.keys(commands)) {
@@ -5,7 +5,7 @@ import { ComponentTemplateType } from '@sitecore-content-sdk/core/config';
5
5
  * @param {Argv} yargs
6
6
  */
7
7
  export function builder(yargs) {
8
- return yargs.command('scaffold <componentName>', 'Scaffolds a new component. Use `scs scaffold --help` for available options.', args, handler);
8
+ return yargs.command('scaffold <componentName>', 'Scaffolds a new component. Use `sitecore-tools scaffold --help` for available options.', args, handler);
9
9
  }
10
10
  /**
11
11
  * @param {Argv} yargs
@@ -43,7 +43,7 @@ dashes, or underscores. It can also contain slashes to indicate a subfolder. Exa
43
43
  export function handler(argv) {
44
44
  var _a;
45
45
  if (!argv.componentName) {
46
- throw new Error('Component name is required. Usage: scs scaffold <ComponentName>');
46
+ throw new Error('Component name is required. Usage: sitecore-tools scaffold <ComponentName>');
47
47
  }
48
48
  const nameParamFormat = new RegExp(/^((?:[\w\-]+\/)*)([A-Z][\w-]+)$/);
49
49
  const regExResult = nameParamFormat.exec(argv.componentName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sitecore-content-sdk/cli",
3
- "version": "0.1.0-beta.25",
3
+ "version": "0.1.0-beta.28",
4
4
  "description": "Sitecore JSS command-line",
5
5
  "main": "dist/cjs/cli.js",
6
6
  "module": "dist/esm/cli.js",
@@ -13,7 +13,7 @@
13
13
  "build": "npm run clean && tsc -p tsconfig.json && tsc -p tsconfig-esm.json",
14
14
  "clean": "del-cli dist types",
15
15
  "lint": "eslint \"./src/**/*.ts\"",
16
- "scs": "node ./dist/cjs/bin/scs.js",
16
+ "sitecore-tools": "node ./dist/cjs/bin/sitecore-tools.js",
17
17
  "test": "mocha --require ts-node/register/transpile-only \"./src/**/*.test.ts\"",
18
18
  "coverage": "nyc --require ts-node/register/transpile-only npm test"
19
19
  },
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "preferGlobal": true,
24
24
  "bin": {
25
- "scs": "./dist/cjs/bin/scs.js"
25
+ "sitecore-tools": "./dist/cjs/bin/sitecore-tools.js"
26
26
  },
27
27
  "author": {
28
28
  "name": "Sitecore Corporation",
@@ -34,7 +34,7 @@
34
34
  "url": "https://github.com/sitecore/jss/issues"
35
35
  },
36
36
  "dependencies": {
37
- "@sitecore-content-sdk/core": "0.1.0-beta.25",
37
+ "@sitecore-content-sdk/core": "0.1.0-beta.28",
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": "68a72d5756c881644e1ea36b853af1e0843ca938",
64
+ "gitHead": "efa34cf0c8f10c1bbf9db6ce9edb2d1b9bca5977",
65
65
  "files": [
66
66
  "dist",
67
67
  "types"
File without changes