@digital-herd/content-hub-cli 1.1.16 → 1.1.17
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/lib/bin.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});let commander_1=require("commander"),modules_1=__importDefault(require("./modules")),program=new commander_1.Command;program.name("content-hub-tools").description("ContentHub build & utility CLI").version("1.1.
|
|
2
|
+
var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});let commander_1=require("commander"),modules_1=__importDefault(require("./modules")),program=new commander_1.Command;program.name("content-hub-tools").description("ContentHub build & utility CLI").version("1.1.17");for(let o of modules_1.default)for(let e of o.commands)program.addCommand(e);program.parse(process.argv);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.watchExternalComponentCommand=void 0;let commander_1=require("commander"),globalCommandConfig_js_1=require("../../../utils/globalCommandConfig.js"),ExternalComponentWatchService_js_1=__importDefault(require("../services/ExternalComponentWatchService.js"));exports.watchExternalComponentCommand=new commander_1.Command("watch").option("-c, --components <comp>","component list to watch (comma-separated)").option("-d, --deprecated","build with deprecated tsconfig").description("Watch and serve External component(s) with HMR").action(async e=>{process.env.NODE_ENV="development";var{config:
|
|
1
|
+
var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0}),exports.watchExternalComponentCommand=void 0;let commander_1=require("commander"),globalCommandConfig_js_1=require("../../../utils/globalCommandConfig.js"),ExternalComponentWatchService_js_1=__importDefault(require("../services/ExternalComponentWatchService.js"));exports.watchExternalComponentCommand=new commander_1.Command("watch").option("-c, --components <comp>","component list to watch (comma-separated)").option("-d, --deprecated","build with deprecated tsconfig").description("Watch and serve External component(s) with HMR").action(async e=>{process.env.NODE_ENV="development";var{config:o,contenthubService:t,environment:n}=await(0,globalCommandConfig_js_1.globalCommandConfig)(e);if(o.commands?.watch?.disabledEnvironments?.includes(n.name))throw new Error(n.name+" is not supported for watch");n=e.deprecated?"tsconfig.deprecated.json":void 0,t=new ExternalComponentWatchService_js_1.default(t,o,n);e.components?(o=e.components.split(",").map(e=>e.trim()),await t.watchComponents(o)):await t.watchAll()});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digital-herd/content-hub-cli",
|
|
3
3
|
"description": "CLI tools for managing Sitecore Content Hub external components and scripts",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.17",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "./lib/index.js",
|
|
7
7
|
"types": "./lib/index.d.ts",
|