File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8282 "main" : " ./lib/commands/cm/stacks/export.js" ,
8383 "oclif" : {
8484 "commands" : " ./lib/commands" ,
85+ "hooks" : {
86+ "init" : [" ./lib/hooks/init/load-chalk" ]
87+ },
8588 "bin" : " csdx" ,
8689 "devPlugins" : [
8790 " @oclif/plugin-help"
Original file line number Diff line number Diff line change 1+ import { loadChalk } from "@contentstack/cli-utilities" ;
2+
3+ /**
4+ * Ensures the cli-utilities chalk singleton is ready before commands run.
5+ * Required when this CLI runs standalone (bin/run); when embedded under core csdx, core init also loads chalk.
6+ */
7+ export default async function loadChalkHook ( ) : Promise < void > {
8+ await loadChalk ( ) ;
9+ }
Original file line number Diff line number Diff line change 8181 "license" : " MIT" ,
8282 "oclif" : {
8383 "commands" : " ./lib/commands" ,
84+ "hooks" : {
85+ "init" : [" ./lib/hooks/init/load-chalk" ]
86+ },
8487 "bin" : " csdx" ,
8588 "repositoryPrefix" : " <%- repo %>/blob/main/packages/contentstack-import/<%- commandPath %>"
8689 },
Original file line number Diff line number Diff line change 1+ import { loadChalk } from '@contentstack/cli-utilities' ;
2+
3+ /**
4+ * Ensures the cli-utilities chalk singleton is ready before commands run.
5+ * Required when this CLI runs standalone (bin/run); when embedded under core csdx, core init also loads chalk.
6+ */
7+ export default async function loadChalkHook ( ) : Promise < void > {
8+ await loadChalk ( ) ;
9+ }
You can’t perform that action at this time.
0 commit comments