File tree 2 files changed +42
-0
lines changed
2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 6
6
"module" : " ./dist/esm/index.js" ,
7
7
"types" : " ./dist/index.d.ts" ,
8
8
"typesVersions" : {},
9
+ "exports" : {
10
+ "." : {
11
+ "import" : " ./dist/esm/index.js" ,
12
+ "require" : " ./dist/index.js" ,
13
+ "types" : " ./dist/index.d.ts"
14
+ },
15
+ "./testing" : {
16
+ "import" : " ./dist/esm/testing/index.js" ,
17
+ "require" : " ./dist/testing/index.js" ,
18
+ "types" : " ./dist/testing/index.d.ts"
19
+ }
20
+ },
9
21
"scripts" : {
10
22
"build" : " lg build-package" ,
11
23
"tsc" : " lg build-ts" ,
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