@arktype/attest
Advanced tools
Comparing version 0.6.3 to 0.6.4
import { execSync } from "child_process" | ||
import { rmSync } from "fs" | ||
import { join } from "path" | ||
import { baseDiagnosticTscCmd } from "./shared.js" | ||
@@ -11,10 +10,6 @@ export const stats = (args: string[]) => { | ||
try { | ||
rmSync(join(packageDir, "tsconfig.tsbuildinfo"), { force: true }) | ||
output = execSync( | ||
"pnpm tsc --noEmit --extendedDiagnostics --incremental false", | ||
{ | ||
cwd: packageDir, | ||
stdio: "pipe" | ||
} | ||
).toString() | ||
output = execSync(baseDiagnosticTscCmd, { | ||
cwd: packageDir, | ||
stdio: "pipe" | ||
}).toString() | ||
} catch (e: any) { | ||
@@ -21,0 +16,0 @@ output = e.stdout?.toString() ?? "" |
import { execSync } from "child_process" | ||
import { existsSync } from "fs" | ||
import { join } from "path" | ||
import { baseDiagnosticTscCmd } from "./shared.js" | ||
@@ -21,9 +22,6 @@ export const trace = async (args: string[]) => { | ||
// the types.json file can be used to associate IDs from the trace file with type aliases | ||
execSync( | ||
"pnpm tsc --noEmit --extendedDiagnostics --incremental false --generateTrace .tstrace", | ||
{ | ||
cwd: packageDir, | ||
stdio: "inherit" | ||
} | ||
) | ||
execSync(`${baseDiagnosticTscCmd} --generateTrace .tstrace`, { | ||
cwd: packageDir, | ||
stdio: "inherit" | ||
}) | ||
} catch (e) { | ||
@@ -30,0 +28,0 @@ console.error(String(e)) |
import { execSync } from "child_process"; | ||
import { rmSync } from "fs"; | ||
import { join } from "path"; | ||
import { baseDiagnosticTscCmd } from "./shared.js"; | ||
export const stats = (args) => { | ||
@@ -10,4 +9,3 @@ const packageDirs = args.length ? args : [process.cwd()]; | ||
try { | ||
rmSync(join(packageDir, "tsconfig.tsbuildinfo"), { force: true }); | ||
output = execSync("pnpm tsc --noEmit --extendedDiagnostics --incremental false", { | ||
output = execSync(baseDiagnosticTscCmd, { | ||
cwd: packageDir, | ||
@@ -14,0 +12,0 @@ stdio: "pipe" |
import { execSync } from "child_process"; | ||
import { existsSync } from "fs"; | ||
import { join } from "path"; | ||
import { baseDiagnosticTscCmd } from "./shared.js"; | ||
export const trace = async (args) => { | ||
@@ -16,3 +17,3 @@ const packageDir = args[0] ?? process.cwd(); | ||
// the types.json file can be used to associate IDs from the trace file with type aliases | ||
execSync("pnpm tsc --noEmit --extendedDiagnostics --incremental false --generateTrace .tstrace", { | ||
execSync(`${baseDiagnosticTscCmd} --generateTrace .tstrace`, { | ||
cwd: packageDir, | ||
@@ -19,0 +20,0 @@ stdio: "inherit" |
{ | ||
"name": "@arktype/attest", | ||
"version": "0.6.3", | ||
"version": "0.6.4", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "David Blass", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
422677
161
7
9468