@tala-tools/tsdown 0.0.1 → 0.1.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.
@@ -1 +1 @@
1
- import{t as e}from"../configs-DHAVbFT3.mjs";export{e as base};
1
+ import{t as e}from"../configs-Cnj6sciH.mjs";export{e as base};
@@ -1 +1 @@
1
- import{defineConfig as e}from"tsdown/config";const t=e(({watch:e})=>({entry:[`./src/**/*.ts`],platform:`node`,dts:{sourcemap:!!e},unused:{level:`error`,ignore:[`typescript`]},format:[`esm`],publint:!0,exports:!0,fixedExtension:!0,minify:!0,unbundle:!1,onSuccess(){console.info(`🙏 Build succeeded!`)},clean:!0}));export{t};
1
+ import{defineConfig as e}from"tsdown/config";const t=e((e,t)=>({entry:[`./src/**/*.ts`],platform:`node`,dts:{sourcemap:!!e.watch},unused:{level:`error`,ignore:[`typescript`]},format:[`esm`],publint:!0,exports:!0,fixedExtension:!0,minify:!0,unbundle:!1,onSuccess(){console.info(`🙏 Build succeeded!`)},clean:!0}));export{t};
package/dist/index.d.mts CHANGED
@@ -1,18 +1,15 @@
1
1
  import { t as base } from "./index-lmVr0Bmm.mjs";
2
- import * as _$tsdown_config0 from "tsdown/config";
2
+ import { UserConfig, UserConfig as UserConfig$1, UserConfigFn, UserConfigFn as UserConfigFn$1 } from "tsdown/config";
3
3
 
4
4
  //#region src/index.d.ts
5
+ type Arrayable<T> = T | T[];
5
6
  /**
6
- * Options for tsdown configuration
7
- */
8
- type Options = _$tsdown_config0.Options;
7
+ * Type for tsdown configuration export (object, function, promise, or array)
8
+ */
9
+ type TalaUserConfig = Arrayable<UserConfig$1> | UserConfigFn$1 | Promise<Arrayable<UserConfig$1>>;
9
10
  /**
10
- * Function type for tsdown configuration
11
- */
12
- type UserConfigFn = _$tsdown_config0.UserConfigFn;
13
- /**
14
- * Helper to define tsdown configuration with Tala Tools defaults
15
- */
16
- declare const defineConfig: (options: Options | UserConfigFn) => UserConfigFn;
11
+ * Helper to define tsdown configuration with Tala Tools defaults
12
+ */
13
+ declare const defineConfig: (options: TalaUserConfig) => UserConfigFn$1;
17
14
  //#endregion
18
- export { Options, UserConfigFn, base, defineConfig };
15
+ export { TalaUserConfig, type UserConfig, type UserConfigFn, base, defineConfig };
package/dist/index.mjs CHANGED
@@ -1 +1 @@
1
- import{t as e}from"./configs-DHAVbFT3.mjs";import{defineConfig as t}from"tsdown/config";const n=n=>t(async t=>{let r=await(typeof e==`function`?e(t):e),i=await(typeof n==`function`?n(t):n);return{...r,...i}});export{e as base,n as defineConfig};
1
+ import{t as e}from"./configs-Cnj6sciH.mjs";import{defineConfig as t}from"tsdown/config";function n(e,t){let r={...e};for(let e in t)if(Object.prototype.hasOwnProperty.call(t,e)){let i=r[e],a=t[e];typeof i==`object`&&typeof a==`object`&&i!==null&&a!==null&&!Array.isArray(i)&&!Array.isArray(a)?r[e]=n(i,a):r[e]=a}return r}const r=r=>t(async(t,i)=>{let a=await(typeof e==`function`?e(t,i):e),o=Array.isArray(a)?a[0]:a,s=await(typeof r==`function`?r(t,i):r);return n(o,Array.isArray(s)?s[0]:s)});export{e as base,r as defineConfig};
package/package.json CHANGED
@@ -1,12 +1,17 @@
1
1
  {
2
2
  "name": "@tala-tools/tsdown",
3
- "version": "0.0.1",
3
+ "version": "0.1.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/hakim/tala-tools.git",
13
+ "directory": "packages/tsdown"
14
+ },
10
15
  "dependencies": {
11
16
  "publint": "0.3.18",
12
17
  "unplugin-unused": "0.5.7"
@@ -15,8 +20,10 @@
15
20
  "tsdown": "0.21.7"
16
21
  },
17
22
  "devDependencies": {
18
- "@tala-tools/eslint": "0.0.1",
19
- "@tala-tools/prettier": "0.0.1",
23
+ "@types/node": "^22.0.0",
24
+ "eslint": "^10.2.0",
25
+ "@tala-tools/eslint": "0.1.0",
26
+ "@tala-tools/prettier": "0.0.2",
20
27
  "@tala-tools/tsconfig": "0.0.1"
21
28
  },
22
29
  "files": [
@@ -29,9 +36,9 @@
29
36
  "./package.json": "./package.json"
30
37
  },
31
38
  "scripts": {
32
- "build": "tsdown",
33
- "lint": "eslint . --max-warnings 0",
34
- "lint:fix": "eslint . --max-warnings 0 --fix",
39
+ "build": "tsdown --config-loader unrun",
40
+ "lint": "pnpm exec eslint . --max-warnings 0",
41
+ "lint:fix": "pnpm exec eslint . --max-warnings 0 --fix",
35
42
  "format:check": "prettier \"**/*\" --ignore-unknown --list-different",
36
43
  "format:fix": "prettier \"**/*\" --ignore-unknown --write",
37
44
  "clean": "rimraf node_modules",