Lines Matching refs:filePath
131 filePath: string; property in ModuleInfo
140 constructor(filePath: string, tempFilePath: string, buildFilePath: string,
142 this.filePath = filePath;
148 this.recordName = getOhmUrlByFilepath(filePath, projectConfig, logger);
149 this.sourceFile = filePath.replace(projectConfig.projectRootPath + path.sep, '');
303 function getEntryInfo(filePath: string, resourceResolveData: any): string {
311 if (toUnixPath(filePath) === value) {
319 let entry: string = toUnixPath(filePath.replace(npmInfoPath, ''));
369 function processNodeModulesFile(filePath: string, tempFilePath: string, buildFilePath: string, abcF…
370 let npmPkgPath: string = getEntryInfo(filePath, module.resourceResolveData);
376 …const tempModuleInfo: ModuleInfo = new ModuleInfo(filePath, tempFilePath, buildFilePath, abcFilePa…
379 } else if (filePath.endsWith(EXTNAME_MJS)) {
380 …const tempModuleInfo: ModuleInfo = new ModuleInfo(filePath, tempFilePath, buildFilePath, abcFilePa…
384 …const tempModuleInfo: ModuleInfo = new ModuleInfo(filePath, tempFilePath, buildFilePath, abcFilePa…
388 if (!filePath.endsWith(EXTNAME_JSON)) {
389 … buildMapFileList.add(toUnixPath(filePath.replace(projectConfig.projectRootPath + path.sep, '')));
393 function processEtsModule(filePath: string, tempFilePath: string, buildFilePath: string, nodeModule…
395 if (filePath.endsWith(EXTNAME_D_ETS)) {
406 if (isPackageModulesFile(filePath, projectConfig)) {
407 …processNodeModulesFile(filePath, tempFilePath, buildFilePath, abcFilePath, nodeModulesFile, module…
410 …const tempModuleInfo: ModuleInfo = new ModuleInfo(filePath, tempFilePath, buildFilePath, abcFilePa…
413 buildMapFileList.add(toUnixPath(filePath.replace(projectConfig.projectRootPath + path.sep, '')));
416 function processTsModule(filePath: string, tempFilePath: string, buildFilePath: string, nodeModules…
418 if (filePath.endsWith(EXTNAME_D_TS)) {
426 if (isPackageModulesFile(filePath, projectConfig)) {
427 …processNodeModulesFile(filePath, tempFilePath, buildFilePath, abcFilePath, nodeModulesFile, module…
430 …const tempModuleInfo: ModuleInfo = new ModuleInfo(filePath, tempFilePath, buildFilePath, abcFilePa…
433 buildMapFileList.add(toUnixPath(filePath.replace(projectConfig.projectRootPath + path.sep, '')));
436 function processJsModule(filePath: string, tempFilePath: string, buildFilePath: string, nodeModules…
441 if (filePath.endsWith(EXTNAME_MJS) || filePath.endsWith(EXTNAME_CJS)) {
442 fs.copyFileSync(filePath, tempFilePath);
445 if (isPackageModulesFile(filePath, projectConfig)) {
446 …processNodeModulesFile(filePath, tempFilePath, buildFilePath, abcFilePath, nodeModulesFile, module…
449 …const tempModuleInfo: ModuleInfo = new ModuleInfo(filePath, tempFilePath, buildFilePath, abcFilePa…
452 buildMapFileList.add(toUnixPath(filePath.replace(projectConfig.projectRootPath + path.sep, '')));
455 function processJsonModule(filePath: string, tempFilePath: string, buildFilePath: string, nodeModul…
457 if (isPackageModulesFile(filePath, projectConfig)) {
458 …processNodeModulesFile(filePath, tempFilePath, buildFilePath, abcFilePath, nodeModulesFile, module…
461 …const tempModuleInfo: ModuleInfo = new ModuleInfo(filePath, tempFilePath, buildFilePath, abcFilePa…
542 const filePath: string = module.resourceResolveData.path; constant
543 …let tempFilePath = genTemporaryPath(filePath, projectConfig.projectPath, process.env.cachePath, pr…
548 …let buildFilePath: string = genBuildPath(filePath, projectConfig.projectPath, projectConfig.buildP…
554 switch (path.extname(filePath)) {
556 processEtsModule(filePath, tempFilePath, buildFilePath, nodeModulesFile, module);
560 processTsModule(filePath, tempFilePath, buildFilePath, nodeModulesFile, module);
566 processJsModule(filePath, tempFilePath, buildFilePath, nodeModulesFile, module);
570 processJsonModule(filePath, tempFilePath, buildFilePath, nodeModulesFile, module);
574 logger.error(red, `ArkTS:ERROR Cannot find resolve this file path: ${filePath}`, reset);
1097 let filePath: string = path.join(projectConfig.projectPath, file);
1098 validateFilePathLength(filePath, logger);
1099 …let tempFilePath: string = genTemporaryPath(filePath, projectConfig.projectPath, process.env.cache…
1107 switch (path.extname(filePath)) {
1109 processEtsModule(filePath, tempFilePath, buildFilePath, nodeModulesFile, undefined);
1113 processTsModule(filePath, tempFilePath, buildFilePath, nodeModulesFile, undefined);
1119 processJsModule(filePath, tempFilePath, buildFilePath, nodeModulesFile, undefined);
1123 … logger.debug(blue, `ArkTS: json source file: ${filePath} changed, skip hot reload build`, reset);
1127 …logger.debug(blue, `ArkTS:ERROR Cannot resolve file path: ${filePath}, stop hot reload build`, res…