Skip to content

Commit

Permalink
🎨 Publish compiled typescript with explicit types
Browse files Browse the repository at this point in the history
  • Loading branch information
llouka committed Jan 24, 2023
1 parent 0d7bd0d commit 09fa0ec
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
14 changes: 14 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.vscode
.github
.husky
.vscode
src
.editorconfig
.eslint.tsconfig.json
.eslintrc.js
.lintstagedrc
.nvmrc
package-lock.json
prettier.config.js
tsconfig.json
tsconfig.tsbuildinfo
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@ackee/otpass",
"version": "0.2.0",
"description": "Easy to use 2FA module supporting both Timed one-time passwords (RFC 6238) and Hmac one-time-passwords (RFC 4226). Also contains helper functions and types so their use is as easy as possible.",
"main": "src/index.js",
"main": "dist/index.js",
"engines": {
"node": ">=14.0.0"
},
Expand Down Expand Up @@ -39,7 +39,7 @@
"lint-staged": "^13.0.3",
"mocha": "^10.1.0",
"ts-node": "^10.9.1",
"typescript": "^4.8.4"
"typescript": "^4.9.4"
},
"peerDependencies": {
"keyv": "4.5.0"
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"incremental": true,
// "checkJs": true, /* Report errors in .js files. */
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
// "declaration": true, /* Generates corresponding '.d.ts' file. */
"declaration": true, /* Generates corresponding '.d.ts' file. */
"sourceMap": true /* Generates corresponding '.map' file. */,
// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "dist" /* Redirect output structure to the directory. */,
Expand Down Expand Up @@ -52,6 +52,6 @@
// "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
"resolveJsonModule": true,
"useUnknownInCatchVariables": false
"useUnknownInCatchVariables": false,
}
}

0 comments on commit 09fa0ec

Please sign in to comment.