@arktype/attest
Advanced tools
Comparing version 0.18.0 to 0.18.1
@@ -7,4 +7,8 @@ import { ensureDir } from "@ark/fs"; | ||
export const trace = async (args) => { | ||
const packageDir = args[0] ?? process.cwd(); | ||
const packageDir = resolve(args[0] ?? process.cwd()); | ||
const config = getConfig(); | ||
if (!config.tsconfig) { | ||
console.error(`attest trace must be run from a directory with a tsconfig.json file`); | ||
process.exit(1); | ||
} | ||
const traceDir = resolve(config.cacheDir, "trace"); | ||
@@ -19,3 +23,3 @@ ensureDir(traceDir); | ||
// the types.json file can be used to associate IDs from the trace file with type aliases | ||
execSync(`${baseDiagnosticTscCmd} --generateTrace ${traceDir}`, { | ||
execSync(`${baseDiagnosticTscCmd} --project ${config.tsconfig} --generateTrace ${traceDir}`, { | ||
cwd: packageDir, | ||
@@ -22,0 +26,0 @@ stdio: "inherit" |
@@ -19,3 +19,3 @@ import { fileName, shell, writeJson } from "@ark/fs"; | ||
if (config.tsVersions.length === 1 && | ||
config.tsVersions[0].alias === "typescript") | ||
config.tsVersions[0].alias === "default") | ||
writeAssertionData(config.defaultAssertionCachePath); | ||
@@ -22,0 +22,0 @@ else { |
{ | ||
"name": "@arktype/attest", | ||
"version": "0.18.0", | ||
"version": "0.18.1", | ||
"author": { | ||
@@ -38,5 +38,5 @@ "name": "David Blass", | ||
"@prettier/sync": "0.5.2", | ||
"@ark/fs": "0.9.0", | ||
"@ark/util": "0.9.0", | ||
"arktype": "2.0.0-rc.7" | ||
"@ark/util": "0.10.0", | ||
"@ark/fs": "0.10.0", | ||
"arktype": "2.0.0-rc.8" | ||
}, | ||
@@ -43,0 +43,0 @@ "devDependencies": { |
@@ -69,3 +69,3 @@ # Attest | ||
Bun support is currently pending a [bug in the way their source maps translate to stack traces](https://github.com/oven-sh/bun/issues/7120). If this is a problem for you, please 👍 that issue so they prioritize it! | ||
Bun support is currently pending [them supporting @prettier/sync for type formatting](https://github.com/oven-sh/bun/issues/10768). If this is a problem for you, please 👍 that issue so they prioritize it! | ||
@@ -72,0 +72,0 @@ ## Assertions |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
139840
4330
+ Added@ark/fs@0.10.0(transitive)
+ Added@ark/schema@0.10.0(transitive)
+ Added@ark/util@0.10.0(transitive)
+ Addedarktype@2.0.0-rc.8(transitive)
- Removed@ark/fs@0.9.0(transitive)
- Removed@ark/schema@0.9.0(transitive)
- Removed@ark/util@0.9.0(transitive)
- Removedarktype@2.0.0-rc.7(transitive)
Updated@ark/fs@0.10.0
Updated@ark/util@0.10.0
Updatedarktype@2.0.0-rc.8