-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug report] create-vuepress is not working properly #202
Comments
I encountered the same issue when building VuePress today. |
Hello @ditoukanyun. Please provide a minimal reproduction using a GitHub repository or v2.vuepress.vuejs.org/new. Issues marked with |
I see, the create-vuepress package is still using old version. Please add tests for the package, cuz it's the first recommended setup in our docs @pengzhanbo @Mister-Hope |
Yes, because lerna won't bump that package unless it's code has been changed. @meteorlxy @pengzhanbo any ideas to have its version bumped automatically while ensuring core and ecosystem are not misaligned (while core just released a new version)? My current idea is to add those deps in to devDeps and config |
We can use pacote to check the latest version numbers of Just like this: const res = await pacote.packument('vuepress')
const distTags = res['dist-tags']
console.log(distTags['next']) Alternatively,wen can dynamically install |
We couldn't. Like I said before, there could be times where core release a new version and the ecosystem has not suport it. The helper should always try to use core version that ecosystem supports. |
The simplest hack could be announcing all the needed packages as optional peers and reference them as workspace, So that the package could be automatically bumped and get the correct version in this repo. The version can be obtained later by importing the package.json |
The Subsequently, we can utilize this approach to use pacote to retrieve package information for |
Absolutely, no. We use lerna, Because we want to make sure if a single plugin is modified then other unrelated packages won't release any new versions. You may annoy users if they found the plugins and theme-default are bumped for no reason. Once vp turned into stable, then we may remove the work space protocol in the package.json, And make it a minor version range. |
Description
pnpm create vuepress vuepress-starter
"docs:dev": "vuepress dev docs",
Reproduction
1
Used Package Manager
pnpm
System Info
The text was updated successfully, but these errors were encountered: