From 41c142af8c75ae7f22f6af1fad33e975e8d7e850 Mon Sep 17 00:00:00 2001 From: andatoshiki Date: Mon, 12 Jun 2023 00:31:44 +0800 Subject: [PATCH] fix: make overall project root to monorepo with integrated individual doc package for twoslash third-party ts compiler option --- docs/package.json | 14 ++++++++++++++ package.json | 2 +- pnpm-workspace.yaml | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 docs/package.json diff --git a/docs/package.json b/docs/package.json new file mode 100644 index 00000000..61a97fee --- /dev/null +++ b/docs/package.json @@ -0,0 +1,14 @@ +{ + "name": "toshiki-notebook/docs", + "version": "0.0.1", + "description": "Extra modules and dependencies applied upon the monorepos and used in toshiki-notebook for in-markdown shiki twoslash program node behavior analysis only in docs", + "scripts": { + "docs:dev": "vitepress dev", + "docs:build": "vitepress build", + "docs:preview": "vitepress preview" + }, + "devDependencies": { + "@types/react": "^18.2.9", + "react": "^18.2.0" + } +} diff --git a/package.json b/package.json index c8a372c9..5beb8dd7 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "docs:host": "vitepress dev docs --host", "rm:dist": "rm -rf /docs/.vitepress/dist", "rm:cache": "rm -rf /docs/.vitepress/cache", - "prepare": "husky install", + "prepare": "node -e \"if (process.env.NODE_ENV !== 'production'){process.exit(1)} \" || husky install", "lint": "prettier --write .", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0", "feed": "node docs/.vitepress/utils/genFeed.js" diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml index 79b012da..c247ef41 100644 --- a/pnpm-workspace.yaml +++ b/pnpm-workspace.yaml @@ -1,4 +1,4 @@ prefer-workspace-packages: true packages: - '.' - - 'docs' \ No newline at end of file + - 'docs'