@ingram-tech/nk-dev 0.21.1 → 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.
package/README.md CHANGED
@@ -98,7 +98,7 @@ tsc), so versions stay under your control. nk only orchestrates.
98
98
  to it: boot Postgres-in-WASM, apply the `drizzle/` migrations, set
99
99
  `DATABASE_URL`, then `next dev --turbopack`. No Docker, no daemon.
100
100
  - **Plain** — otherwise just `next dev` (static/marketing sites with no DB).
101
- - **`nk format` / `nk format --check`** — formats code (JS/TS/JSON/CSS) with
101
+ - **`nk format` / `nk format --check`** — formats code (JS/TS/JSON/CSS/TOML) with
102
102
  oxfmt. `--check` verifies without writing (CI). SQL isn't formatted; see
103
103
  [Why no SQL formatting?](#why-no-sql-formatting).
104
104
  - **`nk lint`** — `oxlint`. nk-dev ships oxlint's type-aware backend
@@ -19,7 +19,7 @@
19
19
  import { execFileSync } from "node:child_process";
20
20
  import { existsSync } from "node:fs";
21
21
 
22
- const FORMATTABLE = /\.(jsx?|mjs|cjs|tsx?|mts|cts|json|jsonc|css|graphql|gql)$/;
22
+ const FORMATTABLE = /\.(jsx?|mjs|cjs|tsx?|mts|cts|json|jsonc|css|graphql|gql|toml)$/;
23
23
 
24
24
  const git = (args) => execFileSync("git", args, { encoding: "utf8" });
25
25
 
@@ -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/lib/format.js CHANGED
@@ -4,7 +4,7 @@ import { run } from "./run.js";
4
4
  /**
5
5
  * `nk format` / `nk format --check`.
6
6
  *
7
- * Code (JS/TS/JSON/CSS) goes through oxfmt — the one formatter nk owns. SQL is
7
+ * Code (JS/TS/JSON/CSS/TOML) goes through oxfmt — the one formatter nk owns. SQL is
8
8
  * intentionally NOT formatted: it's almost entirely generated (drizzle
9
9
  * migrations, `pg_dump` baselines, pglite fixtures), so a SQL formatter only
10
10
  * churns generated files and chokes on psql directives (`\restrict`, …) for no
package/oxfmtrc.json CHANGED
@@ -18,7 +18,6 @@
18
18
  "**/*.mdx",
19
19
  "**/*.yaml",
20
20
  "**/*.yml",
21
- "**/*.toml",
22
21
  "**/*.html",
23
22
  "dist",
24
23
  ".next",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ingram-tech/nk-dev",
3
- "version": "0.21.1",
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",
@@ -45,17 +45,17 @@
45
45
  "test": "vitest run"
46
46
  },
47
47
  "dependencies": {
48
- "@ast-grep/cli": "^0.50.0",
48
+ "@ast-grep/cli": "^0.51.0",
49
49
  "@testing-library/dom": "^10.4.2",
50
50
  "@testing-library/jest-dom": "^7.0.1",
51
51
  "@typescript/native": "npm:typescript@^7.0.2",
52
- "jsdom": "^30.1.2",
53
- "knip": "^6.41.0",
54
- "oxfmt": "^0.72.0",
55
- "oxlint": "^1.87.0",
56
- "oxlint-tsgolint": "^7.0.2004",
52
+ "jsdom": "^30.1.3",
53
+ "knip": "^6.43.0",
54
+ "oxfmt": "^0.75.0",
55
+ "oxlint": "^1.90.0",
56
+ "oxlint-tsgolint": "^7.0.2005",
57
57
  "typescript": "npm:@typescript/typescript6@^6.0.2",
58
- "vitest": "^5.0.3"
58
+ "vitest": "^5.0.5"
59
59
  },
60
60
  "engines": {
61
61
  "node": "^22.22.2 || ^24.15.0 || >=26.0.0"