Skip to content

[BUG] [typescript-angular] local package installation fails because of link issue #1988

@MBcom

Description

@MBcom

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • [x ] What's the version of OpenAPI Generator used?
  • [ x] Have you search for related issues/PRs?
  • [x ] What's the actual output vs expected output?
  • [Optional] Bounty to sponsor the fix (example)
Description
  • if you install the generated typescript angular package locally like described in the README.md then you ran in trouble on windows if the version of the api packages changes
  • so installing the build tgz bundle instead induced npm to copy the generated files to the node_modules folder instead of symlinking them

the bug bevaviour is actually described in the README.md

the linked pull request solves this issue

openapi-generator version

4.0.0

OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce

run

npm install --save <Path to api package>

change something on the api package, do some git commits on an other machine like an unix based system, pull the changes and install the new api package again - the new changes are not adopted
see angular/angular-cli#8284

Related issues/PRs

look at the linked pr

Suggest a fix

look at the linked pr

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions