feat(compiler): scaffold compiler-dom
This commit is contained in:
20
scripts/bootstrap.js
vendored
20
scripts/bootstrap.js
vendored
@@ -47,6 +47,26 @@ files.forEach(shortName => {
|
||||
fs.writeFileSync(readmePath, `# ${name}`)
|
||||
}
|
||||
|
||||
const apiExtractorConfigPath = path.join(
|
||||
packagesDir,
|
||||
shortName,
|
||||
`api-extractor.json`
|
||||
)
|
||||
if (args.force || !fs.existsSync(apiExtractorConfigPath)) {
|
||||
fs.writeFileSync(
|
||||
apiExtractorConfigPath,
|
||||
`
|
||||
{
|
||||
"extends": "../../api-extractor.json",
|
||||
"mainEntryPointFilePath": "./dist/packages/<unscopedPackageName>/src/index.d.ts",
|
||||
"dtsRollup": {
|
||||
"untrimmedFilePath": "./dist/<unscopedPackageName>.d.ts"
|
||||
}
|
||||
}
|
||||
`.trim()
|
||||
)
|
||||
}
|
||||
|
||||
const srcDir = path.join(packagesDir, shortName, `src`)
|
||||
const indexPath = path.join(packagesDir, shortName, `src/index.ts`)
|
||||
if (args.force || !fs.existsSync(indexPath)) {
|
||||
|
||||
Reference in New Issue
Block a user