diff --git a/bun.lockb b/bun.lockb new file mode 100755 index 0000000..da6985e Binary files /dev/null and b/bun.lockb differ diff --git a/package.json b/package.json new file mode 100644 index 0000000..3ce4226 --- /dev/null +++ b/package.json @@ -0,0 +1,47 @@ +{ + "name": "@thilawyn/thilalib", + "version": "0.1.0", + "type": "module", + "publishConfig": { + "registry": "https://git.jvalver.de/api/packages/thilawyn/npm/" + }, + "files": [ + "./dist" + ], + "types": "./dist/index.d.ts", + "exports": { + ".": { + "import": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + }, + "require": { + "types": "./dist/index.d.cts", + "default": "./dist/index.cjs" + } + } + }, + "scripts": { + "build": "tsup", + "lint:tsc": "tsc --noEmit", + "clean:cache": "rm -f tsconfig.tsbuildinfo", + "clean:dist": "rm -rf dist", + "clean:node": "rm -rf node_modules" + }, + "dependencies": { + "remeda": "^2.0.7", + "type-fest": "^4.20.0" + }, + "devDependencies": { + "bun-types": "^1.1.12", + "npm-check-updates": "^16.14.20", + "npm-sort": "^0.0.4", + "tsup": "^8.1.0", + "tsx": "^4.15.1", + "typescript": "^5.4.5" + }, + "optionalDependencies": { + "@effect/schema": "^0.67.22", + "effect": "^3.3.1" + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..238655f --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + // Enable latest features + "lib": ["ESNext", "DOM"], + "target": "ESNext", + "module": "ESNext", + "moduleDetection": "force", + "jsx": "react-jsx", + "allowJs": 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 + } +}