@codedrifters/configulator 0.0.363 → 0.0.365
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/index.d.mts +193 -2
- package/lib/index.d.ts +194 -3
- package/lib/index.js +117 -5
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +112 -5
- package/lib/index.mjs.map +1 -1
- package/package.json +2 -2
package/lib/index.mjs
CHANGED
|
@@ -30308,6 +30308,11 @@ var _TurboRepo = class _TurboRepo extends Component4 {
|
|
|
30308
30308
|
this.cacheDir = options.cacheDir ?? ".turbo/cache";
|
|
30309
30309
|
this.daemon = options.daemon ?? true;
|
|
30310
30310
|
this.envMode = options.envMode ?? "strict";
|
|
30311
|
+
this.runOptions = {
|
|
30312
|
+
...options.runOptions,
|
|
30313
|
+
summarize: options.runOptions?.summarize ?? true,
|
|
30314
|
+
concurrency: options.runOptions?.concurrency ?? 10
|
|
30315
|
+
};
|
|
30311
30316
|
this.remoteCacheOptions = options.remoteCacheOptions;
|
|
30312
30317
|
this.buildAllTaskEnvVars = options.buildAllTaskEnvVars ?? {};
|
|
30313
30318
|
const rootGeneratedFiles = this.isRootProject ? this.project.components.filter((c) => c instanceof FileBase).map((c) => c.path) : [];
|
|
@@ -30328,11 +30333,11 @@ var _TurboRepo = class _TurboRepo extends Component4 {
|
|
|
30328
30333
|
}
|
|
30329
30334
|
if (!this.remoteCacheOptions) {
|
|
30330
30335
|
this.buildAllTask.exec(
|
|
30331
|
-
`turbo ${ROOT_TURBO_TASK_NAME}
|
|
30336
|
+
`turbo ${ROOT_TURBO_TASK_NAME} ${this.renderRunArgs(false)}`
|
|
30332
30337
|
);
|
|
30333
30338
|
} else {
|
|
30334
30339
|
this.buildAllTask.exec(
|
|
30335
|
-
`turbo
|
|
30340
|
+
`turbo ${ROOT_TURBO_TASK_NAME} ${this.renderRunArgs(true)}`,
|
|
30336
30341
|
{
|
|
30337
30342
|
condition: '[ ! -n "$CI" ]',
|
|
30338
30343
|
env: {
|
|
@@ -30342,7 +30347,7 @@ var _TurboRepo = class _TurboRepo extends Component4 {
|
|
|
30342
30347
|
}
|
|
30343
30348
|
);
|
|
30344
30349
|
this.buildAllTask.exec(
|
|
30345
|
-
`turbo
|
|
30350
|
+
`turbo ${ROOT_TURBO_TASK_NAME} ${this.renderRunArgs(true)}`,
|
|
30346
30351
|
{
|
|
30347
30352
|
condition: '[ -n "$CI" ]',
|
|
30348
30353
|
env: {
|
|
@@ -30390,6 +30395,75 @@ var _TurboRepo = class _TurboRepo extends Component4 {
|
|
|
30390
30395
|
const isDefined = (c) => c instanceof _TurboRepo;
|
|
30391
30396
|
return project.components.find(isDefined);
|
|
30392
30397
|
}
|
|
30398
|
+
/**
|
|
30399
|
+
* Render the `turbo run` CLI flag string for the `build:all` / `reset:all`
|
|
30400
|
+
* task commands from {@link runOptions}. With no `runOptions` configured the
|
|
30401
|
+
* output matches the historically hard-coded flags exactly.
|
|
30402
|
+
*
|
|
30403
|
+
* @param remote - when `true`, also emit the remote-cache flags
|
|
30404
|
+
* (`--cache=remote:rw` plus `--api` / `--token` / `--team` derived from
|
|
30405
|
+
* {@link remoteCacheOptions}). The remote-cache `build:all` variant passes
|
|
30406
|
+
* `true`; `reset:all` and the local `build:all` variant pass `false`.
|
|
30407
|
+
*/
|
|
30408
|
+
renderRunArgs(remote) {
|
|
30409
|
+
const run = this.runOptions;
|
|
30410
|
+
const args = [];
|
|
30411
|
+
if (run.summarize) {
|
|
30412
|
+
args.push("--summarize");
|
|
30413
|
+
}
|
|
30414
|
+
args.push(`--concurrency=${run.concurrency}`);
|
|
30415
|
+
if (run.force) {
|
|
30416
|
+
args.push("--force");
|
|
30417
|
+
}
|
|
30418
|
+
if (run.noCache) {
|
|
30419
|
+
args.push("--no-cache");
|
|
30420
|
+
}
|
|
30421
|
+
if (run.only) {
|
|
30422
|
+
args.push("--only");
|
|
30423
|
+
}
|
|
30424
|
+
if (run.affected) {
|
|
30425
|
+
args.push("--affected");
|
|
30426
|
+
}
|
|
30427
|
+
if (run.cacheWorkers !== void 0) {
|
|
30428
|
+
args.push(`--cache-workers=${run.cacheWorkers}`);
|
|
30429
|
+
}
|
|
30430
|
+
if (run.continueOn !== void 0) {
|
|
30431
|
+
args.push(`--continue=${run.continueOn}`);
|
|
30432
|
+
}
|
|
30433
|
+
if (run.frameworkInference !== void 0) {
|
|
30434
|
+
args.push(`--framework-inference=${run.frameworkInference}`);
|
|
30435
|
+
}
|
|
30436
|
+
for (const filter of run.filter ?? []) {
|
|
30437
|
+
args.push(`--filter=${filter}`);
|
|
30438
|
+
}
|
|
30439
|
+
if (run.outputLogs !== void 0) {
|
|
30440
|
+
args.push(`--output-logs=${run.outputLogs}`);
|
|
30441
|
+
}
|
|
30442
|
+
if (run.logOrder !== void 0) {
|
|
30443
|
+
args.push(`--log-order=${run.logOrder}`);
|
|
30444
|
+
}
|
|
30445
|
+
if (run.logPrefix !== void 0) {
|
|
30446
|
+
args.push(`--log-prefix=${run.logPrefix}`);
|
|
30447
|
+
}
|
|
30448
|
+
if (run.dryRun !== void 0) {
|
|
30449
|
+
args.push(`--dry-run=${run.dryRun}`);
|
|
30450
|
+
}
|
|
30451
|
+
const cache = run.cache ?? (remote ? "remote:rw" : void 0);
|
|
30452
|
+
if (cache !== void 0) {
|
|
30453
|
+
args.push(`--cache=${cache}`);
|
|
30454
|
+
}
|
|
30455
|
+
if (remote && this.remoteCacheOptions) {
|
|
30456
|
+
args.push(
|
|
30457
|
+
"--api=$TURBO_ENDPOINT",
|
|
30458
|
+
"--token=$TURBO_TOKEN",
|
|
30459
|
+
`--team=${this.remoteCacheOptions.teamName}`
|
|
30460
|
+
);
|
|
30461
|
+
}
|
|
30462
|
+
if (run.additionalArgs) {
|
|
30463
|
+
args.push(...run.additionalArgs);
|
|
30464
|
+
}
|
|
30465
|
+
return args.join(" ");
|
|
30466
|
+
}
|
|
30393
30467
|
/**
|
|
30394
30468
|
* Add an env var to the global env vars for all tasks.
|
|
30395
30469
|
* This will also become an input for the build:all task cache at the root.
|
|
@@ -30902,7 +30976,7 @@ var VERSION = {
|
|
|
30902
30976
|
* Version of sharp to pin for StarlightProject (required peer for
|
|
30903
30977
|
* Starlight's image optimization pipeline).
|
|
30904
30978
|
*/
|
|
30905
|
-
SHARP_VERSION: "0.35.
|
|
30979
|
+
SHARP_VERSION: "0.35.2",
|
|
30906
30980
|
/**
|
|
30907
30981
|
* Version of `@astrojs/starlight` to pin for StarlightProject scaffolding.
|
|
30908
30982
|
*/
|
|
@@ -34538,6 +34612,34 @@ var renderCdkDocs = (opts) => {
|
|
|
34538
34612
|
return compose("docs", tokens);
|
|
34539
34613
|
};
|
|
34540
34614
|
|
|
34615
|
+
// src/turbo/turbo-run-enums.ts
|
|
34616
|
+
var TURBO_RUN_CONTINUE = {
|
|
34617
|
+
Never: "never",
|
|
34618
|
+
DependenciesSuccessful: "dependencies-successful",
|
|
34619
|
+
Always: "always"
|
|
34620
|
+
};
|
|
34621
|
+
var TURBO_RUN_OUTPUT_LOGS = {
|
|
34622
|
+
Full: "full",
|
|
34623
|
+
None: "none",
|
|
34624
|
+
HashOnly: "hash-only",
|
|
34625
|
+
NewOnly: "new-only",
|
|
34626
|
+
ErrorsOnly: "errors-only"
|
|
34627
|
+
};
|
|
34628
|
+
var TURBO_RUN_LOG_ORDER = {
|
|
34629
|
+
Auto: "auto",
|
|
34630
|
+
Stream: "stream",
|
|
34631
|
+
Grouped: "grouped"
|
|
34632
|
+
};
|
|
34633
|
+
var TURBO_RUN_LOG_PREFIX = {
|
|
34634
|
+
Auto: "auto",
|
|
34635
|
+
None: "none",
|
|
34636
|
+
Task: "task"
|
|
34637
|
+
};
|
|
34638
|
+
var TURBO_RUN_DRY_RUN = {
|
|
34639
|
+
Text: "text",
|
|
34640
|
+
Json: "json"
|
|
34641
|
+
};
|
|
34642
|
+
|
|
34541
34643
|
// src/aws/aws-deployment-config.ts
|
|
34542
34644
|
var AwsDeploymentConfig = class _AwsDeploymentConfig extends Component12 {
|
|
34543
34645
|
constructor(project) {
|
|
@@ -36786,7 +36888,7 @@ var ResetTask = class _ResetTask extends Component16 {
|
|
|
36786
36888
|
);
|
|
36787
36889
|
resetAllTask.exec("turbo telemetry disable");
|
|
36788
36890
|
resetAllTask.exec(
|
|
36789
|
-
`turbo turbo:${this.taskName}
|
|
36891
|
+
`turbo turbo:${this.taskName} ${turbo.renderRunArgs(false)}`
|
|
36790
36892
|
);
|
|
36791
36893
|
resetAllTask.exec(`pnpm ${this.taskName}`);
|
|
36792
36894
|
}
|
|
@@ -39524,6 +39626,11 @@ export {
|
|
|
39524
39626
|
StarlightProject,
|
|
39525
39627
|
TEMPORAL_FRAMING_CATEGORY_VALUES,
|
|
39526
39628
|
TIER_AWARE_BUNDLE_NAMES,
|
|
39629
|
+
TURBO_RUN_CONTINUE,
|
|
39630
|
+
TURBO_RUN_DRY_RUN,
|
|
39631
|
+
TURBO_RUN_LOG_ORDER,
|
|
39632
|
+
TURBO_RUN_LOG_PREFIX,
|
|
39633
|
+
TURBO_RUN_OUTPUT_LOGS,
|
|
39527
39634
|
TestRunner,
|
|
39528
39635
|
TsDocCoverageKind,
|
|
39529
39636
|
TsdocConfig,
|