@ux-ui/tsdown-config 0.1.0 → 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.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 ux-ui.pro
3
+ Copyright (c) 2026 Maxim
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @ux-ui/tsdown-config
2
2
 
3
- [tsdown](https://tsdown.dev) config factory for the `ux-ui-pro` npm portfolio. Encodes the §5.1
3
+ [tsdown](https://tsdown.dev) config factory for the `nilmuse` npm portfolio. Encodes the §5.1
4
4
  library base (`fixedExtension: false`, `minify: false`, `dts` via `tsconfig.build.json`, source
5
5
  maps) and the §5.3 CSS-sidecar variant, so each package's `tsdown.config.ts` stays a couple of
6
6
  lines and never drifts.
package/dist/index.cjs CHANGED
@@ -3,7 +3,7 @@ let tsdown = require("tsdown");
3
3
 
4
4
  //#region src/index.ts
5
5
  /**
6
- * Shared tsdown base for the ux-ui-pro portfolio (assembly.md §5.1):
6
+ * Shared tsdown base for the nilmuse portfolio (assembly.md §5.1):
7
7
  * - `fixedExtension: false` -> `index.js` (ESM) + `index.cjs` (CJS) at `"type": "module"` (§4.3);
8
8
  * - `minify: false` -> readable library output (§5.1);
9
9
  * - `dts` via `tsconfig.build.json` -> public types only (§4.5/§7);
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { mergeConfig, type UserConfig } from 'tsdown';\n\n/**\n * Shared tsdown base for the ux-ui-pro portfolio (assembly.md §5.1):\n * - `fixedExtension: false` -> `index.js` (ESM) + `index.cjs` (CJS) at `\"type\": \"module\"` (§4.3);\n * - `minify: false` -> readable library output (§5.1);\n * - `dts` via `tsconfig.build.json` -> public types only (§4.5/§7);\n * - JS source maps on (§4.9).\n *\n * `exports` is intentionally NOT auto-generated: the portfolio fixes it by hand and validates\n * with publint/attw (§5.1).\n */\nconst base: UserConfig = {\n entry: 'src/index.ts',\n format: ['esm', 'cjs'],\n dts: { tsconfig: './tsconfig.build.json' },\n fixedExtension: false,\n sourcemap: true,\n minify: false,\n};\n\n/**\n * Standard TS library config (§5.1). Pass `overrides` for per-package tweaks\n * (e.g. `entry`, `platform`, `deps`).\n *\n * @example\n * // tsdown.config.ts\n * import { defineLibrary } from '@ux-ui/tsdown-config';\n * export default defineLibrary({ platform: 'browser' });\n */\nexport function defineLibrary(overrides: UserConfig = {}): UserConfig {\n return mergeConfig(base, overrides);\n}\n\nexport interface CssLibraryOptions extends UserConfig {\n /** Sidecar CSS file name, e.g. `'dialog-lite.css'` (§5.3). */\n cssFileName: string;\n}\n\n/**\n * Web Component + CSS sidecar config (§5.3). Adds the CSS pipeline on top of {@link defineLibrary}.\n * Requires `@tsdown/css` (and usually `sass-embedded`) in the consuming package.\n *\n * @example\n * // tsdown.config.ts\n * import { defineCssLibrary } from '@ux-ui/tsdown-config';\n * export default defineCssLibrary({\n * cssFileName: 'dialog-lite.css',\n * entry: { index: 'src/index.ts', vue: 'src/vue.ts' },\n * deps: { neverBundle: ['vue'] },\n * });\n */\nexport function defineCssLibrary({ cssFileName, ...overrides }: CssLibraryOptions): UserConfig {\n return mergeConfig(base, { css: { fileName: cssFileName, minify: true } }, overrides);\n}\n"],"mappings":";;;;;;;;;;;;;;AAYA,MAAM,OAAmB;CACvB,OAAO;CACP,QAAQ,CAAC,OAAO,KAAK;CACrB,KAAK,EAAE,UAAU,wBAAwB;CACzC,gBAAgB;CAChB,WAAW;CACX,QAAQ;AACV;;;;;;;;;;AAWA,SAAgB,cAAc,YAAwB,CAAC,GAAe;CACpE,+BAAmB,MAAM,SAAS;AACpC;;;;;;;;;;;;;;AAoBA,SAAgB,iBAAiB,EAAE,aAAa,GAAG,aAA4C;CAC7F,+BAAmB,MAAM,EAAE,KAAK;EAAE,UAAU;EAAa,QAAQ;CAAK,EAAE,GAAG,SAAS;AACtF"}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { mergeConfig, type UserConfig } from 'tsdown';\n\n/**\n * Shared tsdown base for the nilmuse portfolio (assembly.md §5.1):\n * - `fixedExtension: false` -> `index.js` (ESM) + `index.cjs` (CJS) at `\"type\": \"module\"` (§4.3);\n * - `minify: false` -> readable library output (§5.1);\n * - `dts` via `tsconfig.build.json` -> public types only (§4.5/§7);\n * - JS source maps on (§4.9).\n *\n * `exports` is intentionally NOT auto-generated: the portfolio fixes it by hand and validates\n * with publint/attw (§5.1).\n */\nconst base: UserConfig = {\n entry: 'src/index.ts',\n format: ['esm', 'cjs'],\n dts: { tsconfig: './tsconfig.build.json' },\n fixedExtension: false,\n sourcemap: true,\n minify: false,\n};\n\n/**\n * Standard TS library config (§5.1). Pass `overrides` for per-package tweaks\n * (e.g. `entry`, `platform`, `deps`).\n *\n * @example\n * // tsdown.config.ts\n * import { defineLibrary } from '@ux-ui/tsdown-config';\n * export default defineLibrary({ platform: 'browser' });\n */\nexport function defineLibrary(overrides: UserConfig = {}): UserConfig {\n return mergeConfig(base, overrides);\n}\n\nexport interface CssLibraryOptions extends UserConfig {\n /** Sidecar CSS file name, e.g. `'dialog-lite.css'` (§5.3). */\n cssFileName: string;\n}\n\n/**\n * Web Component + CSS sidecar config (§5.3). Adds the CSS pipeline on top of {@link defineLibrary}.\n * Requires `@tsdown/css` (and usually `sass-embedded`) in the consuming package.\n *\n * @example\n * // tsdown.config.ts\n * import { defineCssLibrary } from '@ux-ui/tsdown-config';\n * export default defineCssLibrary({\n * cssFileName: 'dialog-lite.css',\n * entry: { index: 'src/index.ts', vue: 'src/vue.ts' },\n * deps: { neverBundle: ['vue'] },\n * });\n */\nexport function defineCssLibrary({ cssFileName, ...overrides }: CssLibraryOptions): UserConfig {\n return mergeConfig(base, { css: { fileName: cssFileName, minify: true } }, overrides);\n}\n"],"mappings":";;;;;;;;;;;;;;AAYA,MAAM,OAAmB;CACvB,OAAO;CACP,QAAQ,CAAC,OAAO,KAAK;CACrB,KAAK,EAAE,UAAU,wBAAwB;CACzC,gBAAgB;CAChB,WAAW;CACX,QAAQ;AACV;;;;;;;;;;AAWA,SAAgB,cAAc,YAAwB,CAAC,GAAe;CACpE,+BAAmB,MAAM,SAAS;AACpC;;;;;;;;;;;;;;AAoBA,SAAgB,iBAAiB,EAAE,aAAa,GAAG,aAA4C;CAC7F,+BAAmB,MAAM,EAAE,KAAK;EAAE,UAAU;EAAa,QAAQ;CAAK,EAAE,GAAG,SAAS;AACtF"}
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { mergeConfig } from "tsdown";
2
2
 
3
3
  //#region src/index.ts
4
4
  /**
5
- * Shared tsdown base for the ux-ui-pro portfolio (assembly.md §5.1):
5
+ * Shared tsdown base for the nilmuse portfolio (assembly.md §5.1):
6
6
  * - `fixedExtension: false` -> `index.js` (ESM) + `index.cjs` (CJS) at `"type": "module"` (§4.3);
7
7
  * - `minify: false` -> readable library output (§5.1);
8
8
  * - `dts` via `tsconfig.build.json` -> public types only (§4.5/§7);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { mergeConfig, type UserConfig } from 'tsdown';\n\n/**\n * Shared tsdown base for the ux-ui-pro portfolio (assembly.md §5.1):\n * - `fixedExtension: false` -> `index.js` (ESM) + `index.cjs` (CJS) at `\"type\": \"module\"` (§4.3);\n * - `minify: false` -> readable library output (§5.1);\n * - `dts` via `tsconfig.build.json` -> public types only (§4.5/§7);\n * - JS source maps on (§4.9).\n *\n * `exports` is intentionally NOT auto-generated: the portfolio fixes it by hand and validates\n * with publint/attw (§5.1).\n */\nconst base: UserConfig = {\n entry: 'src/index.ts',\n format: ['esm', 'cjs'],\n dts: { tsconfig: './tsconfig.build.json' },\n fixedExtension: false,\n sourcemap: true,\n minify: false,\n};\n\n/**\n * Standard TS library config (§5.1). Pass `overrides` for per-package tweaks\n * (e.g. `entry`, `platform`, `deps`).\n *\n * @example\n * // tsdown.config.ts\n * import { defineLibrary } from '@ux-ui/tsdown-config';\n * export default defineLibrary({ platform: 'browser' });\n */\nexport function defineLibrary(overrides: UserConfig = {}): UserConfig {\n return mergeConfig(base, overrides);\n}\n\nexport interface CssLibraryOptions extends UserConfig {\n /** Sidecar CSS file name, e.g. `'dialog-lite.css'` (§5.3). */\n cssFileName: string;\n}\n\n/**\n * Web Component + CSS sidecar config (§5.3). Adds the CSS pipeline on top of {@link defineLibrary}.\n * Requires `@tsdown/css` (and usually `sass-embedded`) in the consuming package.\n *\n * @example\n * // tsdown.config.ts\n * import { defineCssLibrary } from '@ux-ui/tsdown-config';\n * export default defineCssLibrary({\n * cssFileName: 'dialog-lite.css',\n * entry: { index: 'src/index.ts', vue: 'src/vue.ts' },\n * deps: { neverBundle: ['vue'] },\n * });\n */\nexport function defineCssLibrary({ cssFileName, ...overrides }: CssLibraryOptions): UserConfig {\n return mergeConfig(base, { css: { fileName: cssFileName, minify: true } }, overrides);\n}\n"],"mappings":";;;;;;;;;;;;;AAYA,MAAM,OAAmB;CACvB,OAAO;CACP,QAAQ,CAAC,OAAO,KAAK;CACrB,KAAK,EAAE,UAAU,wBAAwB;CACzC,gBAAgB;CAChB,WAAW;CACX,QAAQ;AACV;;;;;;;;;;AAWA,SAAgB,cAAc,YAAwB,CAAC,GAAe;CACpE,OAAO,YAAY,MAAM,SAAS;AACpC;;;;;;;;;;;;;;AAoBA,SAAgB,iBAAiB,EAAE,aAAa,GAAG,aAA4C;CAC7F,OAAO,YAAY,MAAM,EAAE,KAAK;EAAE,UAAU;EAAa,QAAQ;CAAK,EAAE,GAAG,SAAS;AACtF"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { mergeConfig, type UserConfig } from 'tsdown';\n\n/**\n * Shared tsdown base for the nilmuse portfolio (assembly.md §5.1):\n * - `fixedExtension: false` -> `index.js` (ESM) + `index.cjs` (CJS) at `\"type\": \"module\"` (§4.3);\n * - `minify: false` -> readable library output (§5.1);\n * - `dts` via `tsconfig.build.json` -> public types only (§4.5/§7);\n * - JS source maps on (§4.9).\n *\n * `exports` is intentionally NOT auto-generated: the portfolio fixes it by hand and validates\n * with publint/attw (§5.1).\n */\nconst base: UserConfig = {\n entry: 'src/index.ts',\n format: ['esm', 'cjs'],\n dts: { tsconfig: './tsconfig.build.json' },\n fixedExtension: false,\n sourcemap: true,\n minify: false,\n};\n\n/**\n * Standard TS library config (§5.1). Pass `overrides` for per-package tweaks\n * (e.g. `entry`, `platform`, `deps`).\n *\n * @example\n * // tsdown.config.ts\n * import { defineLibrary } from '@ux-ui/tsdown-config';\n * export default defineLibrary({ platform: 'browser' });\n */\nexport function defineLibrary(overrides: UserConfig = {}): UserConfig {\n return mergeConfig(base, overrides);\n}\n\nexport interface CssLibraryOptions extends UserConfig {\n /** Sidecar CSS file name, e.g. `'dialog-lite.css'` (§5.3). */\n cssFileName: string;\n}\n\n/**\n * Web Component + CSS sidecar config (§5.3). Adds the CSS pipeline on top of {@link defineLibrary}.\n * Requires `@tsdown/css` (and usually `sass-embedded`) in the consuming package.\n *\n * @example\n * // tsdown.config.ts\n * import { defineCssLibrary } from '@ux-ui/tsdown-config';\n * export default defineCssLibrary({\n * cssFileName: 'dialog-lite.css',\n * entry: { index: 'src/index.ts', vue: 'src/vue.ts' },\n * deps: { neverBundle: ['vue'] },\n * });\n */\nexport function defineCssLibrary({ cssFileName, ...overrides }: CssLibraryOptions): UserConfig {\n return mergeConfig(base, { css: { fileName: cssFileName, minify: true } }, overrides);\n}\n"],"mappings":";;;;;;;;;;;;;AAYA,MAAM,OAAmB;CACvB,OAAO;CACP,QAAQ,CAAC,OAAO,KAAK;CACrB,KAAK,EAAE,UAAU,wBAAwB;CACzC,gBAAgB;CAChB,WAAW;CACX,QAAQ;AACV;;;;;;;;;;AAWA,SAAgB,cAAc,YAAwB,CAAC,GAAe;CACpE,OAAO,YAAY,MAAM,SAAS;AACpC;;;;;;;;;;;;;;AAoBA,SAAgB,iBAAiB,EAAE,aAAa,GAAG,aAA4C;CAC7F,OAAO,YAAY,MAAM,EAAE,KAAK;EAAE,UAAU;EAAa,QAAQ;CAAK,EAAE,GAAG,SAAS;AACtF"}
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@ux-ui/tsdown-config",
3
- "version": "0.1.0",
4
- "description": "tsdown config factory for the ux-ui-pro npm portfolio (assembly.md §5.1/§5.3).",
3
+ "version": "0.1.1",
4
+ "description": "tsdown config factory for the nilmuse npm portfolio (assembly.md §5.1/§5.3).",
5
5
  "type": "module",
6
- "author": "ux-ui.pro",
6
+ "author": "Maxim <m@nilmuse.com>",
7
7
  "license": "MIT",
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git+https://github.com/ux-ui-pro/tsdown-config.git"
10
+ "url": "git+https://github.com/nilmuse/tsdown-config.git"
11
11
  },
12
12
  "bugs": {
13
- "url": "https://github.com/ux-ui-pro/tsdown-config/issues"
13
+ "url": "https://github.com/nilmuse/tsdown-config/issues"
14
14
  },
15
- "homepage": "https://github.com/ux-ui-pro/tsdown-config",
15
+ "homepage": "https://github.com/nilmuse/tsdown-config",
16
16
  "sideEffects": false,
17
17
  "packageManager": "npm@10.9.3",
18
18
  "engines": {
@@ -78,6 +78,6 @@
78
78
  "config",
79
79
  "build",
80
80
  "library",
81
- "ux-ui-pro"
81
+ "nilmuse"
82
82
  ]
83
83
  }