@codedrifters/configulator 0.0.468 → 0.0.470
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 +63 -6
- package/lib/index.d.ts +64 -7
- package/lib/index.js +119 -19
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +117 -19
- package/lib/index.mjs.map +1 -1
- package/package.json +6 -6
package/lib/index.mjs
CHANGED
|
@@ -34598,7 +34598,7 @@ var VERSION = {
|
|
|
34598
34598
|
/**
|
|
34599
34599
|
* Version of Astro to pin for AstroProject scaffolding.
|
|
34600
34600
|
*/
|
|
34601
|
-
ASTRO_VERSION: "7.2.
|
|
34601
|
+
ASTRO_VERSION: "7.2.6",
|
|
34602
34602
|
/**
|
|
34603
34603
|
* CDK CLI for workflows and command line operations.
|
|
34604
34604
|
*
|
|
@@ -34627,11 +34627,11 @@ var VERSION = {
|
|
|
34627
34627
|
/**
|
|
34628
34628
|
* Version of PNPM to use in workflows at github actions.
|
|
34629
34629
|
*/
|
|
34630
|
-
PNPM_VERSION: "11.
|
|
34630
|
+
PNPM_VERSION: "11.24.0",
|
|
34631
34631
|
/**
|
|
34632
34632
|
* Version of Projen to use.
|
|
34633
34633
|
*/
|
|
34634
|
-
PROJEN_VERSION: "0.103.
|
|
34634
|
+
PROJEN_VERSION: "0.103.2",
|
|
34635
34635
|
/**
|
|
34636
34636
|
* Version of `actions/setup-node` to use in GitHub workflows.
|
|
34637
34637
|
* Tracks the version projen currently emits (see node_modules/projen/lib/github/workflows.js).
|
|
@@ -34645,7 +34645,7 @@ var VERSION = {
|
|
|
34645
34645
|
/**
|
|
34646
34646
|
* Version of `@astrojs/starlight` to pin for StarlightProject scaffolding.
|
|
34647
34647
|
*/
|
|
34648
|
-
STARLIGHT_VERSION: "0.41.
|
|
34648
|
+
STARLIGHT_VERSION: "0.41.8",
|
|
34649
34649
|
/**
|
|
34650
34650
|
* What version of the turborepo library should we use?
|
|
34651
34651
|
*/
|
|
@@ -34653,7 +34653,7 @@ var VERSION = {
|
|
|
34653
34653
|
/**
|
|
34654
34654
|
* Version of `@types/node` to use across all packages (pnpm catalog).
|
|
34655
34655
|
*/
|
|
34656
|
-
TYPES_NODE_VERSION: "26.
|
|
34656
|
+
TYPES_NODE_VERSION: "26.3.0",
|
|
34657
34657
|
/**
|
|
34658
34658
|
* What version of Vitest to use when testRunner is 'vitest'.
|
|
34659
34659
|
*
|
|
@@ -40706,6 +40706,27 @@ import {
|
|
|
40706
40706
|
import { ReleaseTrigger } from "projen/lib/release";
|
|
40707
40707
|
import { merge as merge2 } from "ts-deepmerge";
|
|
40708
40708
|
|
|
40709
|
+
// src/projects/changelog-types.ts
|
|
40710
|
+
var CHANGELOG_TYPES = [
|
|
40711
|
+
{ type: "feat", section: "Features" },
|
|
40712
|
+
{ type: "fix", section: "Bug Fixes" },
|
|
40713
|
+
{ type: "perf", section: "Performance Improvements" },
|
|
40714
|
+
{ type: "revert", section: "Reverts" },
|
|
40715
|
+
{ type: "refactor", section: "Code Refactoring" },
|
|
40716
|
+
{ type: "docs", section: "Documentation" },
|
|
40717
|
+
{ type: "test", section: "Tests" },
|
|
40718
|
+
{ type: "build", section: "Build System" },
|
|
40719
|
+
{ type: "ci", section: "Continuous Integration" },
|
|
40720
|
+
{ type: "style", section: "Styles" },
|
|
40721
|
+
{ type: "chore", section: "Miscellaneous Chores" }
|
|
40722
|
+
];
|
|
40723
|
+
function resolveVersionrcOptions(merged, userSupplied) {
|
|
40724
|
+
if (!userSupplied?.types) {
|
|
40725
|
+
return merged;
|
|
40726
|
+
}
|
|
40727
|
+
return { ...merged, types: userSupplied.types };
|
|
40728
|
+
}
|
|
40729
|
+
|
|
40709
40730
|
// src/projects/monorepo-project.ts
|
|
40710
40731
|
import { WorkflowSteps } from "projen/lib/github";
|
|
40711
40732
|
import {
|
|
@@ -42082,15 +42103,30 @@ var TypeScriptProject = class extends typescript.TypeScriptProject {
|
|
|
42082
42103
|
} : {}
|
|
42083
42104
|
},
|
|
42084
42105
|
/**
|
|
42085
|
-
* Only release when the package
|
|
42086
|
-
* (version, dependencies)
|
|
42106
|
+
* Only release when the package's own sources or `package.json`
|
|
42107
|
+
* (version, dependencies) change.
|
|
42108
|
+
*
|
|
42109
|
+
* Deliberately narrower than the `"."` pathspec the bump decision and
|
|
42110
|
+
* the changelog use below. Widening this to `<outdir>/**` would make
|
|
42111
|
+
* all three filters select exactly the same files, but it also makes
|
|
42112
|
+
* every package-local edit releasable — a test-only change, or the
|
|
42113
|
+
* `.projen/` regeneration that a sibling package's change produces. In
|
|
42114
|
+
* this monorepo that regeneration is routine, so the aligned trigger
|
|
42115
|
+
* publishes versions whose tarballs are byte-identical to the previous
|
|
42116
|
+
* one.
|
|
42117
|
+
*
|
|
42118
|
+
* The asymmetry that remains is benign: a package-local commit outside
|
|
42119
|
+
* `src` cannot start a release on its own, but is still described in
|
|
42120
|
+
* the notes of the next release that something else triggers. Notes
|
|
42121
|
+
* covering slightly more than the trigger is the right direction for
|
|
42122
|
+
* the two to disagree in.
|
|
42087
42123
|
*/
|
|
42088
42124
|
releaseTrigger: ReleaseTrigger.continuous({
|
|
42089
42125
|
paths: [`${resolvedOutdir}/src/**`, `${resolvedOutdir}/package.json`]
|
|
42090
42126
|
}),
|
|
42091
42127
|
/**
|
|
42092
|
-
* Scope the other two release filters to the package
|
|
42093
|
-
*
|
|
42128
|
+
* Scope the other two release filters to the package folder, the same
|
|
42129
|
+
* slice of history the trigger above reads from.
|
|
42094
42130
|
*
|
|
42095
42131
|
* `versionrcOptions.path` reaches `commit-and-tag-version`, which
|
|
42096
42132
|
* forwards it to `conventional-changelog` as a `git log` pathspec —
|
|
@@ -42101,12 +42137,35 @@ var TypeScriptProject = class extends typescript.TypeScriptProject {
|
|
|
42101
42137
|
* empty changelog.
|
|
42102
42138
|
*
|
|
42103
42139
|
* `"."` rather than `resolvedOutdir`: both commands run with their
|
|
42104
|
-
* working directory already set to the package outdir.
|
|
42140
|
+
* working directory already set to the package outdir. A single string
|
|
42141
|
+
* is all `path` accepts — `git-raw-commits` splices it into `git log`
|
|
42142
|
+
* as one argv entry (`push("--", path)`), so the pathspec cannot be a
|
|
42143
|
+
* list, so it cannot be narrowed to `src` plus `package.json` to match
|
|
42144
|
+
* the trigger exactly.
|
|
42145
|
+
*
|
|
42146
|
+
* `types` gives every conventional-commit type a visible section. The
|
|
42147
|
+
* preset hides or discards everything but `feat` and `fix` by default,
|
|
42148
|
+
* while still bumping for them, which is what makes a package-local
|
|
42149
|
+
* churn release ship notes holding nothing but a version heading. See
|
|
42150
|
+
* `CHANGELOG_TYPES`.
|
|
42105
42151
|
*/
|
|
42106
|
-
versionrcOptions: { path: "." },
|
|
42152
|
+
versionrcOptions: { path: ".", types: [...CHANGELOG_TYPES] },
|
|
42107
42153
|
releasableCommits: ReleasableCommits.everyCommit(".")
|
|
42108
42154
|
};
|
|
42109
|
-
const
|
|
42155
|
+
const mergedOptions = merge2(defaultOptions, userOptions);
|
|
42156
|
+
const options = {
|
|
42157
|
+
...mergedOptions,
|
|
42158
|
+
/**
|
|
42159
|
+
* `ts-deepmerge` concatenates arrays, so a supplied changelog `types`
|
|
42160
|
+
* arrives appended to `CHANGELOG_TYPES` — and the preset resolves each
|
|
42161
|
+
* commit with `types.find(...)`, so our entry would win every lookup
|
|
42162
|
+
* and the consumer's list would be inert. Replace, don't concatenate.
|
|
42163
|
+
*/
|
|
42164
|
+
versionrcOptions: resolveVersionrcOptions(
|
|
42165
|
+
mergedOptions.versionrcOptions,
|
|
42166
|
+
userOptions.versionrcOptions
|
|
42167
|
+
)
|
|
42168
|
+
};
|
|
42110
42169
|
super(options);
|
|
42111
42170
|
this.addDevDeps("@types/node@catalog:");
|
|
42112
42171
|
this.tsconfig?.file.addOverride("compilerOptions.skipLibCheck", true);
|
|
@@ -44252,14 +44311,30 @@ var AwsCdkProject = class extends awscdk.AwsCdkTypeScriptApp {
|
|
|
44252
44311
|
cooldown: 7
|
|
44253
44312
|
},
|
|
44254
44313
|
/**
|
|
44255
|
-
* Only release when the package
|
|
44314
|
+
* Only release when the package's own sources or `package.json`
|
|
44315
|
+
* (version, dependencies) change.
|
|
44316
|
+
*
|
|
44317
|
+
* Deliberately narrower than the `"."` pathspec the bump decision and
|
|
44318
|
+
* the changelog use below. Widening this to `<outdir>/**` would make
|
|
44319
|
+
* all three filters select exactly the same files, but it also makes
|
|
44320
|
+
* every package-local edit releasable — a test-only change, or the
|
|
44321
|
+
* `.projen/` regeneration that a sibling package's change produces. In
|
|
44322
|
+
* this monorepo that regeneration is routine, so the aligned trigger
|
|
44323
|
+
* publishes versions whose tarballs are byte-identical to the previous
|
|
44324
|
+
* one.
|
|
44325
|
+
*
|
|
44326
|
+
* The asymmetry that remains is benign: a package-local commit outside
|
|
44327
|
+
* `src` cannot start a release on its own, but is still described in
|
|
44328
|
+
* the notes of the next release that something else triggers. Notes
|
|
44329
|
+
* covering slightly more than the trigger is the right direction for
|
|
44330
|
+
* the two to disagree in.
|
|
44256
44331
|
*/
|
|
44257
44332
|
releaseTrigger: ReleaseTrigger2.continuous({
|
|
44258
44333
|
paths: [`${resolvedOutdir}/src/**`, `${resolvedOutdir}/package.json`]
|
|
44259
44334
|
}),
|
|
44260
44335
|
/**
|
|
44261
|
-
* Scope the other two release filters to the package
|
|
44262
|
-
*
|
|
44336
|
+
* Scope the other two release filters to the package folder, the same
|
|
44337
|
+
* slice of history the trigger above reads from.
|
|
44263
44338
|
*
|
|
44264
44339
|
* `versionrcOptions.path` reaches `commit-and-tag-version`, which
|
|
44265
44340
|
* forwards it to `conventional-changelog` as a `git log` pathspec —
|
|
@@ -44270,13 +44345,24 @@ var AwsCdkProject = class extends awscdk.AwsCdkTypeScriptApp {
|
|
|
44270
44345
|
* empty changelog.
|
|
44271
44346
|
*
|
|
44272
44347
|
* `"."` rather than `resolvedOutdir`: both commands run with their
|
|
44273
|
-
* working directory already set to the package outdir.
|
|
44348
|
+
* working directory already set to the package outdir. A single string
|
|
44349
|
+
* is all `path` accepts — `git-raw-commits` splices it into `git log`
|
|
44350
|
+
* as one argv entry (`push("--", path)`), so the pathspec cannot be a
|
|
44351
|
+
* list, so it cannot be narrowed to `src` plus `package.json` to match
|
|
44352
|
+
* the trigger exactly.
|
|
44353
|
+
*
|
|
44354
|
+
* `types` gives every conventional-commit type a visible section. The
|
|
44355
|
+
* preset hides or discards everything but `feat` and `fix` by default,
|
|
44356
|
+
* while still bumping for them, which is what makes a package-local
|
|
44357
|
+
* churn release ship notes holding nothing but a version heading. See
|
|
44358
|
+
* `CHANGELOG_TYPES`.
|
|
44274
44359
|
*/
|
|
44275
|
-
versionrcOptions: { path: "." },
|
|
44360
|
+
versionrcOptions: { path: ".", types: [...CHANGELOG_TYPES] },
|
|
44276
44361
|
releasableCommits: ReleasableCommits2.everyCommit(".")
|
|
44277
44362
|
};
|
|
44363
|
+
const mergedOptions = merge4(defaultOptions, userOptions);
|
|
44278
44364
|
const options = {
|
|
44279
|
-
...
|
|
44365
|
+
...mergedOptions,
|
|
44280
44366
|
/**
|
|
44281
44367
|
* Both versions are the catalog's, resolved above — restate them after
|
|
44282
44368
|
* the merge so a supplied option can never reintroduce a value the
|
|
@@ -44285,7 +44371,17 @@ var AwsCdkProject = class extends awscdk.AwsCdkTypeScriptApp {
|
|
|
44285
44371
|
* projen.
|
|
44286
44372
|
*/
|
|
44287
44373
|
cdkVersion,
|
|
44288
|
-
constructsVersion
|
|
44374
|
+
constructsVersion,
|
|
44375
|
+
/**
|
|
44376
|
+
* `ts-deepmerge` concatenates arrays, so a supplied changelog `types`
|
|
44377
|
+
* arrives appended to `CHANGELOG_TYPES` — and the preset resolves each
|
|
44378
|
+
* commit with `types.find(...)`, so our entry would win every lookup
|
|
44379
|
+
* and the consumer's list would be inert. Replace, don't concatenate.
|
|
44380
|
+
*/
|
|
44381
|
+
versionrcOptions: resolveVersionrcOptions(
|
|
44382
|
+
mergedOptions.versionrcOptions,
|
|
44383
|
+
userOptions.versionrcOptions
|
|
44384
|
+
)
|
|
44289
44385
|
};
|
|
44290
44386
|
super(options);
|
|
44291
44387
|
this.addDevDeps("@types/node@catalog:");
|
|
@@ -44906,6 +45002,7 @@ export {
|
|
|
44906
45002
|
CDK_REQUIRE_APPROVAL,
|
|
44907
45003
|
CDK_SYNTH_DEFAULTS_BY_STAGE,
|
|
44908
45004
|
CDK_WATCH_DEFAULTS_BY_STAGE,
|
|
45005
|
+
CHANGELOG_TYPES,
|
|
44909
45006
|
CLAUDE_RULE_TARGET,
|
|
44910
45007
|
COMPLETE_JOB_ID,
|
|
44911
45008
|
CONVENTIONAL_COMMIT_TYPE_LABELS,
|
|
@@ -45248,6 +45345,7 @@ export {
|
|
|
45248
45345
|
resolveTypeLabelForLabels,
|
|
45249
45346
|
resolveTypeScriptProjectOutdir,
|
|
45250
45347
|
resolveUnblockDependents,
|
|
45348
|
+
resolveVersionrcOptions,
|
|
45251
45349
|
runScan,
|
|
45252
45350
|
slackBundle,
|
|
45253
45351
|
softwareProfileBundle,
|