We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9d4655 commit 819eb51Copy full SHA for 819eb51
src/node/init/init.ts
@@ -159,6 +159,7 @@ export function scaffold({
159
160
const dir =
161
root === './' ? `` : ` ${root.replace(/^\.\//, '').replace(/[/\\]$/, '')}`
162
+ const gitignorePrefix = dir ? `${dir}/.vitepress` : '.vitepress'
163
164
const pkgPath = path.resolve('package.json')
165
const userPkg = fs.existsSync(pkgPath)
@@ -168,8 +169,9 @@ export function scaffold({
168
169
const tips = []
170
if (fs.existsSync('.git')) {
171
tips.push(
- `Make sure to add ${cyan(`.vitepress/dist`)} and ` +
172
- `${cyan(`.vitepress/cache`)} to your ${cyan(`.gitignore`)} file.`
+ `Make sure to add ${cyan(`${gitignorePrefix}/dist`)} and ` +
173
+ `${cyan(`${gitignorePrefix}/cache`)} to your ` +
174
+ `${cyan(`.gitignore`)} file.`
175
)
176
}
177
if (
0 commit comments