diff --git a/packages/shared/package.json b/packages/shared/package.json index 073de52..eb6e84b 100644 --- a/packages/shared/package.json +++ b/packages/shared/package.json @@ -2,8 +2,8 @@ "name": "@fiberops/shared", "version": "0.1.0", "private": true, - "main": "./src/index.ts", - "types": "./src/index.ts", + "main": "./dist/index.js", + "types": "./dist/index.d.ts", "scripts": { "build": "tsc", "lint": "tsc --noEmit", diff --git a/packages/shared/tsconfig.json b/packages/shared/tsconfig.json index dae4070..e00b16a 100644 --- a/packages/shared/tsconfig.json +++ b/packages/shared/tsconfig.json @@ -1,15 +1,14 @@ { "compilerOptions": { "target": "ES2022", - "module": "ESNext", - "moduleResolution": "bundler", + "module": "CommonJS", + "moduleResolution": "node", "lib": ["ES2022"], "strict": true, "esModuleInterop": true, "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "resolveJsonModule": true, - "isolatedModules": true, "declaration": true, "sourceMap": true, "outDir": "./dist",