swagger-codegen icon indicating copy to clipboard operation
swagger-codegen copied to clipboard

[JavaScript] invokerPackage Config Parameter Not Functioning Properly

Open PeaceInColour opened this issue 8 years ago • 0 comments

Description

Using invokerPackage in a config file should result in setting the root path for the SDK. However, ApiClient.js and index.js are not moved into the root directory and remain in /src. As a result the entry point to the SDK ("main" in package.json) is set to /src/invokerPackage/index.js but index.js remains at /src.

Swagger-codegen version

Snapshot of 2.4.0

Steps to reproduce
  1. Create a JavaScript config file which has the invokerPackage parameter set
  2. Generate a JavaScript SDK with above config file

PeaceInColour avatar Jun 01 '18 18:06 PeaceInColour