|
8 | 8 | }, |
9 | 9 | "main": "dist/lib/index.js", |
10 | 10 | "types": "dist/lib/index.d.ts", |
| 11 | + "module": "dist/lib/index.js", |
| 12 | + "exports": { |
| 13 | + ".": "./dist/lib/index.js", |
| 14 | + "./next": "./dist/next.js", |
| 15 | + "./mui": "./dist/mui.js", |
| 16 | + "./Tabs": "./dist/Tabs.js", |
| 17 | + "./Header": "./dist/Header.js", |
| 18 | + "./DarkModeSwitch": "./dist/DarkModeSwitch.js", |
| 19 | + "./Alert": "./dist/Alert.js" |
| 20 | + }, |
11 | 21 | "scripts": { |
12 | 22 | "build": "ts-node src/scripts/build", |
13 | 23 | "yarn-link": "ts-node src/scripts/yarn-link.ts", |
|
23 | 33 | "grant_exec_perms": "node dist/bin/tools/grant_exec_perms", |
24 | 34 | "storybook": "yarn build && yarn only-include-used-icons && start-storybook -p 6006", |
25 | 35 | "build-storybook": "yarn build && yarn only-include-used-icons && build-storybook", |
26 | | - "only-include-used-icons": "node dist/bin/only-include-used-icons.js" |
| 36 | + "only-include-used-icons": "node dist/bin/only-include-used-icons.js", |
| 37 | + "list-exports": "ts-node src/scripts/list-exports.ts" |
27 | 38 | }, |
28 | 39 | "bin": { |
29 | 40 | "copy-dsfr-to-public": "dist/bin/copy-dsfr-to-public.js", |
|
39 | 50 | }, |
40 | 51 | "husky": { |
41 | 52 | "hooks": { |
42 | | - "pre-commit": "lint-staged -v" |
| 53 | + "pre-commit": "yarn list-exports && lint-staged -v" |
43 | 54 | } |
44 | 55 | }, |
45 | 56 | "author": "u/garronej", |
|
0 commit comments