feat: add file storage service and update configurations

refactor: migrate to tsup for builds and update tsconfigs
fix: update error handling and validation in payment service
chore: update package scripts and dependencies
docs: update README and env examples
This commit is contained in:
Yuu Ottosoka
2025-07-12 16:01:57 +03:00
parent c0c04bbdba
commit f9ecac94f2
67 changed files with 3308 additions and 695 deletions

View File

@@ -1,14 +1,35 @@
{
"name": "@repo/logger",
"scripts": {
"dev": "tsc --watch",
"build": "tsc"
},
"type": "module",
"private": true,
"files": [
"dist"
],
"main": "./dist/index.js",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": "./src/index.ts"
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
}
},
"scripts": {
"build": "tsup",
"dev": "tsup --watch",
"lint": "eslint src/",
"check-types": "tsc --noEmit",
"clean": "rm -rf dist"
},
"devDependencies": {
"@repo/typescript-config": "*",
"typescript": "latest"
"typescript": "^5.8.3",
"tsup": "^8.3.5"
}
}

View File

@@ -1 +1 @@
export * from './logger'
export * from "./logger";

View File

@@ -1,9 +1,9 @@
{
"extends": "@repo/typescript-config/base.json",
"extends": "@repo/typescript-config/library.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src"
"rootDir": "."
},
"include": ["src"],
"include": ["src/**/*", "tsup.config.ts"],
"exclude": ["node_modules", "dist"]
}

View File

@@ -0,0 +1,13 @@
import { defineConfig } from "tsup";
export default defineConfig({
entry: ["src/index.ts"],
format: ["cjs", "esm"],
dts: true,
splitting: false,
sourcemap: true,
clean: true,
treeshake: true,
minify: false,
target: "es2022",
});