next-workers-kit 2.0.0 → 2.0.1
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/README.md +2 -2
- package/dist/lib/doctor.js +0 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -105,7 +105,7 @@ Project-specific rules go after the spread, in the same `defineConfig` array.
|
|
|
105
105
|
| Starter | `.gitignore`, `.prettierignore`, `knip.json`, `.mcp.json`, ESLint, Prettier and TS configs | Still contain the baseline entries; add your own freely |
|
|
106
106
|
| Project | `package.json`, `next.config.ts`, `wrangler.jsonc`, `.dev.vars.example` | Baseline scripts, pins and settings; one `.dev.vars.example` line per required secret |
|
|
107
107
|
|
|
108
|
-
It also reports `.env*` files (OpenNext bundles them into the Worker; keep local secrets in `.dev.vars`)
|
|
108
|
+
It also reports `.env*` files (OpenNext bundles them into the Worker; keep local secrets in `.dev.vars`) and `src/middleware.ts` (use `proxy.ts`).
|
|
109
109
|
|
|
110
110
|
- `npx next-workers-kit sync` rewrites the synced files and sets `packageManager` to the latest npm. Run it after upgrading this package.
|
|
111
111
|
- `npx next-workers-kit init` runs `sync` and writes any missing starter files. It never overwrites your files.
|
|
@@ -122,7 +122,7 @@ It also reports `.env*` files (OpenNext bundles them into the Worker; keep local
|
|
|
122
122
|
|
|
123
123
|
**Staying current.** Dependabot checks daily and waits three days after each release. When it upgrades this package, run `npx next-workers-kit sync` on that branch.
|
|
124
124
|
|
|
125
|
-
**When checks run.**
|
|
125
|
+
**When checks run.** `lefthook` checks formatting and lint on staged files before a commit, runs `npm run check` before a push, and Workers Builds runs it again before every deploy. `CLAUDE.md` imports `AGENTS.md`, so Claude Code reads the same instructions as other agents.
|
|
126
126
|
|
|
127
127
|
## Develop
|
|
128
128
|
|
package/dist/lib/doctor.js
CHANGED
|
@@ -173,20 +173,6 @@ export function doctor(root) {
|
|
|
173
173
|
else if (!mcp.includes("next-devtools-mcp")) {
|
|
174
174
|
report(".mcp.json", "add the next-devtools-mcp server");
|
|
175
175
|
}
|
|
176
|
-
const settings = existsSync(join(root, ".claude/settings.json"))
|
|
177
|
-
? json(".claude/settings.json")
|
|
178
|
-
: undefined;
|
|
179
|
-
if (settings) {
|
|
180
|
-
// Agents may do everything; checks run at commit, push and deploy instead.
|
|
181
|
-
for (const rule of ["deny", "ask"]) {
|
|
182
|
-
if (settings.permissions?.[rule]?.length) {
|
|
183
|
-
report(".claude/settings.json", `remove permissions.${rule}; agents are not restricted`);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
if (JSON.stringify(settings.hooks ?? {}).includes(`${packageName}/dist/hooks`)) {
|
|
187
|
-
report(".claude/settings.json", `remove the ${packageName} hooks; checks run at commit, push and deploy`);
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
176
|
for (const [file, needle] of [
|
|
191
177
|
["eslint.config.mjs", `${packageName}/eslint`],
|
|
192
178
|
["prettier.config.mjs", `${packageName}/prettier`],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "next-workers-kit",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"description": "Config, structure rules and drift checks for Next.js on Cloudflare Workers (OpenNext): ESLint, TypeScript, Prettier and a project doctor",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "pnilssson",
|