mirror of
https://github.com/dream-num/univer.git
synced 2026-08-30 17:21:11 +08:00
5 lines
561 B
JavaScript
5 lines
561 B
JavaScript
const { copyFileSync } = require('./utils.js');
|
|
|
|
// The names of modules such as Selection and Range conflict with lib.dom.d.ts. api-extractor will parse to get Selection_2 and Range_2. This problem has not been fixed in api-extractor in version 7.25.0. Refer to https://github.com/microsoft/rushstack/pull/2608 for local patching to fix this issue. In addition, pnpm is not compatible with patch-package, so use node script to solve
|
|
copyFileSync('./patches/ApiModelGenerator.js', './node_modules/@microsoft/api-extractor/lib/generators/ApiModelGenerator.js');
|