UNPKG

811 BTypeScriptView Raw
1import { NodePackage, TSConfigs } from './types';
2import { Diagnostic } from 'typescript';
3export declare function parseConfigFile(filePath: string): {
4 configs: TSConfigs;
5 error: Diagnostic | undefined;
6};
7export declare function getSafePackageName(name: string): string | undefined;
8export declare function createNGCConfig(filePath: string, moduleId: string, configs?: TSConfigs): void;
9export declare function readPackage(packageFilePath: string): NodePackage;
10export declare function validatePkgModuleEntries({pkgMain, pkgModule, pkgES2015, pkgTypings}: {
11 pkgMain?: string;
12 pkgModule?: string;
13 pkgES2015?: string;
14 pkgTypings?: string;
15}, pkg: NodePackage, projectPath: string): void;
16export declare function validatePkgDependencies(pkg: NodePackage, externalModules: string[]): void;