@codedrifters/configulator 0.0.236 → 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 +14 -14
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +14 -14
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -537,7 +537,7 @@ var baseBundle = {
|
|
|
537
537
|
"## Important Notes",
|
|
538
538
|
"",
|
|
539
539
|
"- **Never edit generated files** \u2014 they are marked with `// ~~ Generated by projen`",
|
|
540
|
-
"- **After modifying Projen configuration**, run `
|
|
540
|
+
"- **After modifying Projen configuration**, run `pnpm exec projen` to regenerate files, then `pnpm install` to update the lockfile.",
|
|
541
541
|
"- **Configure dependencies through Projen** \u2014 never use `npm install`, `pnpm add`, or `yarn add`. Add them to `deps` or `devDeps` in Projen config.",
|
|
542
542
|
"- **Export from index.ts** to maintain clean public APIs"
|
|
543
543
|
].join("\n"),
|
|
@@ -554,7 +554,7 @@ var baseBundle = {
|
|
|
554
554
|
"",
|
|
555
555
|
"## Prohibited Commands",
|
|
556
556
|
"",
|
|
557
|
-
"- `
|
|
557
|
+
"- `pnpm exec projen` \u2014 synthesize project files",
|
|
558
558
|
"- `pnpm install` / `pnpm i` \u2014 install dependencies",
|
|
559
559
|
"- `pnpm build` / `pnpm build:all` \u2014 build the project",
|
|
560
560
|
"- `pnpm test` / `pnpm --filter ... test` \u2014 run tests",
|
|
@@ -567,7 +567,7 @@ var baseBundle = {
|
|
|
567
567
|
"",
|
|
568
568
|
"After making changes that need validation, tell the user the specific commands to run:",
|
|
569
569
|
"",
|
|
570
|
-
"1. **After projen config changes** \u2014 tell the user to run `
|
|
570
|
+
"1. **After projen config changes** \u2014 tell the user to run `pnpm exec projen && pnpm install`",
|
|
571
571
|
"2. **After source code changes** \u2014 tell the user to run `pnpm --filter @codedrifters/<package> test`",
|
|
572
572
|
"3. **After multi-package changes** \u2014 tell the user to run `pnpm build:all`"
|
|
573
573
|
].join("\n"),
|
|
@@ -2525,7 +2525,7 @@ var githubWorkflowBundle = {
|
|
|
2525
2525
|
"",
|
|
2526
2526
|
"When the user says **open a PR** (or similar), follow these steps exactly:",
|
|
2527
2527
|
"",
|
|
2528
|
-
"1. **Regenerate project files** \u2014 run `
|
|
2528
|
+
"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.",
|
|
2529
2529
|
"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.",
|
|
2530
2530
|
"3. **Check for uncommitted changes** \u2014 if any exist, commit them with a conventional commit message",
|
|
2531
2531
|
"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",
|
|
@@ -4671,7 +4671,7 @@ var issueWorkerSubAgent = {
|
|
|
4671
4671
|
"",
|
|
4672
4672
|
"Run the appropriate verification commands depending on what changed:",
|
|
4673
4673
|
"",
|
|
4674
|
-
"1. If Projen config was changed: `
|
|
4674
|
+
"1. If Projen config was changed: `pnpm exec projen && pnpm install`",
|
|
4675
4675
|
"2. Compile the affected package: `pnpm --filter @codedrifters/<package> compile`",
|
|
4676
4676
|
"3. Test the affected package: `pnpm --filter @codedrifters/<package> test`",
|
|
4677
4677
|
"4. If changes span multiple packages: `pnpm build:all`",
|
|
@@ -5664,7 +5664,7 @@ var pnpmBundle = {
|
|
|
5664
5664
|
"- Configure dependencies in Projen configuration files (`.projenrc.ts` or `projenrc/*.ts`)",
|
|
5665
5665
|
"- Add dependencies to `deps`, `devDeps`, or `peerDeps` arrays in project configuration",
|
|
5666
5666
|
'- Use catalog dependencies when available (e.g., `"aws-cdk-lib@catalog:"`)',
|
|
5667
|
-
"- Ask the user to run `
|
|
5667
|
+
"- Ask the user to run `pnpm exec projen` and `pnpm install` after updating dependency configuration",
|
|
5668
5668
|
"",
|
|
5669
5669
|
"**DO NOT:**",
|
|
5670
5670
|
"- Run `npm install some-package`",
|
|
@@ -6791,7 +6791,7 @@ var prReviewBundle = {
|
|
|
6791
6791
|
"",
|
|
6792
6792
|
"human-required:",
|
|
6793
6793
|
" paths:",
|
|
6794
|
-
' - "docs/
|
|
6794
|
+
' - "docs/requirements/architectural-decisions/**"',
|
|
6795
6795
|
' - "docs/project-context.md"',
|
|
6796
6796
|
' - ".github/workflows/**"',
|
|
6797
6797
|
' - ".github/CODEOWNERS"',
|
|
@@ -7093,11 +7093,11 @@ var projenBundle = {
|
|
|
7093
7093
|
"After modifying any file in `projenrc/` or `.projenrc.ts`, regenerate project files:",
|
|
7094
7094
|
"",
|
|
7095
7095
|
"```sh",
|
|
7096
|
-
"
|
|
7096
|
+
"pnpm exec projen",
|
|
7097
7097
|
"pnpm install",
|
|
7098
7098
|
"```",
|
|
7099
7099
|
"",
|
|
7100
|
-
"Both steps are required \u2014 `
|
|
7100
|
+
"Both steps are required \u2014 `pnpm exec projen` regenerates files, `pnpm install` updates the lockfile to match.",
|
|
7101
7101
|
"",
|
|
7102
7102
|
"## Building",
|
|
7103
7103
|
"",
|
|
@@ -7178,7 +7178,7 @@ var projenBundle = {
|
|
|
7178
7178
|
"After finishing implementation work, validate that changes are correct by running the appropriate commands depending on what was changed:",
|
|
7179
7179
|
"",
|
|
7180
7180
|
"1. **Projen config changes** (`projenrc/`, `.projenrc.ts`):",
|
|
7181
|
-
" - Run `
|
|
7181
|
+
" - Run `pnpm exec projen` then `pnpm install`",
|
|
7182
7182
|
" - Verify no unexpected generated file changes with `git diff`",
|
|
7183
7183
|
"",
|
|
7184
7184
|
"2. **Source code changes** (in a sub-package):",
|
|
@@ -7195,7 +7195,7 @@ var projenBundle = {
|
|
|
7195
7195
|
"",
|
|
7196
7196
|
"| Task | Command |",
|
|
7197
7197
|
"|------|---------|",
|
|
7198
|
-
"| Synthesize projen | `
|
|
7198
|
+
"| Synthesize projen | `pnpm exec projen` |",
|
|
7199
7199
|
"| Install deps | `pnpm install` |",
|
|
7200
7200
|
"| Full monorepo build | `pnpm build:all` |",
|
|
7201
7201
|
"| Root build only | `pnpm build` |",
|
|
@@ -7221,7 +7221,7 @@ var projenBundle = {
|
|
|
7221
7221
|
content: [
|
|
7222
7222
|
"# Customizing Agent Rules",
|
|
7223
7223
|
"",
|
|
7224
|
-
"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 `
|
|
7224
|
+
"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.",
|
|
7225
7225
|
"",
|
|
7226
7226
|
"## Adding Repo-Specific Rules",
|
|
7227
7227
|
"",
|
|
@@ -7254,7 +7254,7 @@ var projenBundle = {
|
|
|
7254
7254
|
"",
|
|
7255
7255
|
"## After Any Change",
|
|
7256
7256
|
"",
|
|
7257
|
-
"Run `
|
|
7257
|
+
"Run `pnpm exec projen` then `pnpm install` to regenerate the output files."
|
|
7258
7258
|
].join("\n"),
|
|
7259
7259
|
tags: ["workflow"]
|
|
7260
7260
|
},
|
|
@@ -7272,7 +7272,7 @@ var projenBundle = {
|
|
|
7272
7272
|
"- Edit Projen configuration in:",
|
|
7273
7273
|
" - `.projenrc.ts` (root)",
|
|
7274
7274
|
" - `projenrc/*.ts` (package-specific)",
|
|
7275
|
-
"- After making Projen changes, run `
|
|
7275
|
+
"- After making Projen changes, run `pnpm exec projen` to synthesize",
|
|
7276
7276
|
"",
|
|
7277
7277
|
"## Workspace Dependencies",
|
|
7278
7278
|
"",
|