Lines Matching refs:moduleName
373 for (const moduleName of moduleNames) { constant
374 const result = ts.resolveModuleName(moduleName, containingFile, compilerOptions, {
398 } else if (/^@(system|ohos)\./i.test(moduleName.trim())) {
399 const modulePath: string = path.resolve(__dirname, '../../../api', moduleName + '.d.ts');
400 if (systemModules.includes(moduleName + '.d.ts') && ts.sys.fileExists(modulePath)) {
405 } else if (/\.ets$/.test(moduleName) && !/\.d\.ets$/.test(moduleName)) {
406 const modulePath: string = path.resolve(path.dirname(containingFile), moduleName);
412 } else if (/\.ts$/.test(moduleName)) {
413 const modulePath: string = path.resolve(path.dirname(containingFile), moduleName);
420 const modulePath: string = path.resolve(__dirname, '../../../api', moduleName + '.d.ts');
421 const suffix: string = /\.js$/.test(moduleName) ? '' : '.js';
422 … const jsModulePath: string = path.resolve(__dirname, '../node_modules', moduleName + suffix);
424 path.resolve(__dirname, '../node_modules', moduleName + '/index.js');
426 /\.d\.ets$/.test(moduleName) ? moduleName : moduleName + EXTNAME_D_ETS);
440 …projectConfig.projectPath.substring(0, srcIndex), moduleName + path.sep + 'index' + EXTNAME_D_ETS);