@rrlab/tsdown-config 0.0.1-git-1c42388.0 → 0.0.1-git-06ed46c.0

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.
@@ -0,0 +1,7 @@
1
+ import { UserConfig } from "tsdown";
2
+
3
+ //#region src/index.d.ts
4
+ declare function defineBinConfig(options?: UserConfig): UserConfig;
5
+ declare function defineLibConfig(options?: UserConfig): UserConfig;
6
+ //#endregion
7
+ export { defineBinConfig, defineLibConfig };
package/dist/index.mjs ADDED
@@ -0,0 +1,20 @@
1
+ import { defineConfig } from "tsdown";
2
+ //#region src/index.ts
3
+ function defineBinConfig(options = {}) {
4
+ return defineConfig({
5
+ entry: ["src/run.ts"],
6
+ format: "esm",
7
+ platform: "node",
8
+ ...options
9
+ });
10
+ }
11
+ function defineLibConfig(options = {}) {
12
+ return defineConfig({
13
+ format: "esm",
14
+ dts: true,
15
+ entry: ["src/index.ts"],
16
+ ...options
17
+ });
18
+ }
19
+ //#endregion
20
+ export { defineBinConfig, defineLibConfig };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@rrlab/tsdown-config",
3
- "version": "0.0.1-git-1c42388.0",
4
- "description": "Shared tsdown configuration helpers used by @rrlab/plugin-tsdown.",
3
+ "version": "0.0.1-git-06ed46c.0",
4
+ "description": "Shared tsdown configuration helpers used by @rrlab/tsdown-plugin.",
5
5
  "homepage": "https://github.com/variableland/dx/tree/main/run-run/tsdown-config#readme",
6
6
  "bugs": {
7
7
  "url": "https://github.com/variableland/dx/issues"