Skip to content

Commit c641ef7

Browse files
agjscursoragent
andcommitted
fix: restore 7-day minimumReleaseAge for ui and docs
Removing pnpm .npmrc dropped install-time quarantine on apps/ui and apps/docs. Add bunfig.toml with the same age gate and excludes. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 1848cbf commit c641ef7

3 files changed

Lines changed: 37 additions & 12 deletions

File tree

apps/docs/bunfig.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[install]
2+
minimumReleaseAge = 604800
3+
minimumReleaseAgeExcludes = [
4+
"yaml",
5+
"@tailwindcss/oxide",
6+
"@tailwindcss/oxide*",
7+
]

apps/docs/src/content/docs/topics/supply-chain.mdx

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,16 +48,16 @@ import FaqItem from "../../../components/FaqItem.tsx";
4848
## How it works per package manager
4949

5050
<FaqGroup>
51-
<FaqItem title="api-template (Bun)" open>
51+
<FaqItem title="apps/api (Bun)" open>
5252
`bunfig.toml`: `[install] minimumReleaseAge = 604800` (seconds).
5353
</FaqItem>
54-
<FaqItem title="ui-template (Bun)">
55-
`.npmrc`: `minimum-release-age=10080` (minutes).
54+
<FaqItem title="apps/ui (Bun)" open>
55+
`bunfig.toml`: `[install] minimumReleaseAge = 604800` (seconds), with per-package excludes for high-churn and first-party packages.
5656
</FaqItem>
57-
<FaqItem title=".github docs (Bun)">
58-
`.npmrc`: `minimum-release-age=10080`.
57+
<FaqItem title="apps/docs (Bun)">
58+
`bunfig.toml`: `[install] minimumReleaseAge = 604800` (seconds).
5959
</FaqItem>
60-
<FaqItem title="infra-docker-compose-template">
60+
<FaqItem title="infra/compose">
6161
No JS deps; n/a.
6262
</FaqItem>
6363
<FaqItem title="infra-bootstrap-tofu-template">
@@ -81,18 +81,19 @@ import FaqItem from "../../../components/FaqItem.tsx";
8181

8282
## Overriding for a specific package
8383

84-
Bun and npm-compatible `.npmrc` support per-package overrides via `minimum-release-age-exclude[]`. The array syntax with `[]=` is required; a comma-separated list won't parse:
84+
Bun supports per-package overrides in `bunfig.toml` via `minimumReleaseAgeExcludes`:
8585

86-
```ini
87-
minimum-release-age-exclude[]=yaml
88-
minimum-release-age-exclude[]=msw
89-
minimum-release-age-exclude[]=@tailwindcss/oxide*
86+
```toml
87+
minimumReleaseAgeExcludes = [
88+
"yaml",
89+
"@tailwindcss/oxide*",
90+
]
9091
```
9192

9293
Glob patterns are supported, useful for platform-variant packages like `@tailwindcss/oxide-*`.
9394

9495
<DocCallout variant="note" title="Use sparingly" eyebrow="Override discipline">
95-
Each exclusion weakens the threat model slightly. The default `ui-template` `.npmrc` already excludes several high-churn packages whose latest versions fall within the seven-day window. Only add exclusions when a specific CVE or release justifies it. Document the reason in a comment.
96+
Each exclusion weakens the threat model slightly. The default `apps/ui/bunfig.toml` already excludes several high-churn packages whose latest versions fall within the seven-day window. Only add exclusions when a specific CVE or release justifies it. Document the reason in a comment.
9697
</DocCallout>
9798

9899
## Why not just trust npm?

apps/ui/bunfig.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
[install]
2+
minimumReleaseAge = 604800
3+
minimumReleaseAgeExcludes = [
4+
"yaml",
5+
"@tailwindcss/oxide",
6+
"@tailwindcss/oxide*",
7+
"@boring-stack-pkg/eslint-plugin-code-flow",
8+
"@boring-stack-pkg/eslint-plugin-comment-hygiene",
9+
"@boring-stack-pkg/eslint-plugin-env-access",
10+
"@boring-stack-pkg/eslint-plugin-i18n-keys",
11+
"@boring-stack-pkg/eslint-plugin-module-boundaries",
12+
"@boring-stack-pkg/eslint-plugin-react-component-architecture",
13+
"@boring-stack-pkg/eslint-plugin-resource-architecture",
14+
"@boring-stack-pkg/eslint-plugin-structured-logging",
15+
"@boring-stack-pkg/eslint-plugin-tanstack-query-cache",
16+
"@boring-stack-pkg/eslint-plugin-test-conventions",
17+
]

0 commit comments

Comments
 (0)