@codedrifters/configulator 0.0.237 → 0.0.238
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.js +13 -13
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +13 -13
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -459,7 +459,7 @@ var baseBundle = {
|
|
|
459
459
|
"## Important Notes",
|
|
460
460
|
"",
|
|
461
461
|
"- **Never edit generated files** \u2014 they are marked with `// ~~ Generated by projen`",
|
|
462
|
-
"- **After modifying Projen configuration**, run `
|
|
462
|
+
"- **After modifying Projen configuration**, run `pnpm exec projen` to regenerate files, then `pnpm install` to update the lockfile.",
|
|
463
463
|
"- **Configure dependencies through Projen** \u2014 never use `npm install`, `pnpm add`, or `yarn add`. Add them to `deps` or `devDeps` in Projen config.",
|
|
464
464
|
"- **Export from index.ts** to maintain clean public APIs"
|
|
465
465
|
].join("\n"),
|
|
@@ -476,7 +476,7 @@ var baseBundle = {
|
|
|
476
476
|
"",
|
|
477
477
|
"## Prohibited Commands",
|
|
478
478
|
"",
|
|
479
|
-
"- `
|
|
479
|
+
"- `pnpm exec projen` \u2014 synthesize project files",
|
|
480
480
|
"- `pnpm install` / `pnpm i` \u2014 install dependencies",
|
|
481
481
|
"- `pnpm build` / `pnpm build:all` \u2014 build the project",
|
|
482
482
|
"- `pnpm test` / `pnpm --filter ... test` \u2014 run tests",
|
|
@@ -489,7 +489,7 @@ var baseBundle = {
|
|
|
489
489
|
"",
|
|
490
490
|
"After making changes that need validation, tell the user the specific commands to run:",
|
|
491
491
|
"",
|
|
492
|
-
"1. **After projen config changes** \u2014 tell the user to run `
|
|
492
|
+
"1. **After projen config changes** \u2014 tell the user to run `pnpm exec projen && pnpm install`",
|
|
493
493
|
"2. **After source code changes** \u2014 tell the user to run `pnpm --filter @codedrifters/<package> test`",
|
|
494
494
|
"3. **After multi-package changes** \u2014 tell the user to run `pnpm build:all`"
|
|
495
495
|
].join("\n"),
|
|
@@ -2447,7 +2447,7 @@ var githubWorkflowBundle = {
|
|
|
2447
2447
|
"",
|
|
2448
2448
|
"When the user says **open a PR** (or similar), follow these steps exactly:",
|
|
2449
2449
|
"",
|
|
2450
|
-
"1. **Regenerate project files** \u2014 run `
|
|
2450
|
+
"1. **Regenerate project files** \u2014 run `pnpm exec projen` then `pnpm install` to ensure all generated files are up to date. Check `git diff` \u2014 if there are changes, commit them before proceeding.",
|
|
2451
2451
|
"2. **Run the full monorepo build** \u2014 run `pnpm build:all` to compile, lint, and test all packages (mirrors the CI pipeline). This command requires the user to be authenticated to AWS on the prod account used for Turborepo remote caching (`readonlyaccess-prod-525259625215-us-east-1` profile). If the command fails due to AWS credentials, ask the user to authenticate first. If the build produces changes to turbo inputs (typically snapshot files or ESLint auto-fixes), commit those changes and run `pnpm build:all` again \u2014 the build must complete cleanly with no uncommitted changes.",
|
|
2452
2452
|
"3. **Check for uncommitted changes** \u2014 if any exist, commit them with a conventional commit message",
|
|
2453
2453
|
"4. **Pull and rebase from the default branch** \u2014 run `git pull origin {{repository.defaultBranch}} --rebase` to incorporate the latest changes and resolve any conflicts before pushing",
|
|
@@ -4593,7 +4593,7 @@ var issueWorkerSubAgent = {
|
|
|
4593
4593
|
"",
|
|
4594
4594
|
"Run the appropriate verification commands depending on what changed:",
|
|
4595
4595
|
"",
|
|
4596
|
-
"1. If Projen config was changed: `
|
|
4596
|
+
"1. If Projen config was changed: `pnpm exec projen && pnpm install`",
|
|
4597
4597
|
"2. Compile the affected package: `pnpm --filter @codedrifters/<package> compile`",
|
|
4598
4598
|
"3. Test the affected package: `pnpm --filter @codedrifters/<package> test`",
|
|
4599
4599
|
"4. If changes span multiple packages: `pnpm build:all`",
|
|
@@ -5586,7 +5586,7 @@ var pnpmBundle = {
|
|
|
5586
5586
|
"- Configure dependencies in Projen configuration files (`.projenrc.ts` or `projenrc/*.ts`)",
|
|
5587
5587
|
"- Add dependencies to `deps`, `devDeps`, or `peerDeps` arrays in project configuration",
|
|
5588
5588
|
'- Use catalog dependencies when available (e.g., `"aws-cdk-lib@catalog:"`)',
|
|
5589
|
-
"- Ask the user to run `
|
|
5589
|
+
"- Ask the user to run `pnpm exec projen` and `pnpm install` after updating dependency configuration",
|
|
5590
5590
|
"",
|
|
5591
5591
|
"**DO NOT:**",
|
|
5592
5592
|
"- Run `npm install some-package`",
|
|
@@ -7015,11 +7015,11 @@ var projenBundle = {
|
|
|
7015
7015
|
"After modifying any file in `projenrc/` or `.projenrc.ts`, regenerate project files:",
|
|
7016
7016
|
"",
|
|
7017
7017
|
"```sh",
|
|
7018
|
-
"
|
|
7018
|
+
"pnpm exec projen",
|
|
7019
7019
|
"pnpm install",
|
|
7020
7020
|
"```",
|
|
7021
7021
|
"",
|
|
7022
|
-
"Both steps are required \u2014 `
|
|
7022
|
+
"Both steps are required \u2014 `pnpm exec projen` regenerates files, `pnpm install` updates the lockfile to match.",
|
|
7023
7023
|
"",
|
|
7024
7024
|
"## Building",
|
|
7025
7025
|
"",
|
|
@@ -7100,7 +7100,7 @@ var projenBundle = {
|
|
|
7100
7100
|
"After finishing implementation work, validate that changes are correct by running the appropriate commands depending on what was changed:",
|
|
7101
7101
|
"",
|
|
7102
7102
|
"1. **Projen config changes** (`projenrc/`, `.projenrc.ts`):",
|
|
7103
|
-
" - Run `
|
|
7103
|
+
" - Run `pnpm exec projen` then `pnpm install`",
|
|
7104
7104
|
" - Verify no unexpected generated file changes with `git diff`",
|
|
7105
7105
|
"",
|
|
7106
7106
|
"2. **Source code changes** (in a sub-package):",
|
|
@@ -7117,7 +7117,7 @@ var projenBundle = {
|
|
|
7117
7117
|
"",
|
|
7118
7118
|
"| Task | Command |",
|
|
7119
7119
|
"|------|---------|",
|
|
7120
|
-
"| Synthesize projen | `
|
|
7120
|
+
"| Synthesize projen | `pnpm exec projen` |",
|
|
7121
7121
|
"| Install deps | `pnpm install` |",
|
|
7122
7122
|
"| Full monorepo build | `pnpm build:all` |",
|
|
7123
7123
|
"| Root build only | `pnpm build` |",
|
|
@@ -7143,7 +7143,7 @@ var projenBundle = {
|
|
|
7143
7143
|
content: [
|
|
7144
7144
|
"# Customizing Agent Rules",
|
|
7145
7145
|
"",
|
|
7146
|
-
"Agent rules for Claude and Cursor are **generated** by configulator's `AgentConfig` component. The generated output files (`.claude/rules/`, `.cursor/rules/`, `CLAUDE.md`) must not be edited directly \u2014 they are overwritten on every `
|
|
7146
|
+
"Agent rules for Claude and Cursor are **generated** by configulator's `AgentConfig` component. The generated output files (`.claude/rules/`, `.cursor/rules/`, `CLAUDE.md`) must not be edited directly \u2014 they are overwritten on every `pnpm exec projen` run.",
|
|
7147
7147
|
"",
|
|
7148
7148
|
"## Adding Repo-Specific Rules",
|
|
7149
7149
|
"",
|
|
@@ -7176,7 +7176,7 @@ var projenBundle = {
|
|
|
7176
7176
|
"",
|
|
7177
7177
|
"## After Any Change",
|
|
7178
7178
|
"",
|
|
7179
|
-
"Run `
|
|
7179
|
+
"Run `pnpm exec projen` then `pnpm install` to regenerate the output files."
|
|
7180
7180
|
].join("\n"),
|
|
7181
7181
|
tags: ["workflow"]
|
|
7182
7182
|
},
|
|
@@ -7194,7 +7194,7 @@ var projenBundle = {
|
|
|
7194
7194
|
"- Edit Projen configuration in:",
|
|
7195
7195
|
" - `.projenrc.ts` (root)",
|
|
7196
7196
|
" - `projenrc/*.ts` (package-specific)",
|
|
7197
|
-
"- After making Projen changes, run `
|
|
7197
|
+
"- After making Projen changes, run `pnpm exec projen` to synthesize",
|
|
7198
7198
|
"",
|
|
7199
7199
|
"## Workspace Dependencies",
|
|
7200
7200
|
"",
|