vitepress
Advanced tools
Comparing version 0.21.5 to 0.21.6
@@ -8,3 +8,4 @@ import { shallowRef, readonly, computed, inject } from 'vue'; | ||
function parse(data) { | ||
return readonly(JSON.parse(data)); | ||
const parsed = JSON.parse(data); | ||
return (import.meta.env.DEV ? readonly(parsed) : parsed); | ||
} | ||
@@ -11,0 +12,0 @@ // hmr |
export const EXTERNAL_URL_RE = /^https?:/i; | ||
// @ts-ignore | ||
export const inBrowser = typeof window !== 'undefined'; | ||
@@ -3,0 +4,0 @@ function findMatchRoot(route, roots) { |
'use strict'; | ||
var serve = require('./serve-322f3382.js'); | ||
var serve = require('./serve-9874c5ac.js'); | ||
require('fs'); | ||
@@ -5,0 +5,0 @@ require('path'); |
@@ -5,3 +5,3 @@ 'use strict'; | ||
var serve = require('./serve-322f3382.js'); | ||
var serve = require('./serve-9874c5ac.js'); | ||
require('vite'); | ||
@@ -8,0 +8,0 @@ require('readline'); |
{ | ||
"name": "vitepress", | ||
"version": "0.21.5", | ||
"version": "0.21.6", | ||
"description": "Vite & Vue powered static site generator", | ||
@@ -17,2 +17,29 @@ "main": "dist/node/index.js", | ||
], | ||
"scripts": { | ||
"dev": "run-s dev-shared dev-start", | ||
"dev-start": "run-p dev-client dev-node dev-watch", | ||
"dev-client": "tsc -w -p src/client", | ||
"dev-node": "tsc -w -p src/node", | ||
"dev-shared": "node scripts/copyShared", | ||
"dev-watch": "node scripts/watchAndCopy", | ||
"build": "run-s build-prepare build-client build-node build-types", | ||
"build-prepare": "rimraf -rf dist && node scripts/copyShared", | ||
"build-client": "tsc -p src/client && node scripts/copyClient", | ||
"build-node": "rollup -c scripts/rollup.config.js", | ||
"build-types": "run-s build-types-client build-types-node", | ||
"build-types-client": "tsc -p src/client --declaration --emitDeclarationOnly --outDir dist/temp && api-extractor run -c api-extractor.client.json && rimraf dist/temp", | ||
"build-types-node": "tsc -p src/node --declaration --emitDeclarationOnly --outDir dist/temp && api-extractor run -c api-extractor.node.json && rimraf dist/temp", | ||
"lint": "run-s lint:js lint:ts", | ||
"lint:js": "prettier --check --write \"{bin,docs,scripts,src}/**/*.js\"", | ||
"lint:ts": "prettier --check --write --parser typescript \"{__tests__,src,docs,types}/**/*.ts\"", | ||
"test": "vitest run __tests__ -c __tests__/vitest.config.js --global", | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", | ||
"release": "node scripts/release.js", | ||
"docs": "run-p dev docs-dev", | ||
"docs-dev": "node ./bin/vitepress dev docs", | ||
"docs-debug": "node --inspect-brk ./bin/vitepress dev docs", | ||
"docs-build": "npm run build && node ./bin/vitepress build docs", | ||
"docs-serve": "node ./bin/vitepress serve docs", | ||
"ci-docs": "run-s build docs-build" | ||
}, | ||
"engines": { | ||
@@ -64,3 +91,2 @@ "node": ">=12.0.0" | ||
"@types/fs-extra": "^9.0.11", | ||
"@types/jest": "^27.0.0", | ||
"@types/koa": "^2.13.1", | ||
@@ -87,3 +113,2 @@ "@types/koa-static": "^4.0.1", | ||
"gray-matter": "^4.0.3", | ||
"jest": "^27.0.1", | ||
"lint-staged": "^11.0.0", | ||
@@ -108,34 +133,16 @@ "lru-cache": "^6.0.0", | ||
"sirv": "^1.0.12", | ||
"ts-jest": "^27.0.1", | ||
"typescript": "^4.3.2", | ||
"vitest": "^0.1.19", | ||
"yorkie": "^2.0.0" | ||
}, | ||
"scripts": { | ||
"dev": "run-s dev-shared dev-start", | ||
"dev-start": "run-p dev-client dev-node dev-watch", | ||
"dev-client": "tsc -w -p src/client", | ||
"dev-node": "tsc -w -p src/node", | ||
"dev-shared": "node scripts/copyShared", | ||
"dev-watch": "node scripts/watchAndCopy", | ||
"build": "run-s build-prepare build-client build-node build-types", | ||
"build-prepare": "rimraf -rf dist && node scripts/copyShared", | ||
"build-client": "tsc -p src/client && node scripts/copyClient", | ||
"build-node": "rollup -c scripts/rollup.config.js", | ||
"build-types": "run-s build-types-client build-types-node", | ||
"build-types-client": "tsc -p src/client --declaration --emitDeclarationOnly --outDir dist/temp && api-extractor run -c api-extractor.client.json && rimraf dist/temp", | ||
"build-types-node": "tsc -p src/node --declaration --emitDeclarationOnly --outDir dist/temp && api-extractor run -c api-extractor.node.json && rimraf dist/temp", | ||
"lint": "run-s lint:js lint:ts", | ||
"lint:js": "prettier --check --write \"{bin,docs,scripts,src}/**/*.js\"", | ||
"lint:ts": "prettier --check --write --parser typescript \"{__tests__,src,docs,types}/**/*.ts\"", | ||
"test": "jest", | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", | ||
"release": "node scripts/release.js", | ||
"docs": "run-p dev docs-dev", | ||
"docs-dev": "node ./bin/vitepress dev docs", | ||
"docs-debug": "node --inspect-brk ./bin/vitepress dev docs", | ||
"docs-build": "npm run build && node ./bin/vitepress build docs", | ||
"docs-serve": "node ./bin/vitepress serve docs", | ||
"ci-docs": "run-s build docs-build" | ||
}, | ||
"readme": "# (WIP) VitePress 📝💨\n\n[![Test](https://github.com/vuejs/vitepress/workflows/Test/badge.svg)](https://github.com/vuejs/vitepress/actions)\n[![npm](https://img.shields.io/npm/v/vitepress)](https://www.npmjs.com/package/vitepress)\n\n---\n\nVitePress is [VuePress](http://vuepress.vuejs.org/)' spiritual successor, built on top of [vite](https://github.com/vuejs/vite).\n\n## Documentation\n\nTo check out docs, visit [vitepress.vuejs.org](https://vitepress.vuejs.org).\n\n## Changelog\n\nDetailed changes for each release are documented in the [CHANGELOG](https://github.com/vuejs/vitepress/blob/master/CHANGELOG.md).\n\n## Contribution\n\nPlease make sure to read the [Contributing Guide](./.github/contributing.md) before making a pull request.\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n\nCopyright (c) 2019-present, Yuxi (Evan) You\n" | ||
} | ||
"pnpm": { | ||
"peerDependencyRules": { | ||
"ignoreMissing": [ | ||
"@algolia/client-search", | ||
"react", | ||
"react-dom", | ||
"@types/react" | ||
] | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
51
1590699
69
62466