chore: cleanup reexports

This commit is contained in:
Nathan Walker
2020-07-05 14:53:34 -07:00
parent 1525c89733
commit 8f2900ad0b
306 changed files with 1197 additions and 1534 deletions

View File

@@ -1,5 +1,5 @@
import { ModuleNameResolver as ModuleNameResolverDefinition, ModuleListProvider } from "./";
import { screen, device } from "../platform/platform";
import { ModuleNameResolver as ModuleNameResolverDefinition } from "./";
import { screen, device } from "../platform";
import * as appCommonModule from "../application/application-common";
import { PlatformContext, findMatch, stripQualifiers } from "./qualifier-matcher";
import { registerModulesFromFileSystem } from "./non-bundle-workflow-compat";
@@ -7,6 +7,8 @@ import {
Trace
} from "../trace";
export type ModuleListProvider = () => string[];
export class ModuleNameResolver implements ModuleNameResolverDefinition {
private _cache = {};

View File

@@ -1,4 +1,4 @@
import * as fs from "../file-system/file-system";
import * as fs from "../file-system";
import * as appCommonModule from "../application/application-common";
import {
Trace

View File

@@ -1,5 +0,0 @@
{
"name": "module-name-resolver",
"main": "module-name-resolver",
"types": "module-name-resolver.d.ts"
}

View File

@@ -1,9 +1,15 @@
import { PlatformContext } from "./";
const MIN_WH: string = "minWH";
const MIN_W: string = "minW";
const MIN_H: string = "minH";
const PRIORITY_STEP = 10000;
export interface PlatformContext {
width: number;
height: number;
os: string;
deviceType: string;
}
interface QualifierSpec {
isMatch(path: string): boolean;
getMatchOccurences(path: string): Array<string>;

View File

@@ -1,5 +0,0 @@
{
"name": "qualifier-matcher",
"main": "qualifier-matcher",
"types": "qualifier-matcher.d.ts"
}