Browse Source

revert: use same schema in api command

pull/5264/head
Arman Ozak 6 years ago
parent
commit
65b170e6ef
  1. 4
      npm/ng-packs/packages/schematics/src/commands/api/index.ts
  2. 2
      npm/ng-packs/packages/schematics/src/models/generate-proxy-schema.ts

4
npm/ng-packs/packages/schematics/src/commands/api/index.ts

@ -10,7 +10,7 @@ import {
url, url,
} from '@angular-devkit/schematics'; } from '@angular-devkit/schematics';
import { Exception } from '../../enums'; import { Exception } from '../../enums';
import { GenerateApiSchema, ServiceGeneratorParams } from '../../models'; import { GenerateProxySchema, ServiceGeneratorParams } from '../../models';
import { import {
applyWithOverwrite, applyWithOverwrite,
buildDefaultPath, buildDefaultPath,
@ -31,7 +31,7 @@ import {
} from '../../utils'; } from '../../utils';
import * as cases from '../../utils/text'; import * as cases from '../../utils/text';
export default function(schema: GenerateApiSchema) { export default function(schema: GenerateProxySchema) {
const params = removeDefaultPlaceholders(schema); const params = removeDefaultPlaceholders(schema);
const moduleName = strings.camelize(params.module || 'app'); const moduleName = strings.camelize(params.module || 'app');

2
npm/ng-packs/packages/schematics/src/models/generate-proxy-schema.ts

@ -19,5 +19,3 @@ export interface GenerateProxySchema {
*/ */
target?: string; target?: string;
} }
export type GenerateApiSchema = Omit<GenerateProxySchema, 'api-name'>;

Loading…
Cancel
Save