🔧 fix(shared-storage): update build configuration for CommonJS

- Change module from ESNext to CommonJS for NestJS compatibility
- Update moduleResolution from bundler to node
- Add build script and dist exports to package.json
- Remove .js extensions from imports for better compatibility

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Till-JS 2025-12-02 14:40:55 +01:00
parent 2a040102b6
commit 1a88dec0a5
5 changed files with 19 additions and 13 deletions

View file

@ -3,14 +3,20 @@
"version": "0.1.0",
"private": true,
"description": "S3-compatible object storage client for Manacore monorepo (MinIO local, Hetzner production)",
"main": "./src/index.ts",
"types": "./src/index.ts",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"exports": {
".": "./src/index.ts"
".": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
},
"files": ["dist"],
"scripts": {
"build": "tsc",
"type-check": "tsc --noEmit",
"clean": "rm -rf dist"
"clean": "rm -rf dist",
"prepublishOnly": "pnpm build"
},
"dependencies": {
"@aws-sdk/client-s3": "^3.700.0",