tsdown-config-silverwind 1.6.3 → 1.7.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.d.ts CHANGED
@@ -14,7 +14,6 @@ declare function base({
14
14
  }: CustomConfig): UserConfig;
15
15
  declare function nodeLib({
16
16
  url,
17
- outputOptions,
18
17
  entry,
19
18
  ...other
20
19
  }: CustomConfig): UserConfig;
@@ -24,7 +23,6 @@ declare function webLib({
24
23
  }: CustomConfig): UserConfig;
25
24
  declare function nodeCli({
26
25
  url,
27
- outputOptions,
28
26
  entry,
29
27
  ...other
30
28
  }: CustomConfig): UserConfig;
package/dist/index.js CHANGED
@@ -4,11 +4,6 @@ import { fileURLToPath } from "node:url";
4
4
  function isObject(obj) {
5
5
  return Object.prototype.toString.call(obj) === "[object Object]";
6
6
  }
7
- function isSingleEntry(entry) {
8
- if (Array.isArray(entry)) return entry.length === 1;
9
- else if (isObject(entry)) return Object.keys(entry).length === 1;
10
- else return true;
11
- }
12
7
  function base({ url, entry, report, loader, outputOptions, ...other }) {
13
8
  return {
14
9
  entry: entry ?? fileURLToPath(new URL("index.ts", url)),
@@ -26,24 +21,22 @@ function base({ url, entry, report, loader, outputOptions, ...other }) {
26
21
  },
27
22
  outputOptions: {
28
23
  legalComments: "none",
24
+ codeSplitting: false,
29
25
  ...outputOptions
30
26
  },
31
27
  fixedExtension: false,
32
28
  failOnWarn: true,
33
29
  globImport: false,
30
+ inlineOnly: false,
34
31
  ...other
35
32
  };
36
33
  }
37
- function nodeLib({ url, outputOptions, entry, ...other }) {
34
+ function nodeLib({ url, entry, ...other }) {
38
35
  return base({
39
36
  entry,
40
37
  platform: "node",
41
38
  sourcemap: false,
42
39
  minify: false,
43
- outputOptions: {
44
- ...isSingleEntry(entry) && { inlineDynamicImports: true },
45
- ...outputOptions
46
- },
47
40
  url,
48
41
  ...other
49
42
  });
@@ -58,16 +51,12 @@ function webLib({ url, ...other }) {
58
51
  ...other
59
52
  });
60
53
  }
61
- function nodeCli({ url, outputOptions, entry, ...other }) {
54
+ function nodeCli({ url, entry, ...other }) {
62
55
  return nodeLib({
63
56
  entry,
64
57
  platform: "node",
65
58
  sourcemap: false,
66
59
  minify: true,
67
- outputOptions: {
68
- ...isSingleEntry(entry) && { inlineDynamicImports: true },
69
- ...outputOptions
70
- },
71
60
  url,
72
61
  ...other
73
62
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsdown-config-silverwind",
3
- "version": "1.6.3",
3
+ "version": "1.7.1",
4
4
  "description": "Shared tsdown configuration",
5
5
  "author": "silverwind <me@silverwind.io>",
6
6
  "repository": "silverwind/tsdown-config-silverwind",
@@ -16,17 +16,20 @@
16
16
  "engines": {
17
17
  "node": ">=20"
18
18
  },
19
+ "peerDependencies": {
20
+ "tsdown": "^0.20.1"
21
+ },
19
22
  "devDependencies": {
20
- "@types/node": "25.0.6",
21
- "@typescript/native-preview": "7.0.0-dev.20260112.1",
23
+ "@types/node": "25.0.10",
24
+ "@typescript/native-preview": "7.0.0-dev.20260122.4",
22
25
  "eslint": "9.39.2",
23
- "eslint-config-silverwind": "115.0.3",
24
- "tsdown": "0.19.0",
26
+ "eslint-config-silverwind": "117.0.3",
27
+ "tsdown": "0.20.1",
25
28
  "typescript": "5.9.3",
26
29
  "typescript-config-silverwind": "14.0.0",
27
- "updates": "17.0.7",
30
+ "updates": "17.0.8",
28
31
  "versions": "14.0.3",
29
- "vitest": "4.0.16",
30
- "vitest-config-silverwind": "10.5.0"
32
+ "vitest": "4.0.18",
33
+ "vitest-config-silverwind": "10.6.0"
31
34
  }
32
35
  }