Skip to content

Commit deab2cf

Browse files
committed
feat(docs): dynamically add @ryanuo/utils during docs build
The @ryanuo/utils package is now added dynamically at build time for the documentation site to ensure the latest version is used. This removes the need to keep it in devDependencies and sync versions manually. The new script `docs:dev-build` is introduced for building docs without adding the package dynamically, useful for development.
1 parent f2fa60e commit deab2cf

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

docs/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
"scripts": {
66
"predocs:dev": "typedoc && pnpm run docs:fix",
77
"docs:dev": "vitepress dev",
8-
"docs:build": "vitepress build",
8+
"docs:build": "pnpm add @ryanuo/utils@latest --no-lockfile -D && vitepress build",
9+
"docs:dev-build": "vitepress build",
910
"docs:preview": "vitepress preview",
1011
"docs:fix": "npx eslint --fix .",
1112
"update": "pnpm run predocs:dev && cd ../ && pnpm run readme"
1213
},
1314
"devDependencies": {
14-
"@ryanuo/utils": "1.3.9",
1515
"@shikijs/vitepress-twoslash": "catalog:docs",
1616
"dotenv": "catalog:docs",
1717
"typedoc": "catalog:docs",

pnpm-lock.yaml

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)