@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 +1 -1
- package/README.md +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/LICENSE
CHANGED
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 `
|
|
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
|
|
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);
|
package/dist/index.cjs.map
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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.
|
|
4
|
-
"description": "tsdown config factory for the
|
|
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": "
|
|
6
|
+
"author": "Maxim <m@nilmuse.com>",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
10
|
-
"url": "git+https://github.com/
|
|
10
|
+
"url": "git+https://github.com/nilmuse/tsdown-config.git"
|
|
11
11
|
},
|
|
12
12
|
"bugs": {
|
|
13
|
-
"url": "https://github.com/
|
|
13
|
+
"url": "https://github.com/nilmuse/tsdown-config/issues"
|
|
14
14
|
},
|
|
15
|
-
"homepage": "https://github.com/
|
|
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
|
-
"
|
|
81
|
+
"nilmuse"
|
|
82
82
|
]
|
|
83
83
|
}
|