tsutils icon indicating copy to clipboard operation
tsutils copied to clipboard

make peerDependency on typescript optional

Open nilzona opened this issue 3 years ago • 1 comments

If a library like e.g. eslint-plugin-jest is built with typescript and depends on tsutils, then you will get an "unmet peer dependency" warning on typescript if you use that library in a non-ts project.

This can be solved by making the peerDependency on typescript optional in package.json like the @typescript-eslint/* projects. An example can be found here

 "peerDependenciesMeta": {
    "typescript": {
      "optional": true
    }
  },

nilzona avatar May 28 '22 22:05 nilzona

This may be related to, or a potential duplicate of #134

cschroedl-gov avatar Aug 17 '22 15:08 cschroedl-gov