configure library

This commit is contained in:
2024-05-14 10:57:30 +02:00
parent 6593196645
commit cfcb99cd69
4 changed files with 57 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
.idea/
bun.lockb
package-lock.json
node_modules/
View File
+20
View File
@@ -0,0 +1,20 @@
{
"name": "crypto",
"description": "Various crypto utils for hashing, encryption, signature, ...",
"module": "index.ts",
"type": "module",
"files": ["index.ts"],
"dependencies": {
"jose": "^5.2.3",
"log": "^6.3.1",
"result": "git+git@git.pband.ch:typescript/result.git",
"zxcvbn": "^4.4.2"
},
"devDependencies": {
"@types/zxcvbn": "^4.4.4"
},
"peerDependencies": {
"typescript": "^5.0.0"
}
}
+33
View File
@@ -0,0 +1,33 @@
{
"compilerOptions": {
"baseUrl": "./src",
// Enable latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "ESNext",
"moduleDetection": "force",
"allowJs": false,
"checkJs": true,
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
},
"include": [
"index.ts",
"src/**/*.ts"
]
}