Skip to content

Commit

Permalink
chore: Don't publish tests, create declarations, stricter tsconfig (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
ffflorian committed Aug 14, 2019
1 parent 0f27a04 commit 250e1fa
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@
"typescript": "3.5.3"
},
"files": [
"dist"
"dist",
"!dist/**/*.test.js"
],
"homepage": "https://github.com/bennyn/swaxios#readme",
"keywords": [
Expand Down
1 change: 1 addition & 0 deletions src/generators/MethodGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export class MethodGenerator {
text: StringUtil.addStarsToNewline(parameter.description),
};
}
return;
};

return parameters.map(extractDescription).filter(Boolean) as Description[];
Expand Down
10 changes: 9 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
{
"compilerOptions": {
"alwaysStrict": true,
"declaration": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"lib": ["esnext"],
"module": "commonjs",
"moduleResolution": "node",
"noImplicitAny": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"outDir": "dist",
"resolveJsonModule": true,
"rootDir": "src",
"strict": true,
"target": "es6"
},
"exclude": ["src/temp"]
"exclude": ["dist", "src/temp"]
}

0 comments on commit 250e1fa

Please sign in to comment.