init project
Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled

This commit is contained in:
how2ice
2025-12-12 14:26:25 +09:00
commit 005cf56baf
43188 changed files with 1079531 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
# TypeScript `moduleResolution` Tests
This suite uses workspace linking to resolve build folders and runs the TypeScript compiler with various `moduleResolution` settings.
You can only run `pnpm typescript:all` after the project has been built with `pnpm release:build`.

View File

@@ -0,0 +1,14 @@
{
"name": "@mui-internal/test-module-resolution",
"private": true,
"scripts": {
"typescript:all": "pnpm typescript:node && pnpm typescript:node16",
"typescript:node": "tsc -p tsconfig.node.json",
"typescript:node16": "tsc -p tsconfig.node16.json"
},
"devDependencies": {},
"dependencies": {
"@mui/icons-material": "workspace:^",
"@mui/material": "workspace:^"
}
}

View File

@@ -0,0 +1,12 @@
import * as React from 'react';
import { AccessAlarm } from '@mui/icons-material';
import AccessAlarmOutlined from '@mui/icons-material/AccessAlarmOutlined';
export default function Test() {
return (
<React.Fragment>
<AccessAlarm />
<AccessAlarmOutlined />
</React.Fragment>
);
}

View File

@@ -0,0 +1,18 @@
{
"compilerOptions": {
// rely on workspace linking
"paths": {},
"target": "es5",
"lib": ["es6", "dom"],
"jsx": "react",
"module": "nodenext",
"moduleResolution": "nodenext",
"strict": true,
"noEmit": true,
"noErrorTruncation": true,
"rootDir": "./src",
"skipLibCheck": true,
"types": []
},
"exclude": ["**/node_modules/"]
}

View File

@@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
// <ts@next uncomment> "ignoreDeprecations": "6.0",
"module": "commonjs",
// This will stop functioning under typescript 7.0. We can probably just remove this test by then
"moduleResolution": "node"
}
}

View File

@@ -0,0 +1,7 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"module": "node16",
"moduleResolution": "node16"
}
}