diff --git a/packages/constants/package.json b/packages/constants/package.json index 870dfbf..78d2d05 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 bcd994f..ae1a20c 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 7ca6072..0000000 --- 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