Lines Matching refs:filePath
129 filePath: string; property in ModuleInfo
138 constructor(filePath: string, tempFilePath: string, buildFilePath: string,
140 this.filePath = filePath;
146 this.recordName = getOhmUrlByFilepath(filePath, projectConfig, logger);
147 this.sourceFile = filePath.replace(projectConfig.projectRootPath + path.sep, '');
301 function getEntryInfo(filePath: string, resourceResolveData: any): string {
309 if (toUnixPath(filePath) === value) {
317 let entry: string = toUnixPath(filePath.replace(npmInfoPath, ''));
367 function processNodeModulesFile(filePath: string, tempFilePath: string, buildFilePath: string, abcF…
368 let npmPkgPath: string = getEntryInfo(filePath, module.resourceResolveData);
374 …const tempModuleInfo: ModuleInfo = new ModuleInfo(filePath, tempFilePath, buildFilePath, abcFilePa…
377 } else if (filePath.endsWith(EXTNAME_MJS)) {
378 …const tempModuleInfo: ModuleInfo = new ModuleInfo(filePath, tempFilePath, buildFilePath, abcFilePa…
382 …const tempModuleInfo: ModuleInfo = new ModuleInfo(filePath, tempFilePath, buildFilePath, abcFilePa…
386 if (!filePath.endsWith(EXTNAME_JSON)) {
387 … buildMapFileList.add(toUnixPath(filePath.replace(projectConfig.projectRootPath + path.sep, '')));
391 function processEtsModule(filePath: string, tempFilePath: string, buildFilePath: string, nodeModule…
393 if (filePath.endsWith(EXTNAME_D_ETS)) {
404 if (isPackageModulesFile(filePath, projectConfig)) {
405 …processNodeModulesFile(filePath, tempFilePath, buildFilePath, abcFilePath, nodeModulesFile, module…
408 …const tempModuleInfo: ModuleInfo = new ModuleInfo(filePath, tempFilePath, buildFilePath, abcFilePa…
411 buildMapFileList.add(toUnixPath(filePath.replace(projectConfig.projectRootPath + path.sep, '')));
414 function processTsModule(filePath: string, tempFilePath: string, buildFilePath: string, nodeModules…
416 if (filePath.endsWith(EXTNAME_D_TS)) {
424 if (isPackageModulesFile(filePath, projectConfig)) {
425 …processNodeModulesFile(filePath, tempFilePath, buildFilePath, abcFilePath, nodeModulesFile, module…
428 …const tempModuleInfo: ModuleInfo = new ModuleInfo(filePath, tempFilePath, buildFilePath, abcFilePa…
431 buildMapFileList.add(toUnixPath(filePath.replace(projectConfig.projectRootPath + path.sep, '')));
434 function processJsModule(filePath: string, tempFilePath: string, buildFilePath: string, nodeModules…
439 if (filePath.endsWith(EXTNAME_MJS) || filePath.endsWith(EXTNAME_CJS)) {
440 fs.copyFileSync(filePath, tempFilePath);
443 if (isPackageModulesFile(filePath, projectConfig)) {
444 …processNodeModulesFile(filePath, tempFilePath, buildFilePath, abcFilePath, nodeModulesFile, module…
447 …const tempModuleInfo: ModuleInfo = new ModuleInfo(filePath, tempFilePath, buildFilePath, abcFilePa…
450 buildMapFileList.add(toUnixPath(filePath.replace(projectConfig.projectRootPath + path.sep, '')));
453 function processJsonModule(filePath: string, tempFilePath: string, buildFilePath: string, nodeModul…
455 if (isPackageModulesFile(filePath, projectConfig)) {
456 …processNodeModulesFile(filePath, tempFilePath, buildFilePath, abcFilePath, nodeModulesFile, module…
459 …const tempModuleInfo: ModuleInfo = new ModuleInfo(filePath, tempFilePath, buildFilePath, abcFilePa…
540 const filePath: string = module.resourceResolveData.path; constant
541 …let tempFilePath = genTemporaryPath(filePath, projectConfig.projectPath, process.env.cachePath, pr…
546 …let buildFilePath: string = genBuildPath(filePath, projectConfig.projectPath, projectConfig.buildP…
552 switch (path.extname(filePath)) {
554 processEtsModule(filePath, tempFilePath, buildFilePath, nodeModulesFile, module);
558 processTsModule(filePath, tempFilePath, buildFilePath, nodeModulesFile, module);
564 processJsModule(filePath, tempFilePath, buildFilePath, nodeModulesFile, module);
568 processJsonModule(filePath, tempFilePath, buildFilePath, nodeModulesFile, module);
572 logger.error(red, `ArkTS:ERROR Cannot find resolve this file path: ${filePath}`, reset);
1095 let filePath: string = path.join(projectConfig.projectPath, file);
1096 validateFilePathLength(filePath, logger);
1097 …let tempFilePath: string = genTemporaryPath(filePath, projectConfig.projectPath, process.env.cache…
1105 switch (path.extname(filePath)) {
1107 processEtsModule(filePath, tempFilePath, buildFilePath, nodeModulesFile, undefined);
1111 processTsModule(filePath, tempFilePath, buildFilePath, nodeModulesFile, undefined);
1117 processJsModule(filePath, tempFilePath, buildFilePath, nodeModulesFile, undefined);
1121 … logger.debug(blue, `ArkTS: json source file: ${filePath} changed, skip hot reload build`, reset);
1125 …logger.debug(blue, `ArkTS:ERROR Cannot resolve file path: ${filePath}, stop hot reload build`, res…