|
4 | 4 | "private": false,
|
5 | 5 | "author": "MUI Team",
|
6 | 6 | "description": "Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.",
|
7 |
| - "main": "./src/index.ts", |
8 | 7 | "keywords": [
|
9 | 8 | "react",
|
10 | 9 | "react-component",
|
|
26 | 25 | "type": "opencollective",
|
27 | 26 | "url": "https://opencollective.com/mui-org"
|
28 | 27 | },
|
| 28 | + "exports": { |
| 29 | + ".": { |
| 30 | + "import": "./src/index.ts" |
| 31 | + }, |
| 32 | + "./*": { |
| 33 | + "import": "./src/*/index.ts" |
| 34 | + } |
| 35 | + }, |
29 | 36 | "imports": {
|
30 | 37 | "#test-utils": "./test/index.ts"
|
31 | 38 | },
|
| 39 | + "type": "commonjs", |
32 | 40 | "scripts": {
|
33 | 41 | "build": "pnpm build:node && pnpm build:stable && pnpm build:types && pnpm build:copy-files",
|
34 | 42 | "build:node": "node ../../scripts/build.mjs node",
|
35 | 43 | "build:stable": "node ../../scripts/build.mjs stable",
|
36 | 44 | "build:copy-files": "node ../../scripts/copyFiles.mjs",
|
37 |
| - "build:types": "tsc -b tsconfig.build.json", |
| 45 | + "build:types": "tsx ../../scripts/buildTypes.mjs --project tsconfig.build.json --copy build/cjs", |
| 46 | + "test:package-types": "attw --pack ./build --include-entrypoints ./Accordion ./Menu ./Tooltip", |
38 | 47 | "prebuild": "rimraf --glob build build-tests \"*.tsbuildinfo\"",
|
39 | 48 | "release": "pnpm build && pnpm publish",
|
40 | 49 | "test": "cd ../../ && cross-env NODE_ENV=test mocha 'packages/react/**/*.test.{js,ts,tsx}'",
|
|
52 | 61 | "use-sync-external-store": "^1.2.2"
|
53 | 62 | },
|
54 | 63 | "devDependencies": {
|
| 64 | + "@arethetypeswrong/cli": "^0.16.4", |
55 | 65 | "@mui/internal-test-utils": "https://pkg.csb.dev/mui/material-ui/commit/92c23999/@mui/internal-test-utils",
|
56 | 66 | "@testing-library/react": "^16.0.1",
|
57 | 67 | "@testing-library/user-event": "^14.5.2",
|
|
63 | 73 | "@types/sinon": "^17.0.3",
|
64 | 74 | "@types/use-sync-external-store": "^0.0.6",
|
65 | 75 | "chai": "^4.5.0",
|
66 |
| - "fast-glob": "^3.3.2", |
67 | 76 | "lodash": "^4.17.21",
|
68 | 77 | "react": "19.0.0-rc-fb9a90fa48-20240614",
|
69 | 78 | "react-dom": "19.0.0-rc-fb9a90fa48-20240614",
|
|
0 commit comments