refactor: remove docs from build process and use separate script
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "pnpm run typedoc:md && vitepress dev src",
|
"dev": "pnpm run typedoc:md && vitepress dev src",
|
||||||
"build": "pnpm run typedoc:md && vitepress build src",
|
"docs": "pnpm run typedoc:md && vitepress build src",
|
||||||
"serve": "vitepress serve src",
|
"serve": "vitepress serve src",
|
||||||
"lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .",
|
"lint": "eslint --ext \".js,.jsx,.ts,.tsx\" --fix --ignore-path .gitignore .",
|
||||||
"typedoc:md": "typedoc --options ./typedoc.md.json",
|
"typedoc:md": "typedoc --options ./typedoc.md.json",
|
||||||
|
|||||||
+4
-3
@@ -6,9 +6,10 @@
|
|||||||
"dev": "pnpm --dir examples/vite dev",
|
"dev": "pnpm --dir examples/vite dev",
|
||||||
"docs": "pnpm --dir docs dev",
|
"docs": "pnpm --dir docs dev",
|
||||||
"changelog": "git-cliff --output CHANGELOG.md && git add CHANGELOG.md && git commit -m \"chore: Update CHANGELOG.md\"",
|
"changelog": "git-cliff --output CHANGELOG.md && git add CHANGELOG.md && git commit -m \"chore: Update CHANGELOG.md\"",
|
||||||
"build": "turbo run build",
|
"build:docs": "turbo docs",
|
||||||
"test": "turbo run test",
|
"build": "turbo build",
|
||||||
"lint": "turbo run lint",
|
"test": "turbo test",
|
||||||
|
"lint": "turbo lint",
|
||||||
"typedocs": "turbo run build && pnpm --dir docs typedocs",
|
"typedocs": "turbo run build && pnpm --dir docs typedocs",
|
||||||
"ci:version": "changeset version",
|
"ci:version": "changeset version",
|
||||||
"ci:publish": "turbo lint && turbo build && turbo test && changeset publish"
|
"ci:publish": "turbo lint && turbo build && turbo test && changeset publish"
|
||||||
|
|||||||
@@ -24,6 +24,10 @@
|
|||||||
"dev": {
|
"dev": {
|
||||||
"dependsOn": ["^build"],
|
"dependsOn": ["^build"],
|
||||||
"cache": false
|
"cache": false
|
||||||
|
},
|
||||||
|
"docs": {
|
||||||
|
"dependsOn": ["^build"],
|
||||||
|
"outputs": ["dist/**"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user