@jujulego/jill 2.5.2 → 3.0.0-alpha.2
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/dist/TaskName.js +33 -0
- package/dist/TaskName.js.map +1 -0
- package/dist/inked.js +62 -0
- package/dist/inked.js.map +1 -0
- package/dist/list.ink.js +49 -0
- package/dist/list.ink.js.map +1 -0
- package/dist/main.js +20 -38
- package/dist/main.js.map +1 -1
- package/dist/parser.js +1879 -0
- package/dist/parser.js.map +1 -0
- package/dist/planner.service.js +46 -0
- package/dist/planner.service.js.map +1 -0
- package/dist/task-exec.ink.js +538 -0
- package/dist/task-exec.ink.js.map +1 -0
- package/dist/task-plan.ink.js +113 -0
- package/dist/task-plan.ink.js.map +1 -0
- package/dist/tree.ink.js +184 -0
- package/dist/tree.ink.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +50 -53
- package/dist/ajv.config.d.ts +0 -3
- package/dist/commands/each.d.ts +0 -25
- package/dist/commands/exec.d.ts +0 -26
- package/dist/commands/group.d.ts +0 -16
- package/dist/commands/list.d.ts +0 -30
- package/dist/commands/run.d.ts +0 -24
- package/dist/commands/tree.d.ts +0 -6
- package/dist/commons/context.service.d.ts +0 -23
- package/dist/commons/git.service.d.ts +0 -62
- package/dist/commons/logger/log.gateway.d.ts +0 -18
- package/dist/commons/logger/parameters.d.ts +0 -2
- package/dist/commons/logger/thread.gateway.d.ts +0 -13
- package/dist/commons/logger/types.d.ts +0 -2
- package/dist/commons/logger.service.d.ts +0 -1
- package/dist/config/config-loader.d.ts +0 -4
- package/dist/config/config-options.d.ts +0 -5
- package/dist/config/types.d.ts +0 -8
- package/dist/config/utils.d.ts +0 -5
- package/dist/constants.d.ts +0 -1
- package/dist/core.plugin-Bxu0Sx70.js +0 -642
- package/dist/core.plugin-Bxu0Sx70.js.map +0 -1
- package/dist/core.plugin.d.ts +0 -2
- package/dist/filters/affected.filter.d.ts +0 -12
- package/dist/filters/pipeline.d.ts +0 -11
- package/dist/filters/private.filter.d.ts +0 -7
- package/dist/filters/scripts.filter.d.ts +0 -8
- package/dist/index.d.ts +0 -45
- package/dist/index.js +0 -35
- package/dist/index.js.map +0 -1
- package/dist/ink-command-S3TpJLFi.js +0 -2082
- package/dist/ink-command-S3TpJLFi.js.map +0 -1
- package/dist/ink.config.d.ts +0 -3
- package/dist/inversify.config.d.ts +0 -4
- package/dist/jill.application-CGujSe1_.js +0 -639
- package/dist/jill.application-CGujSe1_.js.map +0 -1
- package/dist/jill.application.d.ts +0 -19
- package/dist/main.d.ts +0 -1
- package/dist/middlewares/load-project.d.ts +0 -21
- package/dist/middlewares/load-workspace.d.ts +0 -20
- package/dist/modules/command.d.ts +0 -20
- package/dist/modules/ink-command.d.ts +0 -11
- package/dist/modules/middleware.d.ts +0 -8
- package/dist/modules/module.d.ts +0 -7
- package/dist/modules/plugin-loader.service.d.ts +0 -10
- package/dist/modules/plugin.d.ts +0 -14
- package/dist/modules/service.d.ts +0 -8
- package/dist/modules/task-command.d.ts +0 -14
- package/dist/project/project.d.ts +0 -27
- package/dist/project/project.repository.d.ts +0 -15
- package/dist/project/types.d.ts +0 -1
- package/dist/project/workspace.d.ts +0 -41
- package/dist/tasks/command-task.d.ts +0 -15
- package/dist/tasks/errors.d.ts +0 -4
- package/dist/tasks/script-task.d.ts +0 -27
- package/dist/tasks/task-expression.service.d.ts +0 -25
- package/dist/tasks/task-manager.config.d.ts +0 -3
- package/dist/types.d.ts +0 -11
- package/dist/ui/hooks/useFlatTaskTree.d.ts +0 -14
- package/dist/ui/hooks/useIsVerbose.d.ts +0 -1
- package/dist/ui/hooks/useStdoutDimensions.d.ts +0 -4
- package/dist/ui/layout.d.ts +0 -5
- package/dist/ui/list.d.ts +0 -5
- package/dist/ui/static-logs.d.ts +0 -1
- package/dist/ui/task-name.d.ts +0 -5
- package/dist/ui/task-spinner.d.ts +0 -5
- package/dist/ui/task-tree-completed.d.ts +0 -5
- package/dist/ui/task-tree-full-spinner.d.ts +0 -5
- package/dist/ui/task-tree-scrollable-spinner.d.ts +0 -5
- package/dist/ui/task-tree-spinner.d.ts +0 -5
- package/dist/ui/task-tree-stats.d.ts +0 -5
- package/dist/ui/workspace-tree.d.ts +0 -8
- package/dist/utils/events.d.ts +0 -3
- package/dist/utils/exit.d.ts +0 -4
- package/dist/utils/import.d.ts +0 -4
- package/dist/utils/json.d.ts +0 -2
- package/dist/utils/streams.d.ts +0 -3
- package/dist/utils/string.d.ts +0 -2
- package/dist/utils/worker-cache.d.ts +0 -4
- package/dist/workspace-tree-CyjZrimj.js +0 -1120
- package/dist/workspace-tree-CyjZrimj.js.map +0 -1
package/dist/TaskName.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { Text } from 'ink';
|
|
3
|
+
import { a as isScriptCtx } from './parser.js';
|
|
4
|
+
|
|
5
|
+
// Components
|
|
6
|
+
function TaskName({ task, withWorkspace }) {
|
|
7
|
+
if (isScriptCtx(task.context)) {
|
|
8
|
+
return /*#__PURE__*/ jsxs(Text, {
|
|
9
|
+
children: [
|
|
10
|
+
"Run ",
|
|
11
|
+
/*#__PURE__*/ jsx(Text, {
|
|
12
|
+
bold: true,
|
|
13
|
+
children: task.context.script
|
|
14
|
+
}),
|
|
15
|
+
" script",
|
|
16
|
+
withWorkspace && /*#__PURE__*/ jsxs(Fragment, {
|
|
17
|
+
children: [
|
|
18
|
+
' ',
|
|
19
|
+
"in ",
|
|
20
|
+
task.context.workspace.name
|
|
21
|
+
]
|
|
22
|
+
})
|
|
23
|
+
]
|
|
24
|
+
});
|
|
25
|
+
} else {
|
|
26
|
+
return /*#__PURE__*/ jsx(Text, {
|
|
27
|
+
children: task.name
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { TaskName as T };
|
|
33
|
+
//# sourceMappingURL=TaskName.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaskName.js","sources":["../src/cli/components/TaskName.tsx"],"sourcesContent":["import { type Task, type TaskSummary } from '@jujulego/tasks';\nimport { Text } from 'ink';\nimport { isScriptCtx } from '../../tasks/script-task.js';\n\n// Components\nexport default function TaskName({ task, withWorkspace }: TaskNameProps) {\n if (isScriptCtx(task.context)) {\n return (\n <Text>\n Run <Text bold>{ task.context.script }</Text> script{ withWorkspace && <>{' '}in { task.context.workspace.name }</> }\n </Text>\n );\n } else {\n return <Text>{ task.name }</Text>;\n }\n}\n\n// Types\nexport interface TaskNameProps {\n readonly task: Task | TaskSummary;\n readonly withWorkspace?: boolean;\n}\n"],"names":["TaskName","task","withWorkspace","isScriptCtx","context","_jsxs","Text","_jsx","bold","script","_Fragment","workspace","name"],"mappings":";;;;AAIA;AACe,SAASA,QAAAA,CAAS,EAAEC,IAAI,EAAEC,aAAa,EAAiB,EAAA;IACrE,IAAIC,WAAAA,CAAYF,IAAAA,CAAKG,OAAO,CAAA,EAAG;AAC7B,QAAA,qBACEC,IAAA,CAACC,IAAAA,EAAAA;;AAAK,gBAAA,MAAA;8BACAC,GAAA,CAACD,IAAAA,EAAAA;oBAAKE,IAAI,EAAA,IAAA;8BAAGP,IAAAA,CAAKG,OAAO,CAACK;;AAAe,gBAAA,SAAA;gBAASP,aAAAA,kBAAiBG,IAAA,CAAAK,QAAA,EAAA;;AAAG,wBAAA,GAAA;AAAI,wBAAA,KAAA;AAAKT,wBAAAA,IAAAA,CAAKG,OAAO,CAACO,SAAS,CAACC;;;;;IAGhH,CAAA,MAAO;AACL,QAAA,qBAAOL,GAAA,CAACD,IAAAA,EAAAA;AAAOL,YAAAA,QAAAA,EAAAA,IAAAA,CAAKW;;AACtB,IAAA;AACF;;;;"}
|
package/dist/inked.js
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { useStderr, render } from 'ink';
|
|
3
|
+
import { inject$ } from '@kyrielle/injector';
|
|
4
|
+
import { LogGateway } from '@kyrielle/logger';
|
|
5
|
+
import { observer$ } from 'kyrielle';
|
|
6
|
+
import { useLayoutEffect } from 'react';
|
|
7
|
+
import { l as logFormat } from './parser.js';
|
|
8
|
+
|
|
9
|
+
// Component
|
|
10
|
+
function StaticLogs() {
|
|
11
|
+
const stderr = useStderr();
|
|
12
|
+
useLayoutEffect(()=>{
|
|
13
|
+
const gateway = inject$(LogGateway);
|
|
14
|
+
const toConsole = gateway.disconnect('console');
|
|
15
|
+
gateway.connect('ink', observer$({
|
|
16
|
+
next: (log)=>stderr.write(logFormat(log) + '\n')
|
|
17
|
+
}));
|
|
18
|
+
return ()=>{
|
|
19
|
+
gateway.disconnect('ink');
|
|
20
|
+
gateway.connect('console', toConsole);
|
|
21
|
+
};
|
|
22
|
+
}, [
|
|
23
|
+
stderr
|
|
24
|
+
]);
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Renders each yielded element using ink
|
|
30
|
+
*/ function inked(stepper) {
|
|
31
|
+
return async (props)=>{
|
|
32
|
+
const controller = new AbortController();
|
|
33
|
+
const app = render(/*#__PURE__*/ jsx(StaticLogs, {}), {
|
|
34
|
+
exitOnCtrlC: true
|
|
35
|
+
});
|
|
36
|
+
void app.waitUntilExit().then(()=>{
|
|
37
|
+
controller.abort();
|
|
38
|
+
});
|
|
39
|
+
try {
|
|
40
|
+
const generator = stepper(props, {
|
|
41
|
+
app,
|
|
42
|
+
controller
|
|
43
|
+
});
|
|
44
|
+
let result = await generator.next();
|
|
45
|
+
while(!result.done){
|
|
46
|
+
app.rerender(/*#__PURE__*/ jsxs(Fragment, {
|
|
47
|
+
children: [
|
|
48
|
+
/*#__PURE__*/ jsx(StaticLogs, {}),
|
|
49
|
+
result.value
|
|
50
|
+
]
|
|
51
|
+
}));
|
|
52
|
+
result = await generator.next();
|
|
53
|
+
}
|
|
54
|
+
return result.value;
|
|
55
|
+
} finally{
|
|
56
|
+
app.unmount();
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export { inked as i };
|
|
62
|
+
//# sourceMappingURL=inked.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inked.js","sources":["../src/cli/components/StaticLogs.tsx","../src/cli/inked.tsx"],"sourcesContent":["import { inject$ } from '@kyrielle/injector';\nimport { LogGateway, type WithDelay } from '@kyrielle/logger';\nimport { useStderr } from 'ink';\nimport { observer$ } from 'kyrielle';\nimport { useLayoutEffect } from 'react';\nimport { logFormat } from '../../utils/logger.js';\n\n// Component\nexport default function StaticLogs() {\n const stderr = useStderr();\n\n useLayoutEffect(() => {\n const gateway: LogGateway<WithDelay> = inject$(LogGateway);\n const toConsole = gateway.disconnect('console')!;\n\n gateway.connect('ink', observer$({\n next: (log) => stderr.write(logFormat(log) + '\\n')\n }));\n\n return () => {\n gateway.disconnect('ink');\n gateway.connect('console', toConsole);\n };\n }, [stderr]);\n\n return null;\n}\n\n","import { type Instance, render } from 'ink';\nimport type { ReactNode } from 'react';\nimport StaticLogs from './components/StaticLogs.jsx';\n\n/**\n * Renders each yielded element using ink\n */\nexport function inked<P, R>(stepper: InkedStepper<P, R>): InkedComponent<P, R> {\n return async (props: P): Promise<R> => {\n const controller = new AbortController();\n\n const app = render(<StaticLogs />, { exitOnCtrlC: true });\n void app.waitUntilExit().then(() => {\n controller.abort();\n });\n\n try {\n const generator = stepper(props, { app, controller });\n let result = await generator.next();\n\n while (!result.done) {\n app.rerender(\n <>\n <StaticLogs />\n { result.value }\n </>\n );\n\n result = await generator.next();\n }\n\n return result.value;\n } finally {\n app.unmount();\n }\n };\n}\n\n// Types\nexport interface InkedContext {\n readonly app: Instance;\n readonly controller: AbortController;\n}\n\nexport type InkedStepper<P, R> = (props: P, context: InkedContext) => AsyncGenerator<ReactNode, R> | Generator<ReactNode, R>;\nexport type InkedComponent<P, R> = (props: P) => Promise<R>;\n"],"names":["StaticLogs","stderr","useStderr","useLayoutEffect","gateway","inject$","LogGateway","toConsole","disconnect","connect","observer$","next","log","write","logFormat","inked","stepper","props","controller","AbortController","app","render","_jsx","exitOnCtrlC","waitUntilExit","then","abort","generator","result","done","rerender","_jsxs","_Fragment","value","unmount"],"mappings":";;;;;;;;AAOA;AACe,SAASA,UAAAA,GAAAA;AACtB,IAAA,MAAMC,MAAAA,GAASC,SAAAA,EAAAA;IAEfC,eAAAA,CAAgB,IAAA;AACd,QAAA,MAAMC,UAAiCC,OAAAA,CAAQC,UAAAA,CAAAA;QAC/C,MAAMC,SAAAA,GAAYH,OAAAA,CAAQI,UAAU,CAAC,SAAA,CAAA;QAErCJ,OAAAA,CAAQK,OAAO,CAAC,KAAA,EAAOC,SAAAA,CAAU;AAC/BC,YAAAA,IAAAA,EAAM,CAACC,GAAAA,GAAQX,MAAAA,CAAOY,KAAK,CAACC,UAAUF,GAAAA,CAAAA,GAAO,IAAA;AAC/C,SAAA,CAAA,CAAA;QAEA,OAAO,IAAA;AACLR,YAAAA,OAAAA,CAAQI,UAAU,CAAC,KAAA,CAAA;YACnBJ,OAAAA,CAAQK,OAAO,CAAC,SAAA,EAAWF,SAAAA,CAAAA;AAC7B,QAAA,CAAA;IACF,CAAA,EAAG;AAACN,QAAAA;AAAO,KAAA,CAAA;IAEX,OAAO,IAAA;AACT;;ACtBA;;IAGO,SAASc,KAAAA,CAAYC,OAA2B,EAAA;AACrD,IAAA,OAAO,OAAOC,KAAAA,GAAAA;AACZ,QAAA,MAAMC,aAAa,IAAIC,eAAAA,EAAAA;QAEvB,MAAMC,GAAAA,GAAMC,MAAAA,eAAOC,GAAA,CAACtB,UAAAA,EAAAA,EAAAA,CAAAA,EAAe;YAAEuB,WAAAA,EAAa;AAAK,SAAA,CAAA;AACvD,QAAA,KAAKH,GAAAA,CAAII,aAAa,EAAA,CAAGC,IAAI,CAAC,IAAA;AAC5BP,YAAAA,UAAAA,CAAWQ,KAAK,EAAA;AAClB,QAAA,CAAA,CAAA;QAEA,IAAI;YACF,MAAMC,SAAAA,GAAYX,QAAQC,KAAAA,EAAO;AAAEG,gBAAAA,GAAAA;AAAKF,gBAAAA;AAAW,aAAA,CAAA;YACnD,IAAIU,MAAAA,GAAS,MAAMD,SAAAA,CAAUhB,IAAI,EAAA;YAEjC,MAAO,CAACiB,MAAAA,CAAOC,IAAI,CAAE;AACnBT,gBAAAA,GAAAA,CAAIU,QAAQ,eACVC,IAAA,CAAAC,QAAA,EAAA;;sCACEV,GAAA,CAACtB,UAAAA,EAAAA,EAAAA,CAAAA;AACC4B,wBAAAA,MAAAA,CAAOK;;;gBAIbL,MAAAA,GAAS,MAAMD,UAAUhB,IAAI,EAAA;AAC/B,YAAA;AAEA,YAAA,OAAOiB,OAAOK,KAAK;QACrB,CAAA,QAAU;AACRb,YAAAA,GAAAA,CAAIc,OAAO,EAAA;AACb,QAAA;AACF,IAAA,CAAA;AACF;;;;"}
|
package/dist/list.ink.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { Box, Text } from 'ink';
|
|
3
|
+
import { c as capitalize } from './parser.js';
|
|
4
|
+
import { i as inked } from './inked.js';
|
|
5
|
+
import '@jujulego/tasks';
|
|
6
|
+
import '@kyrielle/injector';
|
|
7
|
+
import 'kyrielle';
|
|
8
|
+
import '@kyrielle/logger';
|
|
9
|
+
import 'node:path';
|
|
10
|
+
import 'glob';
|
|
11
|
+
import 'node:fs';
|
|
12
|
+
import 'normalize-package-data';
|
|
13
|
+
import 'semver';
|
|
14
|
+
import 'moo';
|
|
15
|
+
import 'node:child_process';
|
|
16
|
+
import 'node:process';
|
|
17
|
+
import 'chalk';
|
|
18
|
+
import 'slugify';
|
|
19
|
+
import 'yargs';
|
|
20
|
+
import 'yargs/helpers';
|
|
21
|
+
import 'path-scurry';
|
|
22
|
+
import '@jujulego/quick-tag';
|
|
23
|
+
import 'ajv';
|
|
24
|
+
import 'node:os';
|
|
25
|
+
import 'cosmiconfig';
|
|
26
|
+
import 'chalk-template';
|
|
27
|
+
import 'react';
|
|
28
|
+
|
|
29
|
+
const ListInk = inked(function*(props) {
|
|
30
|
+
const { attributes, headers, workspaces } = props;
|
|
31
|
+
yield /*#__PURE__*/ jsx(Box, {
|
|
32
|
+
children: attributes.map((attr)=>/*#__PURE__*/ jsxs(Box, {
|
|
33
|
+
flexDirection: "column",
|
|
34
|
+
marginRight: 2,
|
|
35
|
+
children: [
|
|
36
|
+
headers && /*#__PURE__*/ jsx(Text, {
|
|
37
|
+
bold: true,
|
|
38
|
+
children: capitalize(attr)
|
|
39
|
+
}),
|
|
40
|
+
workspaces.map((wks, idx)=>/*#__PURE__*/ jsx(Text, {
|
|
41
|
+
children: wks[attr] || ' '
|
|
42
|
+
}, idx))
|
|
43
|
+
]
|
|
44
|
+
}, attr))
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export { ListInk as default };
|
|
49
|
+
//# sourceMappingURL=list.ink.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.ink.js","sources":["../src/cli/commands/list.ink.tsx"],"sourcesContent":["import { Box, Text } from 'ink';\nimport { capitalize } from '../../utils/string.js';\nimport { inked } from '../inked.jsx';\nimport type { ExtractedData, ListAttr } from './list.js';\n\nconst ListInk = inked(function* (props: ListInkProps) {\n const { attributes, headers, workspaces } = props;\n\n yield (\n <Box>\n { attributes.map((attr) => (\n <Box key={attr} flexDirection=\"column\" marginRight={2}>\n { headers && (\n <Text bold>{ capitalize(attr) }</Text>\n ) }\n { workspaces.map((wks, idx) => (\n <Text key={idx}>{ wks[attr] || ' ' }</Text>\n ))}\n </Box>\n )) }\n </Box>\n );\n});\n\nexport default ListInk;\n\n// Types\nexport interface ListInkProps {\n readonly attributes: readonly ListAttr[];\n readonly headers?: boolean;\n readonly workspaces: readonly ExtractedData[];\n}"],"names":["ListInk","inked","props","attributes","headers","workspaces","_jsx","Box","map","attr","_jsxs","flexDirection","marginRight","Text","bold","capitalize","wks","idx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAMA,OAAAA,GAAUC,KAAAA,CAAM,UAAWC,KAAmB,EAAA;AAClD,IAAA,MAAM,EAAEC,UAAU,EAAEC,OAAO,EAAEC,UAAU,EAAE,GAAGH,KAAAA;AAE5C,IAAA,oBACEI,GAAA,CAACC,GAAAA,EAAAA;AACGJ,QAAAA,QAAAA,EAAAA,UAAAA,CAAWK,GAAG,CAAC,CAACC,IAAAA,iBAChBC,IAAA,CAACH,GAAAA,EAAAA;gBAAeI,aAAAA,EAAc,QAAA;gBAASC,WAAAA,EAAa,CAAA;;AAChDR,oBAAAA,OAAAA,kBACAE,GAAA,CAACO,IAAAA,EAAAA;wBAAKC,IAAI,EAAA,IAAA;kCAAGC,UAAAA,CAAWN,IAAAA;;AAExBJ,oBAAAA,UAAAA,CAAWG,GAAG,CAAC,CAACQ,GAAAA,EAAKC,oBACrBX,GAAA,CAACO,IAAAA,EAAAA;sCAAiBG,GAAG,CAACP,KAAK,IAAI;AAApBQ,yBAAAA,EAAAA,GAAAA,CAAAA;;AALLR,aAAAA,EAAAA,IAAAA,CAAAA;;AAWlB,CAAA;;;;"}
|
package/dist/main.js
CHANGED
|
@@ -1,46 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { hideBin } from 'yargs/helpers';
|
|
3
|
-
import { m as container, E as ExitException } from './ink-command-S3TpJLFi.js';
|
|
4
|
-
import { J as JillApplication } from './jill.application-CGujSe1_.js';
|
|
5
|
-
import '@swc/helpers/_/_ts_decorate';
|
|
6
|
-
import '@swc/helpers/_/_ts_param';
|
|
7
|
-
import 'inversify';
|
|
8
|
-
import 'node:async_hooks';
|
|
1
|
+
import { e as executeParser } from './parser.js';
|
|
9
2
|
import '@jujulego/tasks';
|
|
10
|
-
import '
|
|
3
|
+
import '@kyrielle/injector';
|
|
4
|
+
import 'kyrielle';
|
|
5
|
+
import '@kyrielle/logger';
|
|
11
6
|
import 'node:path';
|
|
12
|
-
import '
|
|
13
|
-
import 'node:
|
|
7
|
+
import 'glob';
|
|
8
|
+
import 'node:fs';
|
|
9
|
+
import 'normalize-package-data';
|
|
10
|
+
import 'semver';
|
|
11
|
+
import 'moo';
|
|
12
|
+
import 'node:child_process';
|
|
13
|
+
import 'node:process';
|
|
14
|
+
import 'chalk';
|
|
15
|
+
import 'slugify';
|
|
14
16
|
import 'yargs';
|
|
15
|
-
import '
|
|
16
|
-
import '
|
|
17
|
-
import 'ink';
|
|
18
|
-
import 'ink-spinner';
|
|
19
|
-
import 'log-symbols';
|
|
20
|
-
import 'pretty-ms';
|
|
21
|
-
import 'react';
|
|
22
|
-
import '@jujulego/event-tree';
|
|
23
|
-
import 'inversify-inject-decorators';
|
|
24
|
-
import '@jujulego/aegis';
|
|
17
|
+
import 'yargs/helpers';
|
|
18
|
+
import 'path-scurry';
|
|
25
19
|
import '@jujulego/quick-tag';
|
|
20
|
+
import 'ajv';
|
|
21
|
+
import 'node:os';
|
|
22
|
+
import 'cosmiconfig';
|
|
26
23
|
import 'chalk-template';
|
|
27
24
|
|
|
28
25
|
// Bootstrap
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
try {
|
|
32
|
-
await app.run(hideBin(process.argv));
|
|
33
|
-
} catch (err) {
|
|
34
|
-
if (err instanceof ExitException) {
|
|
35
|
-
process.exit(err.code);
|
|
36
|
-
} else {
|
|
37
|
-
console.error(await app.parser.getHelp());
|
|
38
|
-
if (err.message) {
|
|
39
|
-
const logger = container.get(Logger);
|
|
40
|
-
logger.error(err.message);
|
|
41
|
-
}
|
|
42
|
-
process.exit(1);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
})();
|
|
26
|
+
const parser = executeParser();
|
|
27
|
+
await parser.wrap(parser.terminalWidth()).parseAsync();
|
|
46
28
|
//# sourceMappingURL=main.js.map
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sources":["../src/main.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"main.js","sources":["../src/main.ts"],"sourcesContent":["import { executeParser } from './cli/parser.js';\n\n// Bootstrap\nconst parser = executeParser();\n\nawait parser\n .wrap(parser.terminalWidth())\n .parseAsync();\n"],"names":["parser","executeParser","wrap","terminalWidth","parseAsync"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAEA;AACA,MAAMA,MAAAA,GAASC,aAAAA,EAAAA;AAEf,MAAMD,OACHE,IAAI,CAACF,MAAAA,CAAOG,aAAa,IACzBC,UAAU,EAAA"}
|