File tree 2 files changed +40
-8
lines changed 2 files changed +40
-8
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " @leafygreen-ui/select" ,
3
3
"version" : " 14.1.5" ,
4
4
"description" : " leafyGreen UI Kit Select" ,
5
- "main" : " ./dist/index.js" ,
6
- "module" : " ./dist/esm/index.js" ,
7
- "types" : " ./dist/index.d.ts" ,
8
- "typesVersions" : {
9
- "<3.9" : {
10
- "*" : [
11
- " ts3.4/*"
12
- ]
5
+ "exports" : {
6
+ "." : {
7
+ "import" : " ./dist/esm/index.js" ,
8
+ "require" : " ./dist/index.js" ,
9
+ "types" : " ./dist/index.d.ts"
10
+ },
11
+ "testing" : {
12
+ "import" : " ./dist/esm/testing/index.js" ,
13
+ "require" : " ./dist/testing/index.js" ,
14
+ "types" : " ./dist/testing/index.d.ts"
13
15
}
14
16
},
15
17
"scripts" : {
Original file line number Diff line number Diff line change
1
+ import {
2
+ esmConfig ,
3
+ umdConfig ,
4
+ storiesConfig ,
5
+ } from '@lg-tools/build/config/rollup.config.mjs' ;
6
+
7
+ const esmTestUtilsConfig = {
8
+ ...esmConfig ,
9
+ input : 'src/testing/index.ts' ,
10
+ output : {
11
+ ...esmConfig . output ,
12
+ dir : 'dist/esm/testing' ,
13
+ } ,
14
+ } ;
15
+ const umdTestUtilsConfig = {
16
+ ...umdConfig ,
17
+ input : 'src/testing/index.ts' ,
18
+ output : {
19
+ ...umdConfig . output ,
20
+ dir : 'dist/testing' ,
21
+ } ,
22
+ } ;
23
+
24
+ export default [
25
+ esmConfig ,
26
+ umdConfig ,
27
+ esmTestUtilsConfig ,
28
+ umdTestUtilsConfig ,
29
+ storiesConfig ,
30
+ ] ;
You can’t perform that action at this time.
0 commit comments