Merge pull request #44 from huankong233/main

chore: use upath to replace node:path
This commit is contained in:
pengzhanbo 2024-01-12 13:40:41 +08:00 committed by GitHub
commit 7933b824b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 9 additions and 6 deletions

View File

@ -38,7 +38,8 @@
"create-filter": "^1.0.1",
"fast-glob": "^3.3.2",
"gray-matter": "^4.0.3",
"json2yaml": "^1.1.0"
"json2yaml": "^1.1.0",
"upath": "2.0.1"
},
"publishConfig": {
"access": "public"

View File

@ -1,5 +1,5 @@
import fs from 'node:fs'
import path from 'node:path'
import path from 'upath'
import fg from 'fast-glob'
import type { MarkdownFile } from '../shared/index.js'

View File

@ -43,6 +43,7 @@
"@vuepress/utils": "2.0.0-rc.0",
"chokidar": "^3.5.3",
"create-filter": "^1.0.1",
"upath": "2.0.1",
"vue": "^3.4.10"
},
"publishConfig": {

View File

@ -1,4 +1,4 @@
import path from 'node:path'
import path from 'upath'
import type { App } from '@vuepress/core'
import * as chokidar from 'chokidar'
import { createFilter } from 'create-filter'

View File

@ -82,6 +82,7 @@
"katex": "^0.16.9",
"lodash.merge": "^4.6.2",
"nanoid": "^5.0.4",
"upath": "2.0.1",
"vue": "^3.4.10",
"vue-router": "4.2.5",
"vuepress-plugin-comment2": "2.0.0-rc.10",

View File

@ -1,4 +1,4 @@
import path from 'node:path'
import path from 'upath'
import type { App } from '@vuepress/core'
import { resolveLocalePath } from '@vuepress/shared'
import type {

View File

@ -1,4 +1,4 @@
import path from 'node:path'
import path from 'upath'
import type { App, Page } from '@vuepress/core'
import { createPage } from '@vuepress/core'
import type {

View File

@ -1,6 +1,6 @@
import fs from 'node:fs'
import path from 'node:path'
import process from 'node:process'
import path from 'upath'
import { customAlphabet } from 'nanoid'
import { getDirname } from '@vuepress/utils'