|
6 | 6 | "type": "git", |
7 | 7 | "url": "git://github.com/codegouvfr/react-dsfr.git" |
8 | 8 | }, |
9 | | - "main": "dist/lib/index.js", |
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 | | - }, |
21 | 9 | "scripts": { |
22 | | - "build": "ts-node src/scripts/build", |
23 | | - "yarn-link": "ts-node src/scripts/yarn-link.ts", |
| 10 | + "build": "ts-node -T src/scripts/build", |
| 11 | + "yarn-link": "ts-node -T src/scripts/yarn-link.ts", |
24 | 12 | "start-cra": "yarn build && yarn yarn-link && ((tsc -w -p src) & (cd test/integration/cra && yarn start))", |
25 | 13 | "start-next": "yarn build && yarn yarn-link && ((tsc -w -p src) & (cd test/integration/next && yarn dev))", |
26 | 14 | "start-vite": "yarn build && yarn yarn-link && ((tsc -w -p src) & (cd test/integration/vite && yarn dev))", |
|
33 | 21 | "grant_exec_perms": "node dist/bin/tools/grant_exec_perms", |
34 | 22 | "storybook": "yarn build && yarn only-include-used-icons && start-storybook -p 6006", |
35 | 23 | "build-storybook": "yarn build && yarn only-include-used-icons && build-storybook", |
36 | | - "only-include-used-icons": "node dist/bin/only-include-used-icons.js", |
37 | | - "list-exports": "ts-node src/scripts/list-exports.ts && prettier --write package.json" |
| 24 | + "only-include-used-icons": "node dist/bin/only-include-used-icons.js" |
38 | 25 | }, |
39 | 26 | "bin": { |
40 | 27 | "copy-dsfr-to-public": "dist/bin/copy-dsfr-to-public.js", |
|
50 | 37 | }, |
51 | 38 | "husky": { |
52 | 39 | "hooks": { |
53 | | - "pre-commit": "yarn list-exports && git add package.json && lint-staged -v" |
| 40 | + "pre-commit": "ts-node -T src/scripts/list-exports.ts && git add package.json && lint-staged -v" |
54 | 41 | } |
55 | 42 | }, |
56 | 43 | "author": "u/garronej", |
|
80 | 67 | } |
81 | 68 | }, |
82 | 69 | "dependencies": { |
83 | | - "tsafe": "^1.3.3" |
| 70 | + "tsafe": "^1.4.0" |
84 | 71 | }, |
85 | 72 | "devDependencies": { |
86 | 73 | "@babel/core": "^7.20.2", |
|
128 | 115 | "tsd": "^0.24.1", |
129 | 116 | "typescript": "^4.9.1-beta", |
130 | 117 | "vitest": "^0.24.3" |
| 118 | + }, |
| 119 | + "main": "dist/lib/index.js", |
| 120 | + "types": "dist/lib/index.d.ts", |
| 121 | + "module": "dist/lib/index.js", |
| 122 | + "exports": { |
| 123 | + ".": "./dist/lib/index.js", |
| 124 | + "./next": "./dist/next.js", |
| 125 | + "./mui": "./dist/mui.js", |
| 126 | + "./Tabs": "./dist/Tabs.js", |
| 127 | + "./Header": "./dist/Header.js", |
| 128 | + "./DarkModeSwitch": "./dist/DarkModeSwitch.js", |
| 129 | + "./Alert": "./dist/Alert.js" |
131 | 130 | } |
132 | 131 | } |
0 commit comments