Skip to content

Commit b7fa97d

Browse files
committed
fix: include prettier ignore in updates
1 parent 9a8ad63 commit b7fa97d

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

docs/adr/0004-detach-and-upgrade-product-files.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ instance.
1919
`wrangler.toml`, `.dev.vars`, and `README.md`.
2020

2121
The default upgrade path includes product files such as `defaults/`, `scripts/`, `package.json`, `package-lock.json`,
22-
and `LICENSE`. It does not refresh `README.md`, because `npm run detach` replaces the upstream README with the
23-
operator-focused instance README.
22+
`LICENSE`, `.npmrc`, and `.prettierignore`. It does not refresh `README.md`, because `npm run detach` replaces the
23+
upstream README with the operator-focused instance README.
2424

2525
## Consequences
2626

scripts/upgrade.mjs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,15 @@ import { spawnSync } from "node:child_process";
88
const ROOT = process.cwd();
99
const DEFAULT_REMOTE = "https://github.com/vanityurls/code.git";
1010
const DEFAULT_REF = "main";
11-
const DEFAULT_PATHS = ["defaults", "scripts", "package.json", "package-lock.json", "LICENSE", ".npmrc"];
11+
const DEFAULT_PATHS = [
12+
"defaults",
13+
"scripts",
14+
"package.json",
15+
"package-lock.json",
16+
"LICENSE",
17+
".npmrc",
18+
".prettierignore"
19+
];
1220
const PROTECTED_PATHS = ["custom", "wrangler.toml", ".dev.vars", "README.md"];
1321
const GENERATED_PATHS = ["build", "functions", "src"];
1422

0 commit comments

Comments
 (0)