修复框架项目中导入路径与API文档生成插件路径冲突

This commit is contained in:
dgflash
2026-01-10 19:50:20 +08:00
parent 8702429f35
commit 2c5e2452e6
4 changed files with 17 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
/// <reference path="D:\cocos-dashboard-editors\Creator\3.8.4\resources\resources\3d\engine\bin\.declarations\cc.d.ts"/>
/// <reference path="D:\Cocos Editors\Creator\3.8.8\resources\resources\3d\engine\bin\.declarations\cc.d.ts"/>
/**
* @deprecated Global variable `cc` was dropped since 3.0. Use ES6 module syntax to import Cocos Creator APIs.

View File

@@ -54,11 +54,6 @@ declare module 'cc/env'{
*/
export const WECHAT_MINI_PROGRAM: boolean;
/**
* Running in the baidu's mini game.
*/
export const BAIDU: boolean;
/**
* Running in the xiaomi's quick game.
*/
@@ -100,19 +95,19 @@ declare module 'cc/env'{
export const HUAWEI: boolean;
/**
* Running in the cocosplay.
* Running in the migu's quick game.
*/
export const COCOSPLAY: boolean;
export const MIGU: boolean;
/**
* Running in the qtt's quick game.
* Running in the honor's quick game.
*/
export const QTT: boolean;
export const HONOR: boolean;
/**
* Running in the linksure's quick game.
* Running in the cocos runtime.
*/
export const LINKSURE: boolean;
export const COCOS_RUNTIME: boolean;
/**
* Running in the editor.

View File

@@ -1 +1 @@
/// <reference path="D:\cocos-dashboard-editors\Creator\3.8.4\resources\resources\3d\engine\@types\jsb.d.ts"/>
/// <reference path="D:\Cocos Editors\Creator\3.8.8\resources\resources\3d\engine\@types\jsb.d.ts"/>

View File

@@ -3,7 +3,7 @@
"target": "ES2017",
"module": "CommonJS",
"outDir": "./dist",
"rootDir": "./src",
"rootDir": "./",
"strict": true,
"moduleResolution": "node",
"esModuleInterop": true,
@@ -19,7 +19,14 @@
"./temp/declarations/cc.env"
]
},
"include": [
"assets/**/*",
"src/**/*",
"typedoc.ts"
],
"exclude": [
"assets/**/*"
"node_modules",
"dist",
"temp"
]
}