@ark/attest 0.50.0 → 0.51.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/out/cache/ts.js +3 -2
- package/package.json +4 -4
package/out/cache/ts.js
CHANGED
|
@@ -2,7 +2,7 @@ import { fromCwd, readFile } from "@ark/fs";
|
|
|
2
2
|
import { printable, throwError, throwInternalError } from "@ark/util";
|
|
3
3
|
import * as tsvfs from "@typescript/vfs";
|
|
4
4
|
import { readFileSync } from "node:fs";
|
|
5
|
-
import { dirname, join } from "node:path";
|
|
5
|
+
import { resolve, dirname, join } from "node:path";
|
|
6
6
|
import ts from "typescript";
|
|
7
7
|
import { getConfig } from "../config.js";
|
|
8
8
|
export class TsServer {
|
|
@@ -110,7 +110,8 @@ const instantiateTsconfigFromPath = (path) => {
|
|
|
110
110
|
throwConfigParseError(result.error);
|
|
111
111
|
const rawConfig = result.config;
|
|
112
112
|
rawConfig.compilerOptions = Object.assign(rawConfig.compilerOptions ?? {}, arkConfig.compilerOptions);
|
|
113
|
-
const
|
|
113
|
+
const configPath = resolve(path);
|
|
114
|
+
const instantiatedConfig = ts.parseJsonConfigFileContent(rawConfig, ts.sys, dirname(configPath), {}, configPath);
|
|
114
115
|
if (instantiatedConfig.errors.length > 0)
|
|
115
116
|
throwConfigInstantiationError(instantiatedConfig);
|
|
116
117
|
return instantiatedConfig;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ark/attest",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "David Blass",
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"@typescript/analyze-trace": "0.10.1",
|
|
37
37
|
"@typescript/vfs": "1.6.1",
|
|
38
38
|
"prettier": "3.6.2",
|
|
39
|
-
"@ark/fs": "0.
|
|
40
|
-
"
|
|
41
|
-
"
|
|
39
|
+
"@ark/fs": "0.51.0",
|
|
40
|
+
"arktype": "2.1.23",
|
|
41
|
+
"@ark/util": "0.51.0"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"typescript": "5.9.3"
|