@dxtmisha/scripts 1.5.4 → 1.5.5

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
@@ -2,13 +2,21 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [1.5.5] - 2026-10-08
6
+
7
+ ### Changed
8
+ - **Export Directory Order in `UI_DIRS_LIST_EXPORT`**:
9
+ - Moved `'components'` to the end of `UI_DIRS_LIST_EXPORT` in `src/config.ts` (`['classes', 'composables', 'functions', 'global', 'types', 'components']`), ensuring components are compiled and exported last after base classes, composables, functions, and types.
10
+ - **CLI Options Cleanup in `dxt-library`**:
11
+ - Removed redundant `'sub-library'` alias in `bin/design-library.ts` to strictly maintain the canonical `--sub` flag.
12
+
5
13
  ## [1.5.4] - 2026-10-08
6
14
 
7
15
  ### Added
8
16
  - **Sub-Library Export in `LibraryExport`**:
9
17
  - Added `sub` constructor parameter (default `false`) and `isSub()` method to `LibraryExport` (`src/classes/Library/LibraryExport.ts`) to conditionally generate an additional sub-library export file (`_library.ts`) without components and global styles.
10
18
  - Added `UI_DIRS_FILE_EXPORT_SUB` constant (`[...UI_DIRS_LIBRARY, '_library.ts']`) to `src/config.ts` specifying the sub-library export destination path.
11
- - Added `--sub` and `--sub-library` CLI options to `dxt-library` (`bin/design-library.ts`) to enable generation of `src/library/_library.ts`.
19
+ - Added `--sub` CLI option to `dxt-library` (`bin/design-library.ts`) to enable generation of `src/library/_library.ts`.
12
20
  - Added unit test coverage in `LibraryExport.test.ts` for `sub` option, component and style omission, parent path resolution (`../`), and dual-file export in `make()`.
13
21
 
14
22
  ## [1.5.3] - 2026-10-07
@@ -17,15 +17,11 @@ const { values } = parseCliArguments(
17
17
  'sub': {
18
18
  type: 'boolean',
19
19
  description: 'Generate additional _library.ts without components in the library folder'
20
- },
21
- 'sub-library': {
22
- type: 'boolean',
23
- description: 'Alias for --sub'
24
20
  }
25
21
  }
26
22
  )
27
23
 
28
24
  const style = !values['no-style']
29
- const sub = Boolean(values.sub || values['sub-library'])
25
+ const sub = Boolean(values.sub)
30
26
 
31
27
  new LibraryExport(style, sub).make()
package/dist/config.js CHANGED
@@ -5,11 +5,11 @@ var e = "design.config.json", t = "@dxtmisha", n = "constructor", r = `${t}/${n}
5
5
  "ai"
6
6
  ], D = ["src", "media"], O = [...D, "icons"], k = ["src", g], A = ["src", _], j = ["src", "styles"], M = ["src", "library"], N = ["src", y], P = ["src", "library.ts"], F = [...M, "_library.ts"], ee = [
7
7
  "classes",
8
- "components",
9
8
  "composables",
10
9
  "functions",
11
10
  "global",
12
- "types"
11
+ "types",
12
+ "components"
13
13
  ], I = ".gitignore", L = "package.json", R = "properties.json", z = "AGENTS.md", B = "ai-description.md", V = "ai-doc.md", H = "ai-instruction.md", U = "ai-prompt.md", W = "ai-types.md", G = "ai-developer.md", K = "screenshot.json", q = "screenshot-code.html", J = "screenshot-styles.css", Y = "flags", X = "media", Z = "design", Q = "plugin", $ = "style", te = "wiki", ne = "vite.config.ts", re = "vite-workers.config.ts", ie = "index.ts", ae = "ai-types.md", oe = "ai-description.md", se = "ai-mcp-resources.json", ce = "ai-mcp-all-resources.json", le = "ai-mcp-all-resources.ts", ue = "style.scss", de = "ui-properties.scss", fe = "scss", pe = "classes", me = [
14
14
  "disabled",
15
15
  "focus",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/scripts",
3
3
  "private": false,
4
- "version": "1.5.4",
4
+ "version": "1.5.5",
5
5
  "type": "module",
6
6
  "description": "CLI tools, AI integration scripts, and automation utilities for DXT UI — automated component scaffolding, Figma layout generation, library packaging, documentation building, screenshot captures, and AI prompt processing.",
7
7
  "keywords": [