Skip to content

Commit 6ed6192

Browse files
committed
add /testing entry point
1 parent fa0fc24 commit 6ed6192

File tree

2 files changed

+40
-8
lines changed

2 files changed

+40
-8
lines changed

packages/select/package.json

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,16 @@
22
"name": "@leafygreen-ui/select",
33
"version": "14.1.5",
44
"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"
1315
}
1416
},
1517
"scripts": {

packages/select/rollup.config.mjs

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
];

0 commit comments

Comments
 (0)