@absolutejs/absolute 0.19.0-beta.204 → 0.19.0-beta.206
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/dist/cli/index.js +8 -5
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -985,6 +985,7 @@ __export(exports_typecheck, {
|
|
|
985
985
|
});
|
|
986
986
|
import { resolve as resolve7, join as join7 } from "path";
|
|
987
987
|
import { existsSync as existsSync9 } from "fs";
|
|
988
|
+
import { writeFile } from "fs/promises";
|
|
988
989
|
var run = async (name, command) => {
|
|
989
990
|
const proc = Bun.spawn(command, {
|
|
990
991
|
stderr: "inherit",
|
|
@@ -1021,17 +1022,19 @@ var run = async (name, command) => {
|
|
|
1021
1022
|
]));
|
|
1022
1023
|
}
|
|
1023
1024
|
if (hasSvelte) {
|
|
1024
|
-
const
|
|
1025
|
+
const svelteTsconfigPath = join7(cacheDir, "tsconfig.svelte-check.json");
|
|
1026
|
+
await writeFile(svelteTsconfigPath, JSON.stringify({
|
|
1027
|
+
extends: resolve7("tsconfig.json"),
|
|
1028
|
+
include: [`../${config.svelteDirectory}/**/*`]
|
|
1029
|
+
}, null, "\t"));
|
|
1025
1030
|
checks.push(run("svelte-check", [
|
|
1026
1031
|
findBin("svelte-check"),
|
|
1027
1032
|
"--tsconfig",
|
|
1028
|
-
resolve7(
|
|
1033
|
+
resolve7(svelteTsconfigPath),
|
|
1029
1034
|
"--threshold",
|
|
1030
1035
|
"error",
|
|
1031
1036
|
"--compiler-warnings",
|
|
1032
|
-
"css-unused-selector:ignore"
|
|
1033
|
-
"--workspace",
|
|
1034
|
-
svelteDir
|
|
1037
|
+
"css-unused-selector:ignore"
|
|
1035
1038
|
]));
|
|
1036
1039
|
}
|
|
1037
1040
|
const results = await Promise.all(checks);
|
package/package.json
CHANGED