diff --git a/package.json b/package.json index e69de29..7fc530b 100644 --- a/package.json +++ b/package.json @@ -0,0 +1,32 @@ +{ + "name": "crypto", + "description": "Various crypto utils for encryption, signature, ...", + "version": "1.0.0", + + "author": "Pascal Perrenoud ", + + "module": "index.ts", + "type": "module", + "files": ["index.ts", "src"], + + "scripts": { + "test": "bun test" + }, + + "dependencies": { + "jose": "^5.3.0", + "rust": "git+https://git.pband.ch/typescript/rust.git", + "misc": "git+https://git.pband.ch/typescript/misc.git", + "log": "git+https://git.pband.ch/typescript/log.git", + "zxcvbn": "^4.4.2" + }, + "devDependencies": { + "@happy-dom/global-registrator": "^14.10.2", + "@types/bun": "^1.1.2", + "@types/zxcvbn": "^4.4.4", + "logger-console": "git+https://git.pband.ch/typescript/logger-console.git" + }, + "peerDependencies": { + "typescript": "^5.0.0" + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..bf835f6 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,35 @@ +{ + "compilerOptions": { + "baseUrl": "src", + + // Enable latest features + "lib": ["ESNext","dom"], + "target": "ESNext", + "module": "ESNext", + "moduleDetection": "force", + "allowJs": true, + "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, + "forceConsistentCasingInFileNames": true, + "noPropertyAccessFromIndexSignature": false + }, + + "include": [ + "index.ts", + "src/**/*.ts" + ] +}