mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: cleanup reexports
This commit is contained in:
@@ -1,10 +0,0 @@
|
||||
import { PlatformContext } from "../../module-name-resolver/qualifier-matcher";
|
||||
|
||||
export class FileNameResolver {
|
||||
constructor(context: PlatformContext);
|
||||
resolveFileName(path: string, ext: string): string;
|
||||
clearCache(): void;
|
||||
}
|
||||
|
||||
export function resolveFileName(path: string, ext: string): string;
|
||||
export function clearCache(): void;
|
||||
@@ -1,10 +1,11 @@
|
||||
import { PlatformContext, FileNameResolver as FileNameResolverDefinition } from ".";
|
||||
import { FileNameResolver as FileNameResolverDefinition } from ".";
|
||||
import { PlatformContext } from "../../module-name-resolver/qualifier-matcher";
|
||||
import { screen, device } from "../../platform";
|
||||
import { path as fsPath, Folder, File } from "../file-system";
|
||||
import * as trace from "../../trace";
|
||||
import { path as fsPath, Folder, File } from "..";
|
||||
import { Trace } from "../../trace";
|
||||
import * as appCommonModule from "../../application/application-common";
|
||||
|
||||
import { findMatch, stripQualifiers } from "../../module-name-resolver/qualifier-matcher/qualifier-matcher";
|
||||
import { findMatch, stripQualifiers } from "../../module-name-resolver/qualifier-matcher";
|
||||
|
||||
export class FileNameResolver implements FileNameResolverDefinition {
|
||||
private _context: PlatformContext;
|
||||
@@ -63,8 +64,8 @@ export class FileNameResolver implements FileNameResolverDefinition {
|
||||
});
|
||||
}
|
||||
else {
|
||||
if (trace.isEnabled()) {
|
||||
trace.write("Could not find folder " + folderPath + " when loading " + path + ext, trace.categories.Navigation);
|
||||
if (Trace.isEnabled()) {
|
||||
Trace.write("Could not find folder " + folderPath + " when loading " + path + ext, Trace.categories.Navigation);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
{
|
||||
"name": "file-name_resolver",
|
||||
"main": "file-name-resolver",
|
||||
"types": "file-name-resolver.d.ts"
|
||||
}
|
||||
@@ -323,7 +323,7 @@ export class File extends FileSystemEntity {
|
||||
});
|
||||
}
|
||||
|
||||
@profile
|
||||
@profile()
|
||||
public readTextSync(onError?: (error: any) => any, encoding?: string): string {
|
||||
this.checkAccess();
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"name": "file-system",
|
||||
"main": "file-system",
|
||||
"types": "file-system.d.ts",
|
||||
"nativescript": {}
|
||||
}
|
||||
Reference in New Issue
Block a user