tsdown-config-silverwind 1.5.1 → 1.5.3
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.
|
@@ -9,6 +9,7 @@ function fixWindowsPath(entry) {
|
|
|
9
9
|
return entry.replaceAll("\\", "/");
|
|
10
10
|
}
|
|
11
11
|
function fixEntry(entry) {
|
|
12
|
+
if (!entry) return entry;
|
|
12
13
|
if (platform() !== "win32") return entry;
|
|
13
14
|
if (typeof entry === "string") return fixWindowsPath(entry);
|
|
14
15
|
else if (Array.isArray(entry)) return entry.map((entry$1) => fixWindowsPath(entry$1));
|
|
@@ -17,7 +18,7 @@ function fixEntry(entry) {
|
|
|
17
18
|
}));
|
|
18
19
|
else return entry;
|
|
19
20
|
}
|
|
20
|
-
function base({ url, entry, report, loader, outputOptions
|
|
21
|
+
function base({ url, entry, report, loader, outputOptions, ...other }) {
|
|
21
22
|
return {
|
|
22
23
|
entry: fixEntry(entry ?? fileURLToPath(new URL("index.ts", url))),
|
|
23
24
|
report: typeof report === "boolean" ? report : {
|
|
@@ -36,10 +37,11 @@ function base({ url, entry, report, loader, outputOptions,...other }) {
|
|
|
36
37
|
legalComments: "none",
|
|
37
38
|
...outputOptions
|
|
38
39
|
},
|
|
40
|
+
fixedExtension: false,
|
|
39
41
|
...other
|
|
40
42
|
};
|
|
41
43
|
}
|
|
42
|
-
function nodeLib({ url
|
|
44
|
+
function nodeLib({ url, ...other }) {
|
|
43
45
|
return base({
|
|
44
46
|
platform: "node",
|
|
45
47
|
sourcemap: false,
|
|
@@ -48,7 +50,7 @@ function nodeLib({ url,...other }) {
|
|
|
48
50
|
...other
|
|
49
51
|
});
|
|
50
52
|
}
|
|
51
|
-
function webLib({ url
|
|
53
|
+
function webLib({ url, ...other }) {
|
|
52
54
|
return base({
|
|
53
55
|
platform: "browser",
|
|
54
56
|
sourcemap: true,
|
|
@@ -57,7 +59,7 @@ function webLib({ url,...other }) {
|
|
|
57
59
|
...other
|
|
58
60
|
});
|
|
59
61
|
}
|
|
60
|
-
function nodeCli({ url
|
|
62
|
+
function nodeCli({ url, ...other }) {
|
|
61
63
|
return nodeLib({
|
|
62
64
|
platform: "node",
|
|
63
65
|
sourcemap: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsdown-config-silverwind",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"description": "Shared tsdown configuration",
|
|
5
5
|
"author": "silverwind <me@silverwind.io>",
|
|
6
6
|
"repository": "silverwind/tsdown-config-silverwind",
|
|
@@ -17,15 +17,15 @@
|
|
|
17
17
|
"node": ">=20"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@types/node": "24.10.
|
|
20
|
+
"@types/node": "24.10.1",
|
|
21
21
|
"eslint": "9.39.1",
|
|
22
|
-
"eslint-config-silverwind": "
|
|
23
|
-
"tsdown": "0.16.
|
|
22
|
+
"eslint-config-silverwind": "111.0.8",
|
|
23
|
+
"tsdown": "0.16.5",
|
|
24
24
|
"typescript": "5.9.3",
|
|
25
|
-
"typescript-config-silverwind": "
|
|
25
|
+
"typescript-config-silverwind": "13.0.2",
|
|
26
26
|
"updates": "16.9.1",
|
|
27
27
|
"versions": "14.0.2",
|
|
28
|
-
"vitest": "4.0.
|
|
29
|
-
"vitest-config-silverwind": "10.4.
|
|
28
|
+
"vitest": "4.0.10",
|
|
29
|
+
"vitest-config-silverwind": "10.4.2"
|
|
30
30
|
}
|
|
31
31
|
}
|
|
File without changes
|