From b21e8ee54e1ff5eca82ce65ad7fa1bf0901e5a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ali=20Kire=C3=A7lig=C3=B6l?= Date: Tue, 31 Mar 2026 16:58:59 +0300 Subject: [PATCH] revert esm changes --- packages/constants/package.json | 16 ++-------------- packages/constants/tsconfig.build.json | 3 +-- packages/constants/tsconfig.esm.json | 13 ------------- 3 files changed, 3 insertions(+), 29 deletions(-) delete mode 100644 packages/constants/tsconfig.esm.json diff --git a/packages/constants/package.json b/packages/constants/package.json index 870dfbf0..78d2d056 100644 --- a/packages/constants/package.json +++ b/packages/constants/package.json @@ -6,24 +6,12 @@ "access": "public", "registry": "https://registry.npmjs.org/" }, - "type": "module", - "main": "lib/cjs/index.js", - "module": "lib/esm/index.js", - "types": "lib/esm/index.d.ts", - "exports": { - ".": { - "import": "./lib/esm/index.js", - "require": "./lib/cjs/index.js", - "types": "./lib/esm/index.d.ts" - } - }, + "main": "lib/index.js", "directories": { "lib": "lib" }, "scripts": { - "build:cjs": "tsc --project tsconfig.build.json", - "build:esm": "tsc --project tsconfig.esm.json", - "build": "yarn build:cjs && yarn build:esm", + "build": "tsc --project tsconfig.build.json", "format": "eslint --ext .ts,.tsx src --fix", "lint": "eslint --ext .ts,.tsx src", "test": "jest", diff --git a/packages/constants/tsconfig.build.json b/packages/constants/tsconfig.build.json index bcd994f1..ae1a20cc 100644 --- a/packages/constants/tsconfig.build.json +++ b/packages/constants/tsconfig.build.json @@ -2,8 +2,7 @@ "extends": "./tsconfig.json", "compilerOptions": { "types": ["jest"], - "outDir": "./lib/cjs", - "rootDir": "./src" + "rootDir": "src" }, "include": ["src"], "exclude": ["lib", "**/*.test.ts", "**/*.test.tsx", "node_modules"] diff --git a/packages/constants/tsconfig.esm.json b/packages/constants/tsconfig.esm.json deleted file mode 100644 index 7ca6072e..00000000 --- a/packages/constants/tsconfig.esm.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "extends": "@formsort/tsconfig", - "compilerOptions": { - "declaration": true, - "outDir": "./lib/esm", - "module": "ES2020", - "moduleResolution": "node", - "strict": true, - "rootDir": "./src" - }, - "include": ["src"], - "exclude": ["lib", "**/*.test.ts", "**/*.test.tsx"] -} \ No newline at end of file