Skip to content

chore(deps,docs): split docs toolchain from core package and modernize build deps#173

Merged
elreco merged 1 commit intoelreco:mainfrom
ignatremizov:chore/split-docs-toolchain
Feb 11, 2026
Merged

chore(deps,docs): split docs toolchain from core package and modernize build deps#173
elreco merged 1 commit intoelreco:mainfrom
ignatremizov:chore/split-docs-toolchain

Conversation

@ignatremizov
Copy link
Contributor

@ignatremizov ignatremizov commented Feb 11, 2026

Summary

  • split docs tooling into a separate docs/package.json and docs/package-lock.json
  • rewire root docs scripts to run with npm --prefix docs
  • remove docs-only dependencies from the root package so core installs and audits reflect the library only
  • upgrade root build and tooling dependencies to a consistent modern baseline (vite@7, vite-plugin-dts@4, semantic-release@25 family, commitlint@20, updated Vue/Tailwind/dayjs/fs-extra)
  • export Props from src/VueTailwindDatePicker.vue to satisfy declaration rollup checks with vite-plugin-dts@4
  • reorder package.json exports conditions (types before import/require) to remove vite@7 warning
  • include prior UI overflow fix from xaop fork (overflow-hidden in left panel wrappers)

Why

  • docs dependencies (especially vitepress) were polluting root npm audit results even though they are not part of the published library runtime/build path
  • forced audit upgrades previously produced inconsistent dependency state; this aligns versions and keeps docs isolated

Validation

  • npm audit (root): 0 vulnerabilities
  • npm run typecheck: pass
  • npm run build: pass
  • npm run docs:build: pass

Notes

@vercel
Copy link

vercel bot commented Feb 11, 2026

@ignatremizov is attempting to deploy a commit to the ELRECO Team on Vercel.

A member of the Team first needs to authorize it.

…e build dependencies

Separate documentation build dependencies from the library package so root installs and audits only reflect runtime/build requirements of the published component, while also upgrading the core toolchain to current versions that work on Node 24.

Problem:
- Root dependency graph included VitePress/docs-only packages, causing audit noise unrelated to the published library.
- Forced audit upgrades left the tree inconsistent (including an accidental docs stack downgrade), and newer vite-plugin-dts exposed a private Props type in declaration rollup.

Approach:
- Isolate docs tooling into docs/package.json and route docs scripts through npm --prefix docs.
- Upgrade core dev toolchain to a coherent modern baseline (Vite 7, vite-plugin-dts 4, semantic-release 25, updated plugin/dependency set).
- Apply minimal source compatibility fix for d.ts generation by exporting Props from VueTailwindDatePicker.

Changes:
- Move VitePress and docs PostCSS stack out of root into docs/package.json with its own lockfile.
- Update root scripts: docs:dev/docs:build/docs:serve now execute in docs package.
- Remove commitizen/cz tooling from root package to reduce security surface and unused dev dependencies.
- Upgrade and align root dependencies: vite, @vitejs/plugin-vue, vite-plugin-dts, semantic-release family, commitlint, tailwind/dayjs/vue/fs-extra, and related lockfile updates.
- Reorder package exports conditions so types is evaluated before import/require (removes Vite 7 warning).
- Export Props interface in src/VueTailwindDatePicker.vue to satisfy vite-plugin-dts rollup type checks.

Tests:
- npm audit (root): found 0 vulnerabilities.
- npm run typecheck: pass.
- npm run build: pass.
- npm run docs:build: pass (using docs package).

Behavioral effect:
- Library runtime behavior is unchanged.
- Documentation tooling is now isolated from core package installs/audits.
- Builds continue to emit the existing API Extractor TypeScript version notice only (informational).
@ignatremizov ignatremizov force-pushed the chore/split-docs-toolchain branch from e735b77 to 82bef8d Compare February 11, 2026 17:11
@elreco elreco merged commit e924084 into elreco:main Feb 11, 2026
1 of 2 checks passed
@ignatremizov ignatremizov deleted the chore/split-docs-toolchain branch February 13, 2026 10:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants