@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.mjs CHANGED
@@ -454,12 +454,26 @@ var baseBundle = {
454
454
  "## Important Notes",
455
455
  "",
456
456
  "- **Never edit generated files** \u2014 they are marked with `// ~~ Generated by projen`",
457
- "- **After modifying Projen configuration**, the user should run `npx projen` locally. The agent must not run `npx projen`, `pnpm install`, or `pnpm i`.",
457
+ "- **After modifying Projen configuration**, run `npx projen` to regenerate files, then `pnpm install` to update the lockfile.",
458
458
  "- **Configure dependencies through Projen** \u2014 never use `npm install`, `pnpm add`, or `yarn add`. Add them to `deps` or `devDeps` in Projen config.",
459
459
  "- **Export from index.ts** to maintain clean public APIs"
460
460
  ].join("\n"),
461
461
  tags: ["project"]
462
462
  },
463
+ {
464
+ name: "cursor-projen-restrictions",
465
+ description: "Cursor must not run projen or package-manager install commands",
466
+ scope: AGENT_RULE_SCOPE.ALWAYS,
467
+ content: [
468
+ "# Projen Restrictions",
469
+ "",
470
+ "- **Do not run `npx projen`, `pnpm install`, or `pnpm i`** \u2014 after modifying Projen configuration, the user should run these commands locally."
471
+ ].join("\n"),
472
+ platforms: {
473
+ claude: { exclude: true }
474
+ },
475
+ tags: ["project"]
476
+ },
463
477
  {
464
478
  name: "reference-documentation",
465
479
  description: "Consult project rules, documentation, and existing code before answering or making changes",
@@ -1427,6 +1441,10 @@ var VERSION = {
1427
1441
  * What version of the turborepo library should we use?
1428
1442
  */
1429
1443
  TURBO_VERSION: "2.9.5",
1444
+ /**
1445
+ * Version of @types/node to use across all packages (pnpm catalog).
1446
+ */
1447
+ TYPES_NODE_VERSION: "24.12.2",
1430
1448
  /**
1431
1449
  * What version of Vite to use (pnpm override). Pinned to 5.x so Vitest 4.x
1432
1450
  * can load config (Vite 6+/7+ are ESM-only; see issue #142). Remove override
@@ -2912,6 +2930,7 @@ var VERSION_NPM_PACKAGES = [
2912
2930
  { key: "PNPM_VERSION", npmPackage: "pnpm" },
2913
2931
  { key: "PROJEN_VERSION", npmPackage: "projen" },
2914
2932
  { key: "TURBO_VERSION", npmPackage: "turbo" },
2933
+ { key: "TYPES_NODE_VERSION", npmPackage: "@types/node" },
2915
2934
  { key: "VITEST_VERSION", npmPackage: "vitest" }
2916
2935
  ];
2917
2936
  var VERSION_KEYS_SKIP = [
@@ -3091,6 +3110,7 @@ var TypeScriptProject = class extends typescript.TypeScriptProject {
3091
3110
  };
3092
3111
  const options = merge(defaultOptions, userOptions);
3093
3112
  super(options);
3113
+ this.addDevDeps("@types/node@catalog:");
3094
3114
  this.tsconfig?.addExclude("**/*.test.*");
3095
3115
  this.tsconfig?.addExclude("**/*.spec.*");
3096
3116
  if (options.testRunner === TestRunner.VITEST) {
@@ -3526,6 +3546,7 @@ var MonorepoProject = class extends TypeScriptAppProject {
3526
3546
  pnpmOptions: {
3527
3547
  pnpmWorkspaceOptions: {
3528
3548
  defaultCatalog: {
3549
+ ["@types/node"]: VERSION.TYPES_NODE_VERSION,
3529
3550
  ["aws-cdk"]: VERSION.AWS_CDK_CLI_VERSION,
3530
3551
  ["aws-cdk-lib"]: VERSION.AWS_CDK_LIB_VERSION,
3531
3552
  ["projen"]: VERSION.PROJEN_VERSION,
@@ -3618,7 +3639,7 @@ var MonorepoProject = class extends TypeScriptAppProject {
3618
3639
  `pnpm@${options.pnpmVersion}`
3619
3640
  );
3620
3641
  this.gitignore?.addPatterns(".DS_Store", "test-reports");
3621
- this.addDevDeps("constructs@catalog:");
3642
+ this.addDevDeps("constructs@catalog:", "@types/node@catalog:");
3622
3643
  if (options.approveMergeUpgradeOptions) {
3623
3644
  addApproveMergeUpgradeWorkflow(this, options.approveMergeUpgradeOptions);
3624
3645
  }