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.
Files changed (2) hide show
  1. package/dist/index.js +13 -8
  2. 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: fileURLToPath(new URL("index.ts", url)),
6
- report: {
7
- gzip: false,
8
- brotli: false
9
- },
10
- ...other
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.0",
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": ">=24"
17
+ "node": ">=20"
18
18
  },
19
19
  "devDependencies": {
20
20
  "@types/node": "24.5.2",