tsdown-config-silverwind 1.5.2 → 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.
Files changed (2) hide show
  1. package/dist/index.js +5 -4
  2. package/package.json +7 -7
package/dist/index.js CHANGED
@@ -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,...other }) {
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 : {
@@ -40,7 +41,7 @@ function base({ url, entry, report, loader, outputOptions,...other }) {
40
41
  ...other
41
42
  };
42
43
  }
43
- function nodeLib({ url,...other }) {
44
+ function nodeLib({ url, ...other }) {
44
45
  return base({
45
46
  platform: "node",
46
47
  sourcemap: false,
@@ -49,7 +50,7 @@ function nodeLib({ url,...other }) {
49
50
  ...other
50
51
  });
51
52
  }
52
- function webLib({ url,...other }) {
53
+ function webLib({ url, ...other }) {
53
54
  return base({
54
55
  platform: "browser",
55
56
  sourcemap: true,
@@ -58,7 +59,7 @@ function webLib({ url,...other }) {
58
59
  ...other
59
60
  });
60
61
  }
61
- function nodeCli({ url,...other }) {
62
+ function nodeCli({ url, ...other }) {
62
63
  return nodeLib({
63
64
  platform: "node",
64
65
  sourcemap: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsdown-config-silverwind",
3
- "version": "1.5.2",
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.0",
20
+ "@types/node": "24.10.1",
21
21
  "eslint": "9.39.1",
22
- "eslint-config-silverwind": "110.0.0",
23
- "tsdown": "0.16.0",
22
+ "eslint-config-silverwind": "111.0.8",
23
+ "tsdown": "0.16.5",
24
24
  "typescript": "5.9.3",
25
- "typescript-config-silverwind": "12.0.0",
25
+ "typescript-config-silverwind": "13.0.2",
26
26
  "updates": "16.9.1",
27
27
  "versions": "14.0.2",
28
- "vitest": "4.0.7",
29
- "vitest-config-silverwind": "10.4.0"
28
+ "vitest": "4.0.10",
29
+ "vitest-config-silverwind": "10.4.2"
30
30
  }
31
31
  }