Skip to content

Commit

Permalink
Fix typings path
Browse files Browse the repository at this point in the history
The typings file name is wrongly pointing to `./lib/index.ts` (which does not exists) creating a tsc compilation error

```error TS7016: Could not find a declaration file for module '@tsed/swagger'. '/Users/javiergomez/workspace/node/tsed/test/node_modules/@tsed/swagger/lib/index.js' implicitly has an 'any' type.
  Try `npm install @types/tsed__swagger` if it exists or add a new declaration (.d.ts) file containing `declare module '@tsed/swagger';`

3 import {Description, Example} from "@tsed/swagger";```
  • Loading branch information
javier-ga committed Jul 15, 2020
1 parent 3a12d21 commit 81d23ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/swagger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "5.60.6",
"description": "Swagger package for Ts.ED framework",
"main": "./lib/index.js",
"typings": "./lib/index.ts",
"typings": "./lib/index.d.ts",
"scripts": {
"build": "tsc --build tsconfig.compile.json",
"build:doc": "tsc --build tsconfig.doc.json"
Expand All @@ -20,4 +20,4 @@
"devDependencies": {
"@tsed/common": "5.60.6"
}
}
}

0 comments on commit 81d23ad

Please sign in to comment.