mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-23 07:10:52 +00:00
delete systemapi remove common
Signed-off-by: wangqing <wangqing136@huawei.com>
This commit is contained in:
parent
66937f6c6b
commit
3c40677b6e
@ -223,7 +223,7 @@ function processFileNameWithoutExt(filePath) {
|
||||
function tsTransform(utFiles, callback) {
|
||||
utFiles.forEach((url) => {
|
||||
const apiBaseName = path.basename(url);
|
||||
if (/\.json/.test(url) || apiBaseName === 'index-full.d.ts' || apiBaseName === 'common.d.ts') {
|
||||
if (/\.json/.test(url) || apiBaseName === 'index-full.d.ts') {
|
||||
// 特殊类型文件处理
|
||||
const content = fs.readFileSync(url, 'utf-8');
|
||||
writeFile(url, content);
|
||||
|
Loading…
Reference in New Issue
Block a user