parent
1034546a4c
commit
3ff94faca1
@ -7,13 +7,6 @@
|
|||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"serve": "vite preview"
|
"serve": "vite preview"
|
||||||
},
|
},
|
||||||
"buildOptions": {
|
|
||||||
"formats": [
|
|
||||||
"global"
|
|
||||||
],
|
|
||||||
"env": "development",
|
|
||||||
"enableNonBrowserBranches": true
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/codemirror": "^0.0.108",
|
"@types/codemirror": "^0.0.108",
|
||||||
"@vitejs/plugin-vue": "^1.2.0",
|
"@vitejs/plugin-vue": "^1.2.0",
|
||||||
|
@ -75,8 +75,8 @@ async function build(target) {
|
|||||||
const pkgDir = path.resolve(`packages/${target}`)
|
const pkgDir = path.resolve(`packages/${target}`)
|
||||||
const pkg = require(`${pkgDir}/package.json`)
|
const pkg = require(`${pkgDir}/package.json`)
|
||||||
|
|
||||||
// only build published packages for release
|
// if this is a full build (no specific targets), ignore private packages
|
||||||
if (isRelease && pkg.private) {
|
if ((isRelease || !targets.length) && pkg.private) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,9 +118,8 @@ async function build(target) {
|
|||||||
const { Extractor, ExtractorConfig } = require('@microsoft/api-extractor')
|
const { Extractor, ExtractorConfig } = require('@microsoft/api-extractor')
|
||||||
|
|
||||||
const extractorConfigPath = path.resolve(pkgDir, `api-extractor.json`)
|
const extractorConfigPath = path.resolve(pkgDir, `api-extractor.json`)
|
||||||
const extractorConfig = ExtractorConfig.loadFileAndPrepare(
|
const extractorConfig =
|
||||||
extractorConfigPath
|
ExtractorConfig.loadFileAndPrepare(extractorConfigPath)
|
||||||
)
|
|
||||||
const extractorResult = Extractor.invoke(extractorConfig, {
|
const extractorResult = Extractor.invoke(extractorConfig, {
|
||||||
localBuild: true,
|
localBuild: true,
|
||||||
showVerboseMessages: true
|
showVerboseMessages: true
|
||||||
|
Loading…
Reference in New Issue
Block a user