Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
Use jsbt
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Mar 24, 2024
1 parent 13536c6 commit 276e287
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Node CI
name: Run node.js tests
on:
- push
- pull_request
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish Package to npm
name: Publish package to npm
on:
release:
types: [created]
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ node_modules
/index.js
/index.d.ts
/index.d.ts.map
/index.js.map
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "micro-otp",
"version": "0.2.3",
"version": "0.2.4-pre",
"description": "One Time Password generation via RFC 6238",
"files": [
"index.js",
Expand All @@ -19,10 +19,11 @@
},
"dependencies": {
"@noble/hashes": "~1.4.0",
"@scure/base": "~1.1.5",
"@scure/base": "~1.1.6",
"micro-packed": "~0.5.3"
},
"devDependencies": {
"@paulmillr/jsbt": "0.1.0",
"micro-should": "0.4.0",
"prettier": "3.1.1",
"typescript": "5.3.2"
Expand All @@ -48,4 +49,4 @@
"RFC6238"
],
"funding": "https://paulmillr.com/funding/"
}
}
23 changes: 3 additions & 20 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,8 @@
{
"extends": "@paulmillr/jsbt/tsconfigs/esm.json",
"compilerOptions": {
"target": "es2020",
"lib": ["es2020"],
"strict": true,
"sourceMap": false,
"allowSyntheticDefaultImports": false,
"allowUnreachableCode": false,
"esModuleInterop": false,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUncheckedIndexedAccess": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"baseUrl": ".",

"module": "es2020",
"outDir": ".",
"moduleResolution": "bundler",
"declaration": true,
"declarationMap": true
"outDir": "."
},
"include": ["index.ts"],
"include": ["index.ts", "src"],
"exclude": ["node_modules", "lib"]
}

0 comments on commit 276e287

Please sign in to comment.