@ingram-tech/nk-dev 0.22.0 → 0.23.0

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.
@@ -7,8 +7,10 @@ import { resolve } from "node:path";
7
7
  // its own reopens the gap (1.7.0 added a column the chain lacked; 1.7.3 then
8
8
  // rejected the constraint the chain had added), so the site must declare the
9
9
  // exact version nk-auth's peerDependencies names — not a range, which
10
- // `bun update` would silently walk past the next time.
11
- const AUTH_PACKAGES = ["better-auth", "@better-auth/passkey"];
10
+ // `bun update` would silently walk past the next time. Every `@better-auth/*`
11
+ // package moves with it: they peer on each other at the exact same version.
12
+ const isAuthPackage = (name) =>
13
+ name === "better-auth" || name.startsWith("@better-auth/");
12
14
 
13
15
  const readJson = (file) => {
14
16
  try {
@@ -44,9 +46,8 @@ export function authVersionFindings(cwd) {
44
46
  const deps = { ...pkg.dependencies, ...pkg.devDependencies };
45
47
  if (!deps["@ingram-tech/nk-auth"]) return out;
46
48
 
47
- for (const name of AUTH_PACKAGES) {
48
- const declared = deps[name];
49
- if (typeof declared !== "string") continue;
49
+ for (const [name, declared] of Object.entries(deps)) {
50
+ if (!isAuthPackage(name) || typeof declared !== "string") continue;
50
51
  const wanted = nkAuthPeer(cwd, name);
51
52
  if (wanted === null || !isExact(wanted)) continue;
52
53
  if (declared === wanted) continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ingram-tech/nk-dev",
3
- "version": "0.22.0",
3
+ "version": "0.23.0",
4
4
  "description": "The nextkit dev toolchain in one package: the `nk` CLI plus shared oxlint/oxfmt, TypeScript, and Vitest config, the format-on-commit hook, and the AI agent guide. `nk init` scaffolds a site to use it.",
5
5
  "license": "MIT",
6
6
  "type": "module",