mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
11 lines
392 B
TypeScript
11 lines
392 B
TypeScript
import {writeFileSync} from 'fs';
|
|
import {buildConfig} from './build-config';
|
|
import {join} from 'path';
|
|
|
|
/** Create a typing file that links to the bundled definitions of NGC. */
|
|
export function createTypingsReexportFile(outputDir: string, entryName: string) {
|
|
writeFileSync(join(outputDir, `${entryName}.d.ts`),
|
|
buildConfig.licenseBanner + '\nexport * from "./typings/index";'
|
|
);
|
|
}
|