tsdown-config-silverwind 1.7.5 → 2.0.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
@@ -10,6 +10,7 @@ declare function base({
10
10
  report,
11
11
  loader,
12
12
  outputOptions,
13
+ deps,
13
14
  ...other
14
15
  }: CustomConfig): UserConfig;
15
16
  declare function nodeLib({
package/dist/index.js CHANGED
@@ -9,7 +9,7 @@ function isSingleEntry(entry) {
9
9
  else if (isObject(entry)) return Object.keys(entry).length === 1;
10
10
  else return true;
11
11
  }
12
- function base({ url, entry, report, loader, outputOptions, ...other }) {
12
+ function base({ url, entry, report, loader, outputOptions, deps, ...other }) {
13
13
  return {
14
14
  entry: entry ?? fileURLToPath(new URL("index.ts", url)),
15
15
  report: typeof report === "boolean" ? report : {
@@ -25,13 +25,16 @@ function base({ url, entry, report, loader, outputOptions, ...other }) {
25
25
  ...loader
26
26
  },
27
27
  outputOptions: {
28
- legalComments: "none",
29
- ...outputOptions
28
+ comments: { legal: false },
29
+ ...isObject(outputOptions) && outputOptions
30
30
  },
31
31
  fixedExtension: false,
32
32
  failOnWarn: true,
33
33
  globImport: false,
34
- inlineOnly: false,
34
+ deps: {
35
+ onlyBundle: false,
36
+ ...deps
37
+ },
35
38
  ...other
36
39
  };
37
40
  }
@@ -43,7 +46,7 @@ function nodeLib({ url, entry, outputOptions, ...other }) {
43
46
  minify: false,
44
47
  outputOptions: {
45
48
  ...isSingleEntry(entry) && { codeSplitting: false },
46
- ...outputOptions
49
+ ...isObject(outputOptions) && outputOptions
47
50
  },
48
51
  url,
49
52
  ...other
@@ -67,7 +70,7 @@ function nodeCli({ url, entry, outputOptions, ...other }) {
67
70
  minify: true,
68
71
  outputOptions: {
69
72
  ...isSingleEntry(entry) && { codeSplitting: false },
70
- ...outputOptions
73
+ ...isObject(outputOptions) && outputOptions
71
74
  },
72
75
  url,
73
76
  ...other
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsdown-config-silverwind",
3
- "version": "1.7.5",
3
+ "version": "2.0.1",
4
4
  "description": "Shared tsdown configuration",
5
5
  "author": "silverwind <me@silverwind.io>",
6
6
  "repository": "silverwind/tsdown-config-silverwind",
@@ -20,17 +20,18 @@
20
20
  "tsdown": "*"
21
21
  },
22
22
  "devDependencies": {
23
- "@types/node": "25.2.0",
24
- "@typescript/native-preview": "7.0.0-dev.20260203.1",
25
- "eslint": "9.39.2",
26
- "eslint-config-silverwind": "120.1.2",
23
+ "@types/node": "25.4.0",
24
+ "@typescript/native-preview": "7.0.0-dev.20260311.1",
25
+ "eslint": "9.39.4",
26
+ "eslint-config-silverwind": "124.0.7",
27
27
  "jest-extended": "7.0.0",
28
- "tsdown": "0.20.1",
28
+ "tsdown": "0.21.2",
29
29
  "typescript": "5.9.3",
30
- "typescript-config-silverwind": "14.0.0",
31
- "updates": "17.1.0",
32
- "versions": "14.1.0",
30
+ "typescript-config-silverwind": "15.0.0",
31
+ "updates": "17.9.0",
32
+ "updates-config-silverwind": "1.0.3",
33
+ "versions": "14.2.1",
33
34
  "vitest": "4.0.18",
34
- "vitest-config-silverwind": "10.6.1"
35
+ "vitest-config-silverwind": "10.6.3"
35
36
  }
36
37
  }