mirror of
https://github.com/angular/angular-cli.git
synced 2025-05-18 20:02:40 +08:00
build: disable schema type generation
This commit is contained in:
parent
cde624ad76
commit
523d07309c
@ -2,7 +2,7 @@ import { logging } from '@angular-devkit/core';
|
|||||||
import * as fs from 'fs-extra';
|
import * as fs from 'fs-extra';
|
||||||
import * as path from 'path';
|
import * as path from 'path';
|
||||||
import { promisify } from 'util';
|
import { promisify } from 'util';
|
||||||
import {buildSchema} from './build-schema';
|
// import {buildSchema} from './build-schema';
|
||||||
|
|
||||||
const glob = promisify(require('glob'));
|
const glob = promisify(require('glob'));
|
||||||
const tar = require('tar');
|
const tar = require('tar');
|
||||||
@ -75,12 +75,12 @@ export default function build(packagesToBuild: string[],
|
|||||||
return fs.remove(dist);
|
return fs.remove(dist);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(() => logger.info('Creating schema.d.ts...'))
|
// .then(() => logger.info('Creating schema.d.ts...'))
|
||||||
.then(() => {
|
// .then(() => {
|
||||||
const input = path.join(root, 'packages/@angular/cli/lib/config/schema.json');
|
// const input = path.join(root, 'packages/@angular/cli/lib/config/schema.json');
|
||||||
const output = path.join(root, 'packages/@angular/cli/lib/config/schema.d.ts');
|
// const output = path.join(root, 'packages/@angular/cli/lib/config/schema.d.ts');
|
||||||
fs.writeFileSync(output, buildSchema(input, logger), { encoding: 'utf-8' });
|
// fs.writeFileSync(output, buildSchema(input, logger), { encoding: 'utf-8' });
|
||||||
})
|
// })
|
||||||
.then(() => logger.info('Compiling packages...'))
|
.then(() => logger.info('Compiling packages...'))
|
||||||
.then(() => {
|
.then(() => {
|
||||||
const packagesLogger = new logging.Logger('packages', logger);
|
const packagesLogger = new logging.Logger('packages', logger);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user