mirror of
https://github.com/element-plus/element-plus.git
synced 2025-04-12 16:40:36 +08:00
fix(build): build web-types.json compatible with windows (#15379)
This commit is contained in:
parent
553fe41529
commit
30034a5063
@ -1,4 +1,5 @@
|
||||
import path from 'path'
|
||||
import os from 'os'
|
||||
import {
|
||||
arrayToRegExp,
|
||||
getTypeSymbol,
|
||||
@ -197,14 +198,18 @@ export const buildHelper: TaskFunction = (done) => {
|
||||
? tagVer.slice(1)
|
||||
: tagVer
|
||||
: version!
|
||||
let entry = `${path.resolve(
|
||||
projRoot,
|
||||
'docs/en-US/component'
|
||||
)}/!(datetime-picker|message-box|message).md`
|
||||
if (os.platform() === 'win32') {
|
||||
entry = entry.replace(/\\/g, '/')
|
||||
}
|
||||
|
||||
main({
|
||||
name: name!,
|
||||
version: _version,
|
||||
entry: `${path.resolve(
|
||||
projRoot,
|
||||
'docs/en-US/component'
|
||||
)}/!(datetime-picker|message-box|message).md`,
|
||||
entry,
|
||||
outDir: epOutput,
|
||||
reComponentName,
|
||||
reDocUrl,
|
||||
|
Loading…
x
Reference in New Issue
Block a user