Skip to content

Commit 633fcac

Browse files
committed
Setup ES/TS switch utils
1 parent 309929e commit 633fcac

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111
"build-docs": "build-storybook --docs -s ./public -o build/docs",
1212
"build-storybook": "build-storybook",
1313
"storybook": "start-storybook -p 6060",
14-
"use:es": "symlink-dir .src-es src",
15-
"use:ts": "symlink-dir .src-ts src",
14+
"use:es": "symlink-dir ./src-es ./src/",
15+
"use:ts": "symlink-dir ./src-ts ./src/",
1616
"es:init": "npm run es:clean && npm run es:build && npm run es:prettify",
1717
"es:clean": "rimraf src-es/",
1818
"es:build": "tsc --project ./tsconfig.to-es.json",
19-
"es:prettify": "prettier --config ./.prettierrc.js --write \"src-es/**/*.(js|jsx)\"",
19+
"es:prettify": "prettier --config ./.prettierrc.js --write \"src-es/**/*.(js|jsx|ts)\"",
2020
"eject": "react-scripts eject"
2121
},
2222
"homepage": "http://modular-admin-react.modularcode.io",

tsconfig.to-es.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"baseUrl": "src",
55
"target": "ES2020",
66
"noEmit": false,
7-
"jsx": "preserve"
7+
"jsx": "preserve",
8+
"declaration": false
89
},
910
"include": [
1011
"src"

0 commit comments

Comments
 (0)