Skip to content

Commit

Permalink
Run tsc-alias on ESM type declaration files
Browse files Browse the repository at this point in the history
  • Loading branch information
michaldudak committed Nov 15, 2024
1 parent 280b69d commit d6e7a86
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/mui-base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"build:node": "node ../../scripts/build.mjs node",
"build:stable": "node ../../scripts/build.mjs stable",
"build:copy-files": "node ../../scripts/copyFiles.mjs",
"build:types": "tsc -b tsconfig.build.json && tsc -b tsconfig.build.cjs.json",
"build:types": "tsc -b tsconfig.build.json && tsc -b tsconfig.build.cjs.json && tsc-alias -p tsconfig.build.json",
"test:package-types": "attw --pack ./build --include-entrypoints ./Accordion ./Menu ./Tooltip",
"prebuild": "rimraf --glob build build-tests \"*.tsbuildinfo\"",
"release": "pnpm build && pnpm publish",
Expand Down Expand Up @@ -78,6 +78,7 @@
"react": "19.0.0-rc-fb9a90fa48-20240614",
"react-dom": "19.0.0-rc-fb9a90fa48-20240614",
"sinon": "^19.0.2",
"tsc-alias": "^1.8.10",
"typescript": "^5.6.3"
},
"peerDependencies": {
Expand Down
5 changes: 4 additions & 1 deletion packages/mui-base/tsconfig.build.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@
"outDir": "build/esm"
},
"include": ["src/**/*.ts*"],
"exclude": ["src/**/*.spec.ts*", "src/**/*.test.ts*"]
"exclude": ["src/**/*.spec.ts*", "src/**/*.test.ts*"],
"tsc-alias": {
"resolveFullPaths": true
}
}
42 changes: 42 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d6e7a86

Please sign in to comment.