@dbx-tools/cli 0.3.28 → 0.3.29

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/bootstrap.ts +3 -2
package/package.json CHANGED
@@ -18,15 +18,15 @@
18
18
  "commander": "^15.0.0",
19
19
  "pnpm": "^11.0.6",
20
20
  "tsx": "^4.23.0",
21
- "@dbx-tools/core": "0.3.28",
22
- "@dbx-tools/shared-core": "0.3.28"
21
+ "@dbx-tools/core": "0.3.29",
22
+ "@dbx-tools/shared-core": "0.3.29"
23
23
  },
24
24
  "main": "index.ts",
25
25
  "license": "UNLICENSED",
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  },
29
- "version": "0.3.28",
29
+ "version": "0.3.29",
30
30
  "types": "index.ts",
31
31
  "type": "module",
32
32
  "exports": {
package/src/bootstrap.ts CHANGED
@@ -7,6 +7,7 @@ import { existsSync, readFileSync, writeFileSync } from "node:fs";
7
7
  import { join } from "node:path";
8
8
  import { intro, outro } from "@clack/prompts";
9
9
  import { exec } from "@dbx-tools/core";
10
+ import { json } from "@dbx-tools/shared-core";
10
11
  import { resolvePnpmArgv, runPnpm } from "./pnpm";
11
12
  import { rootLabel } from "./root";
12
13
 
@@ -94,8 +95,8 @@ export function seedToolchain(
94
95
  /** Remove the `devEngines` block pnpm `init` seeds, so npm-based tooling doesn't reject the manifest. */
95
96
  function stripDevEngines(manifestPath: string): void {
96
97
  try {
97
- const manifest = JSON.parse(readFileSync(manifestPath, "utf8")) as Record<string, unknown>;
98
- if (manifest.devEngines === undefined) return;
98
+ const manifest = json.parseRecord(readFileSync(manifestPath, "utf8"));
99
+ if (manifest?.devEngines === undefined) return;
99
100
  delete manifest.devEngines;
100
101
  writeFileSync(manifestPath, `${JSON.stringify(manifest, null, 2)}\n`);
101
102
  } catch {