1 | export interface Options {
|
2 | cwd: string;
|
3 | }
|
4 |
|
5 |
|
6 |
|
7 | export interface DependenciesJson {
|
8 | [index: string]: {
|
9 | deps: {
|
10 | [index: string]: string;
|
11 | };
|
12 | peerDeps: {
|
13 | [index: string]: string;
|
14 | };
|
15 | };
|
16 | }
|
17 |
|
18 |
|
19 |
|
20 | export declare type Browser = string | Overrides;
|
21 |
|
22 |
|
23 |
|
24 | export interface Overrides {
|
25 | [dependency: string]: string;
|
26 | }
|
27 | export interface JspmPackageJson {
|
28 | name: string;
|
29 | main: string;
|
30 | version?: string;
|
31 | typings?: string;
|
32 | browser?: Browser;
|
33 | browserTypings?: Browser;
|
34 | directories?: {
|
35 | baseURL: string;
|
36 | packages?: string;
|
37 | };
|
38 | configFiles?: ConfigFiles;
|
39 | dependencies?: {
|
40 | [index: string]: string;
|
41 | };
|
42 | peerDependencies?: {
|
43 | [index: string]: string;
|
44 | };
|
45 | devDependencie?: {
|
46 | [index: string]: string;
|
47 | };
|
48 | overrides?: {
|
49 | [index: string]: any;
|
50 | };
|
51 | }
|
52 |
|
53 |
|
54 |
|
55 | export interface JspmConfig {
|
56 | getDependencyTree(moduleName: string): any;
|
57 | }
|
58 | export interface ConfigFiles {
|
59 | jspm: string;
|
60 | 'jspm:browser': string;
|
61 | 'jspm:dev': string;
|
62 | 'jspm:node': string;
|
63 | }
|
64 | export interface Configs {
|
65 | jspm?: any;
|
66 | browser?: any;
|
67 | dev?: any;
|
68 | node?: any;
|
69 | }
|
70 | export interface JspmProjectInfo {
|
71 | jspmPackageJson: JspmPackageJson;
|
72 | jspmConfigs: Configs;
|
73 | dependenciesJson?: DependenciesJson;
|
74 | }
|
75 | export interface PathMap {
|
76 | [prefix: string]: string;
|
77 | }
|
78 |
|
79 |
|
80 |
|
81 | export interface ModuleMap {
|
82 | [moduleName: string]: string;
|
83 | }
|
84 | export interface PackageMap {
|
85 | [versionedName: string]: {
|
86 | map: ModuleMap;
|
87 | };
|
88 | }
|
89 | export interface DependencyInfo {
|
90 | paths: PathMap;
|
91 | map: ModuleMap;
|
92 | packages: PackageMap;
|
93 | }
|
94 | export interface DependencyBranch {
|
95 | [moduleName: string]: DependencyTree;
|
96 | }
|
97 | export interface DependencyTree {
|
98 | path: string;
|
99 | map?: DependencyBranch;
|
100 | }
|