vitest-config-silverwind 10.6.0 → 10.6.2
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/index.d.ts +1 -2
- package/dist/index.js +10 -7
- package/package.json +19 -17
package/dist/index.d.ts
CHANGED
|
@@ -6,8 +6,7 @@ type VitestConfig = UserConfig & {
|
|
|
6
6
|
test?: InlineConfig;
|
|
7
7
|
};
|
|
8
8
|
type CustomConfig = VitestConfig & {
|
|
9
|
-
/** The value of import.meta.url from your config. */
|
|
10
|
-
url: string;
|
|
9
|
+
/** The value of import.meta.url from your config. */url: string;
|
|
11
10
|
};
|
|
12
11
|
declare const frontend: ({
|
|
13
12
|
test,
|
package/dist/index.js
CHANGED
|
@@ -8,13 +8,15 @@ import { readFile } from "node:fs/promises";
|
|
|
8
8
|
const stringPlugin = ({ match = /\.(svg|md|xml|txt)$/i } = {}) => ({
|
|
9
9
|
name: "vite-string-plugin",
|
|
10
10
|
enforce: "pre",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
load: {
|
|
12
|
+
filter: { id: match },
|
|
13
|
+
async handler(id) {
|
|
14
|
+
const path = id.split("?")[0];
|
|
15
|
+
return {
|
|
16
|
+
code: `export default ${JSON.stringify(await readFile(path, "utf8")).replace(/[\u2028\u2029]/g, (c) => `\\u${`000${c.charCodeAt(0).toString(16)}`.slice(-4)}`)};`,
|
|
17
|
+
map: { mappings: "" }
|
|
18
|
+
};
|
|
19
|
+
}
|
|
18
20
|
}
|
|
19
21
|
});
|
|
20
22
|
|
|
@@ -56,6 +58,7 @@ function base({ url, test: { setupFiles = [], ...otherTest } = {}, plugins = [],
|
|
|
56
58
|
exclude: ["**/{node_modules,dist,build,e2e,snapshots,fixtures,persistent}/**", "**/.{air,git,github,gitea,make,swc,ruff_cache,venv,vscode}/**"],
|
|
57
59
|
setupFiles: uniq([setupFile, ...setupFiles].filter(Boolean)),
|
|
58
60
|
testTimeout: 3e4,
|
|
61
|
+
isolate: false,
|
|
59
62
|
pool: "forks",
|
|
60
63
|
cache: false,
|
|
61
64
|
open: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vitest-config-silverwind",
|
|
3
|
-
"version": "10.6.
|
|
3
|
+
"version": "10.6.2",
|
|
4
4
|
"description": "Shared vitest configuration",
|
|
5
5
|
"author": "silverwind <me@silverwind.io>",
|
|
6
6
|
"repository": "silverwind/vitest-config-silverwind",
|
|
@@ -16,30 +16,32 @@
|
|
|
16
16
|
"engines": {
|
|
17
17
|
"node": ">=20"
|
|
18
18
|
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"happy-dom": "*",
|
|
21
|
+
"vitest": "*",
|
|
22
|
+
"vite": "*"
|
|
23
|
+
},
|
|
24
|
+
"peerDependenciesMeta": {
|
|
25
|
+
"happy-dom": {
|
|
26
|
+
"optional": true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
19
29
|
"dependencies": {
|
|
20
30
|
"jest-extended": "7.0.0"
|
|
21
31
|
},
|
|
22
32
|
"devDependencies": {
|
|
23
|
-
"@types/node": "25.0
|
|
33
|
+
"@types/node": "25.2.0",
|
|
24
34
|
"eslint": "9.39.2",
|
|
25
|
-
"eslint-config-silverwind": "
|
|
35
|
+
"eslint-config-silverwind": "120.0.1",
|
|
26
36
|
"js-yaml": "4.1.1",
|
|
27
|
-
"tsdown": "0.
|
|
28
|
-
"tsdown-config-silverwind": "1.
|
|
37
|
+
"tsdown": "0.20.1",
|
|
38
|
+
"tsdown-config-silverwind": "1.7.3",
|
|
29
39
|
"typescript": "5.9.3",
|
|
30
40
|
"typescript-config-silverwind": "14.0.0",
|
|
31
|
-
"updates": "17.0
|
|
32
|
-
"versions": "14.0
|
|
41
|
+
"updates": "17.1.0",
|
|
42
|
+
"versions": "14.1.0",
|
|
33
43
|
"vite-plugin-dts": "4.5.4",
|
|
34
|
-
"vite-string-plugin": "^
|
|
35
|
-
"vitest": "4.0.
|
|
36
|
-
},
|
|
37
|
-
"peerDependencies": {
|
|
38
|
-
"happy-dom": "*"
|
|
39
|
-
},
|
|
40
|
-
"peerDependenciesMeta": {
|
|
41
|
-
"happy-dom": {
|
|
42
|
-
"optional": true
|
|
43
|
-
}
|
|
44
|
+
"vite-string-plugin": "^2.0.0",
|
|
45
|
+
"vitest": "4.0.18"
|
|
44
46
|
}
|
|
45
47
|
}
|