Skip to content

Commit b0bcd43

Browse files
author
erik_ritter
committed
Remove esm support
1 parent 07f05e7 commit b0bcd43

File tree

2 files changed

+1
-25
lines changed

2 files changed

+1
-25
lines changed

configs/tsconfig.esm.json

-11
This file was deleted.

package.json

+1-14
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,13 @@
44
"description": "Export data in React to CSV and other file formats",
55
"types": "./lib/cjs/types/index.d.ts",
66
"main": "./lib/cjs/index.js",
7-
"exports": {
8-
".": {
9-
"import": {
10-
"types": "./lib/esm/types/index.d.ts",
11-
"default": "./lib/esm/index.mjs"
12-
},
13-
"require": {
14-
"types": "./lib/cjs/types/index.d.ts",
15-
"default": "./lib/cjs/index.js"
16-
}
17-
}
18-
},
197
"files": [
208
"lib/**/*"
219
],
2210
"scripts": {
2311
"test": "jest --config ./configs/jest.config.js",
2412
"clean": "rm -rf ./lib",
25-
"build": "npm run clean && npm run build:esm && npm run build:cjs",
26-
"build:esm": "tsc -p ./configs/tsconfig.esm.json && mv lib/esm/index.js lib/esm/index.mjs",
13+
"build": "npm run clean && npm run build:cjs",
2714
"build:cjs": "tsc -p ./configs/tsconfig.cjs.json",
2815
"prepack": "npm run build",
2916
"format": "prettier --write ."

0 commit comments

Comments
 (0)