@codedrifters/configulator 0.0.168 → 0.0.169

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 CHANGED
@@ -1557,6 +1557,10 @@ declare const VERSION: {
1557
1557
  * What version of the turborepo library should we use?
1558
1558
  */
1559
1559
  readonly TURBO_VERSION: "2.9.5";
1560
+ /**
1561
+ * Version of @types/node to use across all packages (pnpm catalog).
1562
+ */
1563
+ readonly TYPES_NODE_VERSION: "24.12.2";
1560
1564
  /**
1561
1565
  * What version of Vite to use (pnpm override). Pinned to 5.x so Vitest 4.x
1562
1566
  * can load config (Vite 6+/7+ are ESM-only; see issue #142). Remove override
package/lib/index.d.ts CHANGED
@@ -1606,6 +1606,10 @@ declare const VERSION: {
1606
1606
  * What version of the turborepo library should we use?
1607
1607
  */
1608
1608
  readonly TURBO_VERSION: "2.9.5";
1609
+ /**
1610
+ * Version of @types/node to use across all packages (pnpm catalog).
1611
+ */
1612
+ readonly TYPES_NODE_VERSION: "24.12.2";
1609
1613
  /**
1610
1614
  * What version of Vite to use (pnpm override). Pinned to 5.x so Vitest 4.x
1611
1615
  * can load config (Vite 6+/7+ are ESM-only; see issue #142). Remove override
package/lib/index.js CHANGED
@@ -505,12 +505,26 @@ var baseBundle = {
505
505
  "## Important Notes",
506
506
  "",
507
507
  "- **Never edit generated files** \u2014 they are marked with `// ~~ Generated by projen`",
508
- "- **After modifying Projen configuration**, the user should run `npx projen` locally. The agent must not run `npx projen`, `pnpm install`, or `pnpm i`.",
508
+ "- **After modifying Projen configuration**, run `npx projen` to regenerate files, then `pnpm install` to update the lockfile.",
509
509
  "- **Configure dependencies through Projen** \u2014 never use `npm install`, `pnpm add`, or `yarn add`. Add them to `deps` or `devDeps` in Projen config.",
510
510
  "- **Export from index.ts** to maintain clean public APIs"
511
511
  ].join("\n"),
512
512
  tags: ["project"]
513
513
  },
514
+ {
515
+ name: "cursor-projen-restrictions",
516
+ description: "Cursor must not run projen or package-manager install commands",
517
+ scope: AGENT_RULE_SCOPE.ALWAYS,
518
+ content: [
519
+ "# Projen Restrictions",
520
+ "",
521
+ "- **Do not run `npx projen`, `pnpm install`, or `pnpm i`** \u2014 after modifying Projen configuration, the user should run these commands locally."
522
+ ].join("\n"),
523
+ platforms: {
524
+ claude: { exclude: true }
525
+ },
526
+ tags: ["project"]
527
+ },
514
528
  {
515
529
  name: "reference-documentation",
516
530
  description: "Consult project rules, documentation, and existing code before answering or making changes",
@@ -1478,6 +1492,10 @@ var VERSION = {
1478
1492
  * What version of the turborepo library should we use?
1479
1493
  */
1480
1494
  TURBO_VERSION: "2.9.5",
1495
+ /**
1496
+ * Version of @types/node to use across all packages (pnpm catalog).
1497
+ */
1498
+ TYPES_NODE_VERSION: "24.12.2",
1481
1499
  /**
1482
1500
  * What version of Vite to use (pnpm override). Pinned to 5.x so Vitest 4.x
1483
1501
  * can load config (Vite 6+/7+ are ESM-only; see issue #142). Remove override
@@ -2963,6 +2981,7 @@ var VERSION_NPM_PACKAGES = [
2963
2981
  { key: "PNPM_VERSION", npmPackage: "pnpm" },
2964
2982
  { key: "PROJEN_VERSION", npmPackage: "projen" },
2965
2983
  { key: "TURBO_VERSION", npmPackage: "turbo" },
2984
+ { key: "TYPES_NODE_VERSION", npmPackage: "@types/node" },
2966
2985
  { key: "VITEST_VERSION", npmPackage: "vitest" }
2967
2986
  ];
2968
2987
  var VERSION_KEYS_SKIP = [
@@ -3133,6 +3152,7 @@ var TypeScriptProject = class extends import_projen12.typescript.TypeScriptProje
3133
3152
  };
3134
3153
  const options = (0, import_ts_deepmerge.merge)(defaultOptions, userOptions);
3135
3154
  super(options);
3155
+ this.addDevDeps("@types/node@catalog:");
3136
3156
  this.tsconfig?.addExclude("**/*.test.*");
3137
3157
  this.tsconfig?.addExclude("**/*.spec.*");
3138
3158
  if (options.testRunner === TestRunner.VITEST) {
@@ -3568,6 +3588,7 @@ var MonorepoProject = class extends import_typescript3.TypeScriptAppProject {
3568
3588
  pnpmOptions: {
3569
3589
  pnpmWorkspaceOptions: {
3570
3590
  defaultCatalog: {
3591
+ ["@types/node"]: VERSION.TYPES_NODE_VERSION,
3571
3592
  ["aws-cdk"]: VERSION.AWS_CDK_CLI_VERSION,
3572
3593
  ["aws-cdk-lib"]: VERSION.AWS_CDK_LIB_VERSION,
3573
3594
  ["projen"]: VERSION.PROJEN_VERSION,
@@ -3660,7 +3681,7 @@ var MonorepoProject = class extends import_typescript3.TypeScriptAppProject {
3660
3681
  `pnpm@${options.pnpmVersion}`
3661
3682
  );
3662
3683
  this.gitignore?.addPatterns(".DS_Store", "test-reports");
3663
- this.addDevDeps("constructs@catalog:");
3684
+ this.addDevDeps("constructs@catalog:", "@types/node@catalog:");
3664
3685
  if (options.approveMergeUpgradeOptions) {
3665
3686
  addApproveMergeUpgradeWorkflow(this, options.approveMergeUpgradeOptions);
3666
3687
  }