Files
univer/scripts/postinstall.js
T
dream-num a6b429a781 init
2022-09-29 20:12:19 +08:00

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');