@jujulego/jill 3.0.0-alpha.8 → 3.0.0-alpha.9
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/flat-tree.js +81 -0
- package/dist/flat-tree.js.map +1 -0
- package/dist/inked.js +1 -1
- package/dist/instrument.js +1 -1
- package/dist/job-exec.ink.js +5 -82
- package/dist/job-exec.ink.js.map +1 -1
- package/dist/list.ink.js +7 -6
- package/dist/list.ink.js.map +1 -1
- package/dist/main.js +16 -16
- package/dist/main.js.map +1 -1
- package/dist/planner.service.js +1 -1
- package/dist/print-plan.js +111 -0
- package/dist/print-plan.js.map +1 -0
- package/dist/string.js +6 -0
- package/dist/string.js.map +1 -0
- package/dist/tree.ink.js +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +9 -9
package/dist/main.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
;{try{(function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
1
|
+
;{try{(function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="04cb3668-7526-4dae-86bb-05b85f96926a",e._sentryDebugIdIdentifier="sentry-dbid-04cb3668-7526-4dae-86bb-05b85f96926a");})();}catch(e){}};!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"3.0.0-alpha.9"};}catch(e){}}();import { token$, inject$, asyncScope$ } from '@kyrielle/injector';
|
|
2
2
|
import { startSpan, getActiveSpan, updateSpanName, getRootSpan, startInactiveSpan, captureException } from '@sentry/node';
|
|
3
3
|
import process$1 from 'node:process';
|
|
4
4
|
import { hideBin } from 'yargs/helpers';
|
|
@@ -24,7 +24,7 @@ import os from 'node:os';
|
|
|
24
24
|
import { cosmiconfig, defaultLoaders } from 'cosmiconfig';
|
|
25
25
|
import { chalkTemplateStderr } from 'chalk-template';
|
|
26
26
|
|
|
27
|
-
var version = "3.0.0-alpha.
|
|
27
|
+
var version = "3.0.0-alpha.9";
|
|
28
28
|
|
|
29
29
|
function trace(fun, opts) {
|
|
30
30
|
const name = typeof opts === 'string' ? opts : opts.name;
|
|
@@ -166,10 +166,19 @@ function executeCommand(module) {
|
|
|
166
166
|
},
|
|
167
167
|
async handler (args) {
|
|
168
168
|
const job = await prepare(args) ?? null;
|
|
169
|
-
if (
|
|
169
|
+
if (!job) {
|
|
170
|
+
const logger = inject$(LOGGER);
|
|
171
|
+
logger.warning('No task found');
|
|
172
|
+
process$1.exitCode = 1;
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
if (args.plan) {
|
|
176
|
+
const { printPlan } = await traceImport('printPlan', ()=>import('./print-plan.js'));
|
|
177
|
+
printPlan(job);
|
|
178
|
+
} else {
|
|
170
179
|
if (execute) {
|
|
171
180
|
await execute(args, job);
|
|
172
|
-
} else
|
|
181
|
+
} else {
|
|
173
182
|
const { default: JobExecInk } = await traceImport('JobExecInk', ()=>import('./job-exec.ink.js'));
|
|
174
183
|
await JobExecInk({
|
|
175
184
|
job,
|
|
@@ -178,10 +187,6 @@ function executeCommand(module) {
|
|
|
178
187
|
'debug'
|
|
179
188
|
].includes(args.verbose)
|
|
180
189
|
});
|
|
181
|
-
} else {
|
|
182
|
-
const logger = inject$(LOGGER);
|
|
183
|
-
logger.warning('No task found');
|
|
184
|
-
process$1.exitCode = 1;
|
|
185
190
|
}
|
|
186
191
|
}
|
|
187
192
|
}
|
|
@@ -478,9 +483,6 @@ function command$(workspace, cmd, args, opts = {}) {
|
|
|
478
483
|
}
|
|
479
484
|
|
|
480
485
|
// Utils
|
|
481
|
-
function capitalize(txt) {
|
|
482
|
-
return txt.charAt(0).toUpperCase() + txt.substring(1).toLowerCase();
|
|
483
|
-
}
|
|
484
486
|
function splitCommandLine(line) {
|
|
485
487
|
line = line.trim();
|
|
486
488
|
const parts = [];
|
|
@@ -560,7 +562,7 @@ async function planScript$(workspace, script, args, opts) {
|
|
|
560
562
|
...args
|
|
561
563
|
], {
|
|
562
564
|
logger: opts.logger,
|
|
563
|
-
superCommand: pm === 'yarn' ? [
|
|
565
|
+
superCommand: pm === 'yarn' && command !== 'yarn' ? [
|
|
564
566
|
'yarn',
|
|
565
567
|
'exec'
|
|
566
568
|
] : undefined
|
|
@@ -1758,8 +1760,6 @@ var schema = {
|
|
|
1758
1760
|
properties: properties
|
|
1759
1761
|
};
|
|
1760
1762
|
|
|
1761
|
-
// Constants
|
|
1762
|
-
const CPU_COUNT = os.cpus().length;
|
|
1763
1763
|
/**
|
|
1764
1764
|
* Loads and make configuration accessible
|
|
1765
1765
|
*/ class ConfigService {
|
|
@@ -1798,7 +1798,7 @@ const CPU_COUNT = os.cpus().length;
|
|
|
1798
1798
|
// Correct jobs value
|
|
1799
1799
|
if (config.jobs <= 0) {
|
|
1800
1800
|
Object.assign(config, {
|
|
1801
|
-
jobs: Math.max(
|
|
1801
|
+
jobs: Math.max(os.availableParallelism() - 1, 1)
|
|
1802
1802
|
});
|
|
1803
1803
|
}
|
|
1804
1804
|
this._logger.debug`loaded config:\n${qjson(config, {
|
|
@@ -1953,5 +1953,5 @@ void startSpan({
|
|
|
1953
1953
|
}
|
|
1954
1954
|
});
|
|
1955
1955
|
|
|
1956
|
-
export { CWD as C, LOGGER as L, SCHEDULER as S, ConfigService as a,
|
|
1956
|
+
export { CWD as C, LOGGER as L, SCHEDULER as S, ConfigService as a, instrument as i, logFormat as l, planParser as p };
|
|
1957
1957
|
//# sourceMappingURL=main.js.map
|