Skip to content

Commit

Permalink
fix(@nanoexpress/addon-swagger-parse): declaration fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dalisoft committed Oct 31, 2021
1 parent b2f6720 commit 8f2b4ec
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/swagger-parse/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"version": "1.0.0",
"description": "TypeScript and Ajv generator add-on for nanoexpress",
"type": "module",
"main": "swagger-parse.es.js",
"typings": "swagger-parse.d.ts",
"main": "esm/swagger-parse.es.js",
"typings": "typings/swagger-parse.d.ts",
"publishConfig": {
"access": "restricted"
},
Expand Down
8 changes: 7 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,13 @@ export default ['swagger-parse'].map((name) => ({
plugins: [
resolve(),
typescript({
// eslint-disable-next-line @typescript-eslint/naming-convention
tsconfigOverride: {
include: [`packages/${name}/src`],
compilerOptions: {
rootDir: `packages/${name}/src`,
declarationDir: `packages/${name}/typings`
}
},
rollupCommonJSResolveHack: false,
clean: true,
useTsconfigDeclarationDir: true
Expand Down

0 comments on commit 8f2b4ec

Please sign in to comment.