Skip to content

Commit 7038aeb

Browse files
committed
docs(playbook): clarify files negation and simplify rollback\n\n- Instruct to remove '!dist/**/*.map' if present in package.json (negation unsupported)\n- Keep only modern 'git restore -SW ' in rollback section
1 parent e0094fc commit 7038aeb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.charlie/playbooks/upgrade-plugin-to-esm-only.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ Upgrade a single plugin under `packages/<name>` to publish ESM-only output with
4646

4747
If you must disable map emission, either update the shared `.config/tsconfig.plugin.json` (affects all packages) or create a package-local `tsconfig.build.json` that extends it with `"sourceMap": false` and `"declarationMap": false`, then change the build script to `tsc --project tsconfig.build.json`.
4848

49+
If an existing `package.json` contains `"files": [ ..., "!dist/**/*.map", ... ]`, remove the negated entry—negation is not supported and will be ignored.
50+
4951
3. Build scripts: TypeScript emit to dist
5052

5153
- Prefer a tsc-only build for packages that do not need bundling:
@@ -121,9 +123,8 @@ Upgrade a single plugin under `packages/<name>` to publish ESM-only output with
121123

122124
## Rollback
123125

124-
- Revert the package directory to the previous commit:
126+
- Revert the package directory to the previous commit (modern Git):
125127
```bash
126-
git checkout -- $PKG
127128
git restore -SW $PKG
128129
```
129130
- If needed, `git reset --hard HEAD~1` when this package’s change is isolated on a feature branch.

0 commit comments

Comments
 (0)