tsdown-config-silverwind 1.1.0 → 1.2.1
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.js +13 -8
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
1
|
import { fileURLToPath } from "node:url";
|
|
2
|
+
import { platform } from "node:os";
|
|
2
3
|
|
|
3
4
|
//#region index.ts
|
|
4
|
-
const base = ({ url,...other }) =>
|
|
5
|
-
entry
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
const base = ({ url,...other }) => {
|
|
6
|
+
let entry = fileURLToPath(new URL("index.ts", url));
|
|
7
|
+
if (platform() === "win32") entry = entry.replaceAll("\\", "/");
|
|
8
|
+
return {
|
|
9
|
+
entry,
|
|
10
|
+
report: {
|
|
11
|
+
gzip: false,
|
|
12
|
+
brotli: false
|
|
13
|
+
},
|
|
14
|
+
...other
|
|
15
|
+
};
|
|
16
|
+
};
|
|
12
17
|
function nodeLib({ url,...other }) {
|
|
13
18
|
return base({
|
|
14
19
|
platform: "node",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tsdown-config-silverwind",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "1.2.1",
|
|
4
4
|
"description": "Shared tsdown configuration",
|
|
5
5
|
"author": "silverwind <me@silverwind.io>",
|
|
6
6
|
"repository": "silverwind/tsdown-config-silverwind",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
16
|
"engines": {
|
|
17
|
-
"node": ">=
|
|
17
|
+
"node": ">=20"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/node": "24.5.2",
|