@kcconfigs/tsdown 0.1.0-beta.0 → 0.1.0-beta.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/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.0-beta.1](https://github.com/kc-workspace/kcws/compare/@kcconfigs/tsdown#v0.1.0-beta.0...@kcconfigs/tsdown+v0.1.0-beta.1) (2025-12-28)
4
+
5
+
6
+ ### Bugfixes
7
+
8
+ * **kcconfigs/tsdown:** use outputOptions.postBanner and postFooter instead ([89c8369](https://github.com/kc-workspace/kcws/commit/89c836950926fa04db5f5007fa0274f128ee18bb))
9
+ * update all [@kcconfigs](https://github.com/kcconfigs) description so it trigger new deployment with new tag separator ([cf5be8c](https://github.com/kc-workspace/kcws/commit/cf5be8cc02fba8becb7e8f31fd6f3a741c0f0b95))
10
+
11
+
12
+ ### Dependencies
13
+
14
+ * The following workspace dependencies were updated
15
+ * devDependencies
16
+ * @kcconfigs/biome bumped to 0.1.1
17
+ * @kcconfigs/tsconfig bumped to 0.1.0-beta.1
18
+
3
19
  ## 0.1.0-beta.0 (2025-12-26)
4
20
 
5
21
 
package/dist/index.cjs CHANGED
@@ -25,20 +25,26 @@ const defineConfig = (config, ...configs) => {
25
25
  if (_format === void 0 || _format === null) _format = {
26
26
  esm: {
27
27
  sourcemap: true,
28
- banner,
29
- footer
28
+ outputOptions: {
29
+ postBanner: banner,
30
+ postFooter: footer
31
+ }
30
32
  },
31
33
  cjs: {
32
34
  sourcemap: true,
33
- banner,
34
- footer
35
+ outputOptions: {
36
+ postBanner: banner,
37
+ postFooter: footer
38
+ }
35
39
  }
36
40
  };
37
41
  else if (Array.isArray(_format)) _format = _format.reduce((obj, fmt) => {
38
42
  obj[fmt] = {
39
43
  sourcemap: true,
40
- banner,
41
- footer
44
+ outputOptions: {
45
+ postBanner: banner,
46
+ postFooter: footer
47
+ }
42
48
  };
43
49
  return obj;
44
50
  }, {});
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import {\n\tdefineConfig as _defineConfig,\n\ttype UserConfig as _UserConfig,\n} from \"tsdown\";\n\n/**\n * @public Custom User Config exported from defineConfig function\n */\nexport type UserConfig = _UserConfig[];\n\n/**\n * @public Defines the configuration for tsdown.\n * @param configs UserConfig for tsdown\n * @returns The merged UserConfig\n */\nexport const defineConfig = (\n\tconfig?: _UserConfig,\n\t...configs: UserConfig\n): UserConfig => {\n\tconst { format, dts, ...rest } = config ?? ({} as _UserConfig);\n\n\tlet _dts = dts;\n\tif (_dts === undefined || _dts === null) {\n\t\t_dts = {\n\t\t\tsourcemap: true,\n\t\t\tresolve: false,\n\t\t};\n\t} else if (typeof _dts === \"object\") {\n\t\t_dts.sourcemap ??= true;\n\t\t_dts.resolve = false;\n\t}\n\n\tconst banner = \"// @generated by tsdown, DO NOT edit it manually\";\n\tconst footer = \"// Generated by @kcconfigs/tsdown\";\n\tlet _format = format;\n\tif (_format === undefined || _format === null) {\n\t\t_format = {\n\t\t\tesm: {\n\t\t\t\tsourcemap: true,\n\t\t\t\tbanner,\n\t\t\t\tfooter,\n\t\t\t},\n\t\t\tcjs: {\n\t\t\t\tsourcemap: true,\n\t\t\t\tbanner,\n\t\t\t\tfooter,\n\t\t\t},\n\t\t};\n\t} else if (Array.isArray(_format)) {\n\t\t_format = _format.reduce(\n\t\t\t(obj, fmt) => {\n\t\t\t\tobj[fmt] = {\n\t\t\t\t\tsourcemap: true,\n\t\t\t\t\tbanner,\n\t\t\t\t\tfooter,\n\t\t\t\t};\n\t\t\t\treturn obj;\n\t\t\t},\n\t\t\t{} as Exclude<_UserConfig[\"format\"], undefined | string | Array<unknown>>,\n\t\t);\n\t} else if (typeof _format === \"object\") {\n\t\t_format = Object.fromEntries(\n\t\t\tObject.entries(_format).map(([key, value]) => {\n\t\t\t\treturn [key, { sourcemap: true, footer, ...value }];\n\t\t\t}),\n\t\t);\n\t}\n\n\tconst baseConfig: _UserConfig = {\n\t\tentry: [\"./src/index.ts\"],\n\t\tplatform: \"neutral\",\n\t\tfixedExtension: false,\n\t\toutDir: \"dist\",\n\t\tclean: true,\n\t\tpublint: {\n\t\t\tenabled: true,\n\t\t\tlevel: \"warning\",\n\t\t},\n\t\tunused: {\n\t\t\tenabled: true,\n\t\t\tlevel: \"warning\",\n\t\t\tdepKinds: [\"dependencies\", \"peerDependencies\"],\n\t\t},\n\t\tattw: {\n\t\t\tenabled: true,\n\t\t\tlevel: \"error\",\n\t\t\t// We don't build package for node older than 10\n\t\t\t// https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/NoResolution.md#true-positive-node-10-doesnt-support-packagejson-exports\n\t\t\tprofile: \"node16\",\n\t\t},\n\t\tformat: _format,\n\t\tdts: _dts,\n\t\t...rest,\n\t};\n\n\treturn _defineConfig([baseConfig].concat(...configs));\n};\n"],"mappings":";;;;;;;;;AAeA,MAAa,gBACZ,QACA,GAAG,YACa;CAChB,MAAM,EAAE,QAAQ,KAAK,GAAG,SAAS,UAAW,EAAE;CAE9C,IAAI,OAAO;AACX,KAAI,SAAS,UAAa,SAAS,KAClC,QAAO;EACN,WAAW;EACX,SAAS;EACT;UACS,OAAO,SAAS,UAAU;;AACpC,iBAAK,gCAAc;AACnB,OAAK,UAAU;;CAGhB,MAAM,SAAS;CACf,MAAM,SAAS;CACf,IAAI,UAAU;AACd,KAAI,YAAY,UAAa,YAAY,KACxC,WAAU;EACT,KAAK;GACJ,WAAW;GACX;GACA;GACA;EACD,KAAK;GACJ,WAAW;GACX;GACA;GACA;EACD;UACS,MAAM,QAAQ,QAAQ,CAChC,WAAU,QAAQ,QAChB,KAAK,QAAQ;AACb,MAAI,OAAO;GACV,WAAW;GACX;GACA;GACA;AACD,SAAO;IAER,EAAE,CACF;UACS,OAAO,YAAY,SAC7B,WAAU,OAAO,YAChB,OAAO,QAAQ,QAAQ,CAAC,KAAK,CAAC,KAAK,WAAW;AAC7C,SAAO,CAAC,KAAK;GAAE,WAAW;GAAM;GAAQ,GAAG;GAAO,CAAC;GAClD,CACF;AA8BF,iCAAqB,CA3BW;EAC/B,OAAO,CAAC,iBAAiB;EACzB,UAAU;EACV,gBAAgB;EAChB,QAAQ;EACR,OAAO;EACP,SAAS;GACR,SAAS;GACT,OAAO;GACP;EACD,QAAQ;GACP,SAAS;GACT,OAAO;GACP,UAAU,CAAC,gBAAgB,mBAAmB;GAC9C;EACD,MAAM;GACL,SAAS;GACT,OAAO;GAGP,SAAS;GACT;EACD,QAAQ;EACR,KAAK;EACL,GAAG;EACH,CAEgC,CAAC,OAAO,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import {\n\tdefineConfig as _defineConfig,\n\ttype UserConfig as _UserConfig,\n} from \"tsdown\";\n\n/**\n * @public Custom User Config exported from defineConfig function\n */\nexport type UserConfig = _UserConfig[];\n\n/**\n * @public Defines the configuration for tsdown.\n * @param configs UserConfig for tsdown\n * @returns The merged UserConfig\n */\nexport const defineConfig = (\n\tconfig?: _UserConfig,\n\t...configs: UserConfig\n): UserConfig => {\n\tconst { format, dts, ...rest } = config ?? ({} as _UserConfig);\n\n\tlet _dts = dts;\n\tif (_dts === undefined || _dts === null) {\n\t\t_dts = {\n\t\t\tsourcemap: true,\n\t\t\tresolve: false,\n\t\t};\n\t} else if (typeof _dts === \"object\") {\n\t\t_dts.sourcemap ??= true;\n\t\t_dts.resolve = false;\n\t}\n\n\tconst banner = \"// @generated by tsdown, DO NOT edit it manually\";\n\tconst footer = \"// Generated by @kcconfigs/tsdown\";\n\tlet _format = format;\n\tif (_format === undefined || _format === null) {\n\t\t_format = {\n\t\t\tesm: {\n\t\t\t\tsourcemap: true,\n\t\t\t\toutputOptions: {\n\t\t\t\t\tpostBanner: banner,\n\t\t\t\t\tpostFooter: footer,\n\t\t\t\t},\n\t\t\t},\n\t\t\tcjs: {\n\t\t\t\tsourcemap: true,\n\t\t\t\toutputOptions: {\n\t\t\t\t\tpostBanner: banner,\n\t\t\t\t\tpostFooter: footer,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t} else if (Array.isArray(_format)) {\n\t\t_format = _format.reduce(\n\t\t\t(obj, fmt) => {\n\t\t\t\tobj[fmt] = {\n\t\t\t\t\tsourcemap: true,\n\t\t\t\t\toutputOptions: {\n\t\t\t\t\t\tpostBanner: banner,\n\t\t\t\t\t\tpostFooter: footer,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t\treturn obj;\n\t\t\t},\n\t\t\t{} as Exclude<_UserConfig[\"format\"], undefined | string | Array<unknown>>,\n\t\t);\n\t} else if (typeof _format === \"object\") {\n\t\t_format = Object.fromEntries(\n\t\t\tObject.entries(_format).map(([key, value]) => {\n\t\t\t\treturn [key, { sourcemap: true, footer, ...value }];\n\t\t\t}),\n\t\t);\n\t}\n\n\tconst baseConfig: _UserConfig = {\n\t\tentry: [\"./src/index.ts\"],\n\t\tplatform: \"neutral\",\n\t\tfixedExtension: false,\n\t\toutDir: \"dist\",\n\t\tclean: true,\n\t\tpublint: {\n\t\t\tenabled: true,\n\t\t\tlevel: \"warning\",\n\t\t},\n\t\tunused: {\n\t\t\tenabled: true,\n\t\t\tlevel: \"warning\",\n\t\t\tdepKinds: [\"dependencies\", \"peerDependencies\"],\n\t\t},\n\t\tattw: {\n\t\t\tenabled: true,\n\t\t\tlevel: \"error\",\n\t\t\t// We don't build package for node older than 10\n\t\t\t// https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/NoResolution.md#true-positive-node-10-doesnt-support-packagejson-exports\n\t\t\tprofile: \"node16\",\n\t\t},\n\t\tformat: _format,\n\t\tdts: _dts,\n\t\t...rest,\n\t};\n\n\treturn _defineConfig([baseConfig].concat(...configs));\n};\n"],"mappings":";;;;;;;;;AAeA,MAAa,gBACZ,QACA,GAAG,YACa;CAChB,MAAM,EAAE,QAAQ,KAAK,GAAG,SAAS,UAAW,EAAE;CAE9C,IAAI,OAAO;AACX,KAAI,SAAS,UAAa,SAAS,KAClC,QAAO;EACN,WAAW;EACX,SAAS;EACT;UACS,OAAO,SAAS,UAAU;;AACpC,iBAAK,gCAAc;AACnB,OAAK,UAAU;;CAGhB,MAAM,SAAS;CACf,MAAM,SAAS;CACf,IAAI,UAAU;AACd,KAAI,YAAY,UAAa,YAAY,KACxC,WAAU;EACT,KAAK;GACJ,WAAW;GACX,eAAe;IACd,YAAY;IACZ,YAAY;IACZ;GACD;EACD,KAAK;GACJ,WAAW;GACX,eAAe;IACd,YAAY;IACZ,YAAY;IACZ;GACD;EACD;UACS,MAAM,QAAQ,QAAQ,CAChC,WAAU,QAAQ,QAChB,KAAK,QAAQ;AACb,MAAI,OAAO;GACV,WAAW;GACX,eAAe;IACd,YAAY;IACZ,YAAY;IACZ;GACD;AACD,SAAO;IAER,EAAE,CACF;UACS,OAAO,YAAY,SAC7B,WAAU,OAAO,YAChB,OAAO,QAAQ,QAAQ,CAAC,KAAK,CAAC,KAAK,WAAW;AAC7C,SAAO,CAAC,KAAK;GAAE,WAAW;GAAM;GAAQ,GAAG;GAAO,CAAC;GAClD,CACF;AA8BF,iCAAqB,CA3BW;EAC/B,OAAO,CAAC,iBAAiB;EACzB,UAAU;EACV,gBAAgB;EAChB,QAAQ;EACR,OAAO;EACP,SAAS;GACR,SAAS;GACT,OAAO;GACP;EACD,QAAQ;GACP,SAAS;GACT,OAAO;GACP,UAAU,CAAC,gBAAgB,mBAAmB;GAC9C;EACD,MAAM;GACL,SAAS;GACT,OAAO;GAGP,SAAS;GACT;EACD,QAAQ;EACR,KAAK;EACL,GAAG;EACH,CAEgC,CAAC,OAAO,GAAG,QAAQ,CAAC"}
package/dist/index.js CHANGED
@@ -25,20 +25,26 @@ const defineConfig = (config, ...configs) => {
25
25
  if (_format === void 0 || _format === null) _format = {
26
26
  esm: {
27
27
  sourcemap: true,
28
- banner,
29
- footer
28
+ outputOptions: {
29
+ postBanner: banner,
30
+ postFooter: footer
31
+ }
30
32
  },
31
33
  cjs: {
32
34
  sourcemap: true,
33
- banner,
34
- footer
35
+ outputOptions: {
36
+ postBanner: banner,
37
+ postFooter: footer
38
+ }
35
39
  }
36
40
  };
37
41
  else if (Array.isArray(_format)) _format = _format.reduce((obj, fmt) => {
38
42
  obj[fmt] = {
39
43
  sourcemap: true,
40
- banner,
41
- footer
44
+ outputOptions: {
45
+ postBanner: banner,
46
+ postFooter: footer
47
+ }
42
48
  };
43
49
  return obj;
44
50
  }, {});
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_defineConfig"],"sources":["../src/index.ts"],"sourcesContent":["import {\n\tdefineConfig as _defineConfig,\n\ttype UserConfig as _UserConfig,\n} from \"tsdown\";\n\n/**\n * @public Custom User Config exported from defineConfig function\n */\nexport type UserConfig = _UserConfig[];\n\n/**\n * @public Defines the configuration for tsdown.\n * @param configs UserConfig for tsdown\n * @returns The merged UserConfig\n */\nexport const defineConfig = (\n\tconfig?: _UserConfig,\n\t...configs: UserConfig\n): UserConfig => {\n\tconst { format, dts, ...rest } = config ?? ({} as _UserConfig);\n\n\tlet _dts = dts;\n\tif (_dts === undefined || _dts === null) {\n\t\t_dts = {\n\t\t\tsourcemap: true,\n\t\t\tresolve: false,\n\t\t};\n\t} else if (typeof _dts === \"object\") {\n\t\t_dts.sourcemap ??= true;\n\t\t_dts.resolve = false;\n\t}\n\n\tconst banner = \"// @generated by tsdown, DO NOT edit it manually\";\n\tconst footer = \"// Generated by @kcconfigs/tsdown\";\n\tlet _format = format;\n\tif (_format === undefined || _format === null) {\n\t\t_format = {\n\t\t\tesm: {\n\t\t\t\tsourcemap: true,\n\t\t\t\tbanner,\n\t\t\t\tfooter,\n\t\t\t},\n\t\t\tcjs: {\n\t\t\t\tsourcemap: true,\n\t\t\t\tbanner,\n\t\t\t\tfooter,\n\t\t\t},\n\t\t};\n\t} else if (Array.isArray(_format)) {\n\t\t_format = _format.reduce(\n\t\t\t(obj, fmt) => {\n\t\t\t\tobj[fmt] = {\n\t\t\t\t\tsourcemap: true,\n\t\t\t\t\tbanner,\n\t\t\t\t\tfooter,\n\t\t\t\t};\n\t\t\t\treturn obj;\n\t\t\t},\n\t\t\t{} as Exclude<_UserConfig[\"format\"], undefined | string | Array<unknown>>,\n\t\t);\n\t} else if (typeof _format === \"object\") {\n\t\t_format = Object.fromEntries(\n\t\t\tObject.entries(_format).map(([key, value]) => {\n\t\t\t\treturn [key, { sourcemap: true, footer, ...value }];\n\t\t\t}),\n\t\t);\n\t}\n\n\tconst baseConfig: _UserConfig = {\n\t\tentry: [\"./src/index.ts\"],\n\t\tplatform: \"neutral\",\n\t\tfixedExtension: false,\n\t\toutDir: \"dist\",\n\t\tclean: true,\n\t\tpublint: {\n\t\t\tenabled: true,\n\t\t\tlevel: \"warning\",\n\t\t},\n\t\tunused: {\n\t\t\tenabled: true,\n\t\t\tlevel: \"warning\",\n\t\t\tdepKinds: [\"dependencies\", \"peerDependencies\"],\n\t\t},\n\t\tattw: {\n\t\t\tenabled: true,\n\t\t\tlevel: \"error\",\n\t\t\t// We don't build package for node older than 10\n\t\t\t// https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/NoResolution.md#true-positive-node-10-doesnt-support-packagejson-exports\n\t\t\tprofile: \"node16\",\n\t\t},\n\t\tformat: _format,\n\t\tdts: _dts,\n\t\t...rest,\n\t};\n\n\treturn _defineConfig([baseConfig].concat(...configs));\n};\n"],"mappings":";;;;;;;;;AAeA,MAAa,gBACZ,QACA,GAAG,YACa;CAChB,MAAM,EAAE,QAAQ,KAAK,GAAG,SAAS,UAAW,EAAE;CAE9C,IAAI,OAAO;AACX,KAAI,SAAS,UAAa,SAAS,KAClC,QAAO;EACN,WAAW;EACX,SAAS;EACT;UACS,OAAO,SAAS,UAAU;;AACpC,iBAAK,gCAAc;AACnB,OAAK,UAAU;;CAGhB,MAAM,SAAS;CACf,MAAM,SAAS;CACf,IAAI,UAAU;AACd,KAAI,YAAY,UAAa,YAAY,KACxC,WAAU;EACT,KAAK;GACJ,WAAW;GACX;GACA;GACA;EACD,KAAK;GACJ,WAAW;GACX;GACA;GACA;EACD;UACS,MAAM,QAAQ,QAAQ,CAChC,WAAU,QAAQ,QAChB,KAAK,QAAQ;AACb,MAAI,OAAO;GACV,WAAW;GACX;GACA;GACA;AACD,SAAO;IAER,EAAE,CACF;UACS,OAAO,YAAY,SAC7B,WAAU,OAAO,YAChB,OAAO,QAAQ,QAAQ,CAAC,KAAK,CAAC,KAAK,WAAW;AAC7C,SAAO,CAAC,KAAK;GAAE,WAAW;GAAM;GAAQ,GAAG;GAAO,CAAC;GAClD,CACF;AA8BF,QAAOA,eAAc,CA3BW;EAC/B,OAAO,CAAC,iBAAiB;EACzB,UAAU;EACV,gBAAgB;EAChB,QAAQ;EACR,OAAO;EACP,SAAS;GACR,SAAS;GACT,OAAO;GACP;EACD,QAAQ;GACP,SAAS;GACT,OAAO;GACP,UAAU,CAAC,gBAAgB,mBAAmB;GAC9C;EACD,MAAM;GACL,SAAS;GACT,OAAO;GAGP,SAAS;GACT;EACD,QAAQ;EACR,KAAK;EACL,GAAG;EACH,CAEgC,CAAC,OAAO,GAAG,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.js","names":["_defineConfig"],"sources":["../src/index.ts"],"sourcesContent":["import {\n\tdefineConfig as _defineConfig,\n\ttype UserConfig as _UserConfig,\n} from \"tsdown\";\n\n/**\n * @public Custom User Config exported from defineConfig function\n */\nexport type UserConfig = _UserConfig[];\n\n/**\n * @public Defines the configuration for tsdown.\n * @param configs UserConfig for tsdown\n * @returns The merged UserConfig\n */\nexport const defineConfig = (\n\tconfig?: _UserConfig,\n\t...configs: UserConfig\n): UserConfig => {\n\tconst { format, dts, ...rest } = config ?? ({} as _UserConfig);\n\n\tlet _dts = dts;\n\tif (_dts === undefined || _dts === null) {\n\t\t_dts = {\n\t\t\tsourcemap: true,\n\t\t\tresolve: false,\n\t\t};\n\t} else if (typeof _dts === \"object\") {\n\t\t_dts.sourcemap ??= true;\n\t\t_dts.resolve = false;\n\t}\n\n\tconst banner = \"// @generated by tsdown, DO NOT edit it manually\";\n\tconst footer = \"// Generated by @kcconfigs/tsdown\";\n\tlet _format = format;\n\tif (_format === undefined || _format === null) {\n\t\t_format = {\n\t\t\tesm: {\n\t\t\t\tsourcemap: true,\n\t\t\t\toutputOptions: {\n\t\t\t\t\tpostBanner: banner,\n\t\t\t\t\tpostFooter: footer,\n\t\t\t\t},\n\t\t\t},\n\t\t\tcjs: {\n\t\t\t\tsourcemap: true,\n\t\t\t\toutputOptions: {\n\t\t\t\t\tpostBanner: banner,\n\t\t\t\t\tpostFooter: footer,\n\t\t\t\t},\n\t\t\t},\n\t\t};\n\t} else if (Array.isArray(_format)) {\n\t\t_format = _format.reduce(\n\t\t\t(obj, fmt) => {\n\t\t\t\tobj[fmt] = {\n\t\t\t\t\tsourcemap: true,\n\t\t\t\t\toutputOptions: {\n\t\t\t\t\t\tpostBanner: banner,\n\t\t\t\t\t\tpostFooter: footer,\n\t\t\t\t\t},\n\t\t\t\t};\n\t\t\t\treturn obj;\n\t\t\t},\n\t\t\t{} as Exclude<_UserConfig[\"format\"], undefined | string | Array<unknown>>,\n\t\t);\n\t} else if (typeof _format === \"object\") {\n\t\t_format = Object.fromEntries(\n\t\t\tObject.entries(_format).map(([key, value]) => {\n\t\t\t\treturn [key, { sourcemap: true, footer, ...value }];\n\t\t\t}),\n\t\t);\n\t}\n\n\tconst baseConfig: _UserConfig = {\n\t\tentry: [\"./src/index.ts\"],\n\t\tplatform: \"neutral\",\n\t\tfixedExtension: false,\n\t\toutDir: \"dist\",\n\t\tclean: true,\n\t\tpublint: {\n\t\t\tenabled: true,\n\t\t\tlevel: \"warning\",\n\t\t},\n\t\tunused: {\n\t\t\tenabled: true,\n\t\t\tlevel: \"warning\",\n\t\t\tdepKinds: [\"dependencies\", \"peerDependencies\"],\n\t\t},\n\t\tattw: {\n\t\t\tenabled: true,\n\t\t\tlevel: \"error\",\n\t\t\t// We don't build package for node older than 10\n\t\t\t// https://github.com/arethetypeswrong/arethetypeswrong.github.io/blob/main/docs/problems/NoResolution.md#true-positive-node-10-doesnt-support-packagejson-exports\n\t\t\tprofile: \"node16\",\n\t\t},\n\t\tformat: _format,\n\t\tdts: _dts,\n\t\t...rest,\n\t};\n\n\treturn _defineConfig([baseConfig].concat(...configs));\n};\n"],"mappings":";;;;;;;;;AAeA,MAAa,gBACZ,QACA,GAAG,YACa;CAChB,MAAM,EAAE,QAAQ,KAAK,GAAG,SAAS,UAAW,EAAE;CAE9C,IAAI,OAAO;AACX,KAAI,SAAS,UAAa,SAAS,KAClC,QAAO;EACN,WAAW;EACX,SAAS;EACT;UACS,OAAO,SAAS,UAAU;;AACpC,iBAAK,gCAAc;AACnB,OAAK,UAAU;;CAGhB,MAAM,SAAS;CACf,MAAM,SAAS;CACf,IAAI,UAAU;AACd,KAAI,YAAY,UAAa,YAAY,KACxC,WAAU;EACT,KAAK;GACJ,WAAW;GACX,eAAe;IACd,YAAY;IACZ,YAAY;IACZ;GACD;EACD,KAAK;GACJ,WAAW;GACX,eAAe;IACd,YAAY;IACZ,YAAY;IACZ;GACD;EACD;UACS,MAAM,QAAQ,QAAQ,CAChC,WAAU,QAAQ,QAChB,KAAK,QAAQ;AACb,MAAI,OAAO;GACV,WAAW;GACX,eAAe;IACd,YAAY;IACZ,YAAY;IACZ;GACD;AACD,SAAO;IAER,EAAE,CACF;UACS,OAAO,YAAY,SAC7B,WAAU,OAAO,YAChB,OAAO,QAAQ,QAAQ,CAAC,KAAK,CAAC,KAAK,WAAW;AAC7C,SAAO,CAAC,KAAK;GAAE,WAAW;GAAM;GAAQ,GAAG;GAAO,CAAC;GAClD,CACF;AA8BF,QAAOA,eAAc,CA3BW;EAC/B,OAAO,CAAC,iBAAiB;EACzB,UAAU;EACV,gBAAgB;EAChB,QAAQ;EACR,OAAO;EACP,SAAS;GACR,SAAS;GACT,OAAO;GACP;EACD,QAAQ;GACP,SAAS;GACT,OAAO;GACP,UAAU,CAAC,gBAAgB,mBAAmB;GAC9C;EACD,MAAM;GACL,SAAS;GACT,OAAO;GAGP,SAAS;GACT;EACD,QAAQ;EACR,KAAK;EACL,GAAG;EACH,CAEgC,CAAC,OAAO,GAAG,QAAQ,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kcconfigs/tsdown",
3
- "version": "0.1.0-beta.0",
4
- "description": "TSDown configuration",
3
+ "version": "0.1.0-beta.1",
4
+ "description": "Shared tsdown configuration",
5
5
  "type": "module",
6
6
  "dependencies": {
7
7
  "tsdown": "0.18.1",
@@ -10,9 +10,9 @@
10
10
  "@arethetypeswrong/core": "0.18.2"
11
11
  },
12
12
  "devDependencies": {
13
- "@biomejs/biome": "2.3.8",
14
- "@kcconfigs/biome": "0.1.0",
15
- "@kcconfigs/tsconfig": "0.1.0-beta.0"
13
+ "@biomejs/biome": "2.3.10",
14
+ "@kcconfigs/tsconfig": "0.1.0-beta.1",
15
+ "@kcconfigs/biome": "0.1.1"
16
16
  },
17
17
  "peerDependencies": {
18
18
  "tsdown": "^0.17.0",
package/src/index.ts CHANGED
@@ -37,13 +37,17 @@ export const defineConfig = (
37
37
  _format = {
38
38
  esm: {
39
39
  sourcemap: true,
40
- banner,
41
- footer,
40
+ outputOptions: {
41
+ postBanner: banner,
42
+ postFooter: footer,
43
+ },
42
44
  },
43
45
  cjs: {
44
46
  sourcemap: true,
45
- banner,
46
- footer,
47
+ outputOptions: {
48
+ postBanner: banner,
49
+ postFooter: footer,
50
+ },
47
51
  },
48
52
  };
49
53
  } else if (Array.isArray(_format)) {
@@ -51,8 +55,10 @@ export const defineConfig = (
51
55
  (obj, fmt) => {
52
56
  obj[fmt] = {
53
57
  sourcemap: true,
54
- banner,
55
- footer,
58
+ outputOptions: {
59
+ postBanner: banner,
60
+ postFooter: footer,
61
+ },
56
62
  };
57
63
  return obj;
58
64
  },