@ark/attest 0.18.0 → 0.18.1

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
@@ -66,7 +66,7 @@ export const mochaGlobalTeardown = teardown
66
66
 
67
67
  You should also add `.attest` to your repository's `.gitignore` file.
68
68
 
69
- 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!
69
+ 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!
70
70
 
71
71
  ## Assertions
72
72
 
package/out/cli/trace.js CHANGED
@@ -4,8 +4,12 @@ import { resolve } from "path";
4
4
  import { getConfig } from "../config.js";
5
5
  import { baseDiagnosticTscCmd } from "./shared.js";
6
6
  export const trace = async (args) => {
7
- const packageDir = args[0] ?? process.cwd();
7
+ const packageDir = resolve(args[0] ?? process.cwd());
8
8
  const config = getConfig();
9
+ if (!config.tsconfig) {
10
+ console.error(`attest trace must be run from a directory with a tsconfig.json file`);
11
+ process.exit(1);
12
+ }
9
13
  const traceDir = resolve(config.cacheDir, "trace");
10
14
  ensureDir(traceDir);
11
15
  try {
@@ -15,7 +19,7 @@ export const trace = async (args) => {
15
19
  // the .attest/trace directory will contain a trace.json file and a types.json file.
16
20
  // the trace.json file can be viewed via a tool like https://ui.perfetto.dev/
17
21
  // the types.json file can be used to associate IDs from the trace file with type aliases
18
- execSync(`${baseDiagnosticTscCmd} --generateTrace ${traceDir}`, {
22
+ execSync(`${baseDiagnosticTscCmd} --project ${config.tsconfig} --generateTrace ${traceDir}`, {
19
23
  cwd: packageDir,
20
24
  stdio: "inherit"
21
25
  });
package/out/fixtures.js CHANGED
@@ -16,7 +16,7 @@ export const setup = (options) => {
16
16
  if (config.skipTypes)
17
17
  return teardown;
18
18
  if (config.tsVersions.length === 1 &&
19
- config.tsVersions[0].alias === "typescript")
19
+ config.tsVersions[0].alias === "default")
20
20
  writeAssertionData(config.defaultAssertionCachePath);
21
21
  else {
22
22
  forTypeScriptVersions(config.tsVersions, version => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ark/attest",
3
- "version": "0.18.0",
3
+ "version": "0.18.1",
4
4
  "author": {
5
5
  "name": "David Blass",
6
6
  "email": "david@arktype.io",
@@ -35,9 +35,9 @@
35
35
  "@typescript/analyze-trace": "0.10.1",
36
36
  "prettier": "3.3.3",
37
37
  "@prettier/sync": "0.5.2",
38
- "arktype": "2.0.0-rc.7",
39
- "@ark/util": "0.9.0",
40
- "@ark/fs": "0.9.0"
38
+ "arktype": "2.0.0-rc.8",
39
+ "@ark/fs": "0.10.0",
40
+ "@ark/util": "0.10.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "typescript": "5.6.2"