@codedrifters/configulator 0.0.466 → 0.0.468
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 +60 -4
- package/lib/index.d.ts +61 -5
- package/lib/index.js +62 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +62 -4
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -40697,7 +40697,7 @@ function resolveReactViteSiteProjectOutdir(packageName) {
|
|
|
40697
40697
|
}
|
|
40698
40698
|
|
|
40699
40699
|
// src/projects/typescript-project.ts
|
|
40700
|
-
import { typescript } from "projen";
|
|
40700
|
+
import { ReleasableCommits, typescript } from "projen";
|
|
40701
40701
|
import {
|
|
40702
40702
|
NodePackageManager as NodePackageManager2,
|
|
40703
40703
|
Transform,
|
|
@@ -40732,6 +40732,25 @@ var Nvmrc = class extends Component15 {
|
|
|
40732
40732
|
}
|
|
40733
40733
|
};
|
|
40734
40734
|
|
|
40735
|
+
// src/projects/package-private.ts
|
|
40736
|
+
function resolvePackagePrivate(options) {
|
|
40737
|
+
const releaseToNpm = options.releaseToNpm ?? false;
|
|
40738
|
+
if (options.packagePrivate !== void 0) {
|
|
40739
|
+
if (options.packagePrivate && releaseToNpm) {
|
|
40740
|
+
throw new Error(
|
|
40741
|
+
'Cannot set `packagePrivate: true` together with `releaseToNpm: true`: npm refuses to publish a package marked `"private": true`. Drop `packagePrivate` to let it track the release configuration, or turn off `releaseToNpm`.'
|
|
40742
|
+
);
|
|
40743
|
+
}
|
|
40744
|
+
return options.packagePrivate;
|
|
40745
|
+
}
|
|
40746
|
+
return !releaseToNpm;
|
|
40747
|
+
}
|
|
40748
|
+
function applyPackagePrivate(project, options) {
|
|
40749
|
+
if (resolvePackagePrivate(options)) {
|
|
40750
|
+
project.package.addField("private", true);
|
|
40751
|
+
}
|
|
40752
|
+
}
|
|
40753
|
+
|
|
40735
40754
|
// src/tasks/reset-task.ts
|
|
40736
40755
|
import { Component as Component16 } from "projen";
|
|
40737
40756
|
var ResetTask = class _ResetTask extends Component16 {
|
|
@@ -41698,6 +41717,7 @@ var MonorepoProject = class extends TypeScriptAppProject {
|
|
|
41698
41717
|
"packageManager",
|
|
41699
41718
|
`pnpm@${options.pnpmVersion}`
|
|
41700
41719
|
);
|
|
41720
|
+
applyPackagePrivate(this, options);
|
|
41701
41721
|
this.gitignore?.addPatterns(".DS_Store", "test-reports");
|
|
41702
41722
|
this.addDevDeps("constructs@catalog:", "@types/node@catalog:");
|
|
41703
41723
|
if (options.approveMergeUpgradeOptions) {
|
|
@@ -42067,7 +42087,24 @@ var TypeScriptProject = class extends typescript.TypeScriptProject {
|
|
|
42067
42087
|
*/
|
|
42068
42088
|
releaseTrigger: ReleaseTrigger.continuous({
|
|
42069
42089
|
paths: [`${resolvedOutdir}/src/**`, `${resolvedOutdir}/package.json`]
|
|
42070
|
-
})
|
|
42090
|
+
}),
|
|
42091
|
+
/**
|
|
42092
|
+
* Scope the other two release filters to the package as well, so the
|
|
42093
|
+
* whole release reads the same slice of history the trigger does.
|
|
42094
|
+
*
|
|
42095
|
+
* `versionrcOptions.path` reaches `commit-and-tag-version`, which
|
|
42096
|
+
* forwards it to `conventional-changelog` as a `git log` pathspec —
|
|
42097
|
+
* without it the changelog between two package-scoped tags spans every
|
|
42098
|
+
* commit in the monorepo. `releasableCommits` appends the same pathspec
|
|
42099
|
+
* to the command that decides whether to bump at all; without it a
|
|
42100
|
+
* package with no relevant changes still cuts a release, just with an
|
|
42101
|
+
* empty changelog.
|
|
42102
|
+
*
|
|
42103
|
+
* `"."` rather than `resolvedOutdir`: both commands run with their
|
|
42104
|
+
* working directory already set to the package outdir.
|
|
42105
|
+
*/
|
|
42106
|
+
versionrcOptions: { path: "." },
|
|
42107
|
+
releasableCommits: ReleasableCommits.everyCommit(".")
|
|
42071
42108
|
};
|
|
42072
42109
|
const options = merge2(defaultOptions, userOptions);
|
|
42073
42110
|
super(options);
|
|
@@ -42088,6 +42125,7 @@ var TypeScriptProject = class extends typescript.TypeScriptProject {
|
|
|
42088
42125
|
"packageManager",
|
|
42089
42126
|
`pnpm@${options.pnpmVersion}`
|
|
42090
42127
|
);
|
|
42128
|
+
applyPackagePrivate(this, options);
|
|
42091
42129
|
this.eslint?.addOverride({
|
|
42092
42130
|
files: ["**/*.test.*", "**/*.spec.*"],
|
|
42093
42131
|
rules: {
|
|
@@ -42319,7 +42357,7 @@ var DEFAULT_FAVICON_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0
|
|
|
42319
42357
|
`;
|
|
42320
42358
|
|
|
42321
42359
|
// src/projects/aws-cdk-project.ts
|
|
42322
|
-
import { awscdk, Dependencies } from "projen";
|
|
42360
|
+
import { awscdk, Dependencies, ReleasableCommits as ReleasableCommits2 } from "projen";
|
|
42323
42361
|
import {
|
|
42324
42362
|
NodePackageManager as NodePackageManager3,
|
|
42325
42363
|
Transform as Transform2,
|
|
@@ -44218,7 +44256,24 @@ var AwsCdkProject = class extends awscdk.AwsCdkTypeScriptApp {
|
|
|
44218
44256
|
*/
|
|
44219
44257
|
releaseTrigger: ReleaseTrigger2.continuous({
|
|
44220
44258
|
paths: [`${resolvedOutdir}/src/**`, `${resolvedOutdir}/package.json`]
|
|
44221
|
-
})
|
|
44259
|
+
}),
|
|
44260
|
+
/**
|
|
44261
|
+
* Scope the other two release filters to the package as well, so the
|
|
44262
|
+
* whole release reads the same slice of history the trigger does.
|
|
44263
|
+
*
|
|
44264
|
+
* `versionrcOptions.path` reaches `commit-and-tag-version`, which
|
|
44265
|
+
* forwards it to `conventional-changelog` as a `git log` pathspec —
|
|
44266
|
+
* without it the changelog between two package-scoped tags spans every
|
|
44267
|
+
* commit in the monorepo. `releasableCommits` appends the same pathspec
|
|
44268
|
+
* to the command that decides whether to bump at all; without it a
|
|
44269
|
+
* package with no relevant changes still cuts a release, just with an
|
|
44270
|
+
* empty changelog.
|
|
44271
|
+
*
|
|
44272
|
+
* `"."` rather than `resolvedOutdir`: both commands run with their
|
|
44273
|
+
* working directory already set to the package outdir.
|
|
44274
|
+
*/
|
|
44275
|
+
versionrcOptions: { path: "." },
|
|
44276
|
+
releasableCommits: ReleasableCommits2.everyCommit(".")
|
|
44222
44277
|
};
|
|
44223
44278
|
const options = {
|
|
44224
44279
|
...merge4(defaultOptions, userOptions),
|
|
@@ -44254,6 +44309,7 @@ var AwsCdkProject = class extends awscdk.AwsCdkTypeScriptApp {
|
|
|
44254
44309
|
"packageManager",
|
|
44255
44310
|
`pnpm@${options.pnpmVersion}`
|
|
44256
44311
|
);
|
|
44312
|
+
applyPackagePrivate(this, options);
|
|
44257
44313
|
this.eslint?.addOverride({
|
|
44258
44314
|
files: ["**/*.test.*", "**/*.spec.*"],
|
|
44259
44315
|
rules: {
|
|
@@ -44993,6 +45049,7 @@ export {
|
|
|
44993
45049
|
addSyncLabelsWorkflow,
|
|
44994
45050
|
agendaBundle,
|
|
44995
45051
|
analyzeTsDocCoverage,
|
|
45052
|
+
applyPackagePrivate,
|
|
44996
45053
|
auditReportJsonSchema,
|
|
44997
45054
|
awsCdkBundle,
|
|
44998
45055
|
baseBundle,
|
|
@@ -45177,6 +45234,7 @@ export {
|
|
|
45177
45234
|
resolveOrchestratorAssets,
|
|
45178
45235
|
resolveOutdirFromPackageName,
|
|
45179
45236
|
resolveOverrideForLabels,
|
|
45237
|
+
resolvePackagePrivate,
|
|
45180
45238
|
resolvePrReviewPolicy,
|
|
45181
45239
|
resolveProgressFiles,
|
|
45182
45240
|
resolveReactViteSiteProjectOutdir,
|