Merge pull request #44 from huankong233/main
chore: use upath to replace node:path
This commit is contained in:
commit
7933b824b9
@ -38,7 +38,8 @@
|
|||||||
"create-filter": "^1.0.1",
|
"create-filter": "^1.0.1",
|
||||||
"fast-glob": "^3.3.2",
|
"fast-glob": "^3.3.2",
|
||||||
"gray-matter": "^4.0.3",
|
"gray-matter": "^4.0.3",
|
||||||
"json2yaml": "^1.1.0"
|
"json2yaml": "^1.1.0",
|
||||||
|
"upath": "2.0.1"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
"access": "public"
|
"access": "public"
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import fs from 'node:fs'
|
import fs from 'node:fs'
|
||||||
import path from 'node:path'
|
import path from 'upath'
|
||||||
import fg from 'fast-glob'
|
import fg from 'fast-glob'
|
||||||
import type { MarkdownFile } from '../shared/index.js'
|
import type { MarkdownFile } from '../shared/index.js'
|
||||||
|
|
||||||
|
|||||||
@ -43,6 +43,7 @@
|
|||||||
"@vuepress/utils": "2.0.0-rc.0",
|
"@vuepress/utils": "2.0.0-rc.0",
|
||||||
"chokidar": "^3.5.3",
|
"chokidar": "^3.5.3",
|
||||||
"create-filter": "^1.0.1",
|
"create-filter": "^1.0.1",
|
||||||
|
"upath": "2.0.1",
|
||||||
"vue": "^3.4.10"
|
"vue": "^3.4.10"
|
||||||
},
|
},
|
||||||
"publishConfig": {
|
"publishConfig": {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import path from 'node:path'
|
import path from 'upath'
|
||||||
import type { App } from '@vuepress/core'
|
import type { App } from '@vuepress/core'
|
||||||
import * as chokidar from 'chokidar'
|
import * as chokidar from 'chokidar'
|
||||||
import { createFilter } from 'create-filter'
|
import { createFilter } from 'create-filter'
|
||||||
|
|||||||
@ -82,6 +82,7 @@
|
|||||||
"katex": "^0.16.9",
|
"katex": "^0.16.9",
|
||||||
"lodash.merge": "^4.6.2",
|
"lodash.merge": "^4.6.2",
|
||||||
"nanoid": "^5.0.4",
|
"nanoid": "^5.0.4",
|
||||||
|
"upath": "2.0.1",
|
||||||
"vue": "^3.4.10",
|
"vue": "^3.4.10",
|
||||||
"vue-router": "4.2.5",
|
"vue-router": "4.2.5",
|
||||||
"vuepress-plugin-comment2": "2.0.0-rc.10",
|
"vuepress-plugin-comment2": "2.0.0-rc.10",
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import path from 'node:path'
|
import path from 'upath'
|
||||||
import type { App } from '@vuepress/core'
|
import type { App } from '@vuepress/core'
|
||||||
import { resolveLocalePath } from '@vuepress/shared'
|
import { resolveLocalePath } from '@vuepress/shared'
|
||||||
import type {
|
import type {
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import path from 'node:path'
|
import path from 'upath'
|
||||||
import type { App, Page } from '@vuepress/core'
|
import type { App, Page } from '@vuepress/core'
|
||||||
import { createPage } from '@vuepress/core'
|
import { createPage } from '@vuepress/core'
|
||||||
import type {
|
import type {
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
import fs from 'node:fs'
|
import fs from 'node:fs'
|
||||||
import path from 'node:path'
|
|
||||||
import process from 'node:process'
|
import process from 'node:process'
|
||||||
|
import path from 'upath'
|
||||||
import { customAlphabet } from 'nanoid'
|
import { customAlphabet } from 'nanoid'
|
||||||
import { getDirname } from '@vuepress/utils'
|
import { getDirname } from '@vuepress/utils'
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user