Browse Source
Merge pull request #5240 from abpframework/fix/schema-source
Removed source param overwrite in createApisGenerator
pull/5243/head
Mehmet Erim
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
6 deletions
-
npm/ng-packs/packages/schematics/src/utils/api.ts
|
|
|
@ -2,10 +2,5 @@ import { chain, schematic } from '@angular-devkit/schematics'; |
|
|
|
import { GenerateProxySchema } from '../models'; |
|
|
|
|
|
|
|
export function createApisGenerator(schema: GenerateProxySchema, generated: string[]) { |
|
|
|
return chain( |
|
|
|
generated.map(m => { |
|
|
|
const apiSchema = { ...schema, source: schema.target, module: m }; |
|
|
|
return schematic('api', apiSchema); |
|
|
|
}), |
|
|
|
); |
|
|
|
return chain(generated.map(m => schematic('api', { ...schema, module: m }))); |
|
|
|
} |
|
|
|
|