@codedrifters/configulator 0.0.465 → 0.0.467

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.mjs CHANGED
@@ -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.22.0",
34630
+ PNPM_VERSION: "11.23.0",
34631
34631
  /**
34632
34632
  * Version of Projen to use.
34633
34633
  */
34634
- PROJEN_VERSION: "0.102.0",
34634
+ PROJEN_VERSION: "0.103.1",
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).
@@ -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) {
@@ -42088,6 +42108,7 @@ var TypeScriptProject = class extends typescript.TypeScriptProject {
42088
42108
  "packageManager",
42089
42109
  `pnpm@${options.pnpmVersion}`
42090
42110
  );
42111
+ applyPackagePrivate(this, options);
42091
42112
  this.eslint?.addOverride({
42092
42113
  files: ["**/*.test.*", "**/*.spec.*"],
42093
42114
  rules: {
@@ -44254,6 +44275,7 @@ var AwsCdkProject = class extends awscdk.AwsCdkTypeScriptApp {
44254
44275
  "packageManager",
44255
44276
  `pnpm@${options.pnpmVersion}`
44256
44277
  );
44278
+ applyPackagePrivate(this, options);
44257
44279
  this.eslint?.addOverride({
44258
44280
  files: ["**/*.test.*", "**/*.spec.*"],
44259
44281
  rules: {
@@ -44993,6 +45015,7 @@ export {
44993
45015
  addSyncLabelsWorkflow,
44994
45016
  agendaBundle,
44995
45017
  analyzeTsDocCoverage,
45018
+ applyPackagePrivate,
44996
45019
  auditReportJsonSchema,
44997
45020
  awsCdkBundle,
44998
45021
  baseBundle,
@@ -45177,6 +45200,7 @@ export {
45177
45200
  resolveOrchestratorAssets,
45178
45201
  resolveOutdirFromPackageName,
45179
45202
  resolveOverrideForLabels,
45203
+ resolvePackagePrivate,
45180
45204
  resolvePrReviewPolicy,
45181
45205
  resolveProgressFiles,
45182
45206
  resolveReactViteSiteProjectOutdir,