tsdown-config-silverwind 1.6.0 → 1.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 -1
- package/dist/index.js +1 -15
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,26 +1,12 @@
|
|
|
1
1
|
import { fileURLToPath } from "node:url";
|
|
2
|
-
import { platform } from "node:os";
|
|
3
2
|
|
|
4
3
|
//#region index.ts
|
|
5
4
|
function isObject(obj) {
|
|
6
5
|
return Object.prototype.toString.call(obj) === "[object Object]";
|
|
7
6
|
}
|
|
8
|
-
function fixWindowsPath(entry) {
|
|
9
|
-
return entry.replaceAll("\\", "/");
|
|
10
|
-
}
|
|
11
|
-
function fixEntry(entry) {
|
|
12
|
-
if (!entry) return entry;
|
|
13
|
-
if (platform() !== "win32") return entry;
|
|
14
|
-
if (typeof entry === "string") return fixWindowsPath(entry);
|
|
15
|
-
else if (Array.isArray(entry)) return entry.map((entry$1) => fixWindowsPath(entry$1));
|
|
16
|
-
else if (isObject(entry)) return Object.fromEntries(Object.entries(entry).map(([key, value]) => {
|
|
17
|
-
return [key, fixWindowsPath(value)];
|
|
18
|
-
}));
|
|
19
|
-
else return entry;
|
|
20
|
-
}
|
|
21
7
|
function base({ url, entry, report, loader, outputOptions, ...other }) {
|
|
22
8
|
return {
|
|
23
|
-
entry:
|
|
9
|
+
entry: entry ?? fileURLToPath(new URL("index.ts", url)),
|
|
24
10
|
report: typeof report === "boolean" ? report : {
|
|
25
11
|
gzip: false,
|
|
26
12
|
brotli: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsdown-config-silverwind",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.2",
|
|
4
4
|
"description": "Shared tsdown configuration",
|
|
5
5
|
"author": "silverwind <me@silverwind.io>",
|
|
6
6
|
"repository": "silverwind/tsdown-config-silverwind",
|
|
@@ -17,16 +17,16 @@
|
|
|
17
17
|
"node": ">=20"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@types/node": "
|
|
21
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
22
|
-
"eslint": "9.39.
|
|
23
|
-
"eslint-config-silverwind": "
|
|
24
|
-
"tsdown": "0.
|
|
20
|
+
"@types/node": "25.0.6",
|
|
21
|
+
"@typescript/native-preview": "7.0.0-dev.20260112.1",
|
|
22
|
+
"eslint": "9.39.2",
|
|
23
|
+
"eslint-config-silverwind": "115.0.3",
|
|
24
|
+
"tsdown": "0.19.0",
|
|
25
25
|
"typescript": "5.9.3",
|
|
26
26
|
"typescript-config-silverwind": "14.0.0",
|
|
27
|
-
"updates": "17.0.
|
|
27
|
+
"updates": "17.0.7",
|
|
28
28
|
"versions": "14.0.3",
|
|
29
|
-
"vitest": "4.0.
|
|
30
|
-
"vitest-config-silverwind": "10.
|
|
29
|
+
"vitest": "4.0.16",
|
|
30
|
+
"vitest-config-silverwind": "10.5.0"
|
|
31
31
|
}
|
|
32
32
|
}
|