UNPKG

1.21 kBTypeScriptView Raw
1import type { Assembly, TypeSystem } from 'jsii-reflect';
2export declare const DEFAULT_PACK_COMMAND = "npm pack";
3export interface JsiiModuleOptions {
4 /**
5 * Name of the module
6 */
7 name: string;
8 /**
9 * The module directory
10 */
11 moduleDirectory: string;
12 /**
13 * Identifier of the targets to build
14 */
15 availableTargets: string[];
16 /**
17 * Output directory where to package everything
18 */
19 defaultOutputDirectory: string;
20 /**
21 * Names of packages this package depends on, if any
22 */
23 dependencyNames?: string[];
24}
25export declare class JsiiModule {
26 readonly name: string;
27 readonly dependencyNames: string[];
28 readonly moduleDirectory: string;
29 readonly availableTargets: string[];
30 outputDirectory: string;
31 private _tarball?;
32 _assembly?: Assembly;
33 constructor(options: JsiiModuleOptions);
34 /**
35 * Prepare an NPM package from this source module
36 */
37 npmPack(packCommand?: string): Promise<void>;
38 get tarball(): string;
39 load(system: TypeSystem, validate?: boolean): Promise<Assembly>;
40 get assembly(): Assembly;
41 cleanup(): Promise<void>;
42}
43//# sourceMappingURL=packaging.d.ts.map
\No newline at end of file