This repository was archived by the owner on Sep 9, 2026. It is now read-only.
Repository navigation
chore: 升级 dimina submodule 与相关依赖,并把 devtools e2e 从 45 分钟压到 26 分钟 #203
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| shamefully-hoist=true | ||
| # pnpm 11+ only reads auth/registry settings from .npmrc. Everything else | ||
| # (shamefullyHoist included) lives in pnpm-workspace.yaml now. |
Submodule dimina
updated
1805 files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| // Wraps `tsc -p tsconfig.types.json` because that config's rootDir has to | ||
| // cover both packages/compiler/src AND the dimina/fe submodule source it | ||
| // imports by relative path (see the comment in tsconfig.types.json) — so tsc | ||
| // necessarily also emits declarations for the submodule branch into the | ||
| // scratch outDir. This script keeps only the packages/compiler/src branch, | ||
| // flattened to the same dist/types/<name>.d.ts layout package.json's | ||
| // `exports[*].types` already points at, and discards the rest. | ||
| import { createRequire } from 'node:module' | ||
| import { spawnSync } from 'node:child_process' | ||
| import { cpSync, existsSync, rmSync } from 'node:fs' | ||
| import path from 'node:path' | ||
| import { fileURLToPath } from 'node:url' | ||
|
|
||
| const require = createRequire(import.meta.url) | ||
| const pkgRoot = path.dirname(fileURLToPath(new URL('../package.json', import.meta.url))) | ||
| const rawDir = path.join(pkgRoot, 'dist/types/.raw') | ||
| const kitRawDir = path.join(rawDir, 'packages/compiler/src') | ||
| const outDir = path.join(pkgRoot, 'dist/types') | ||
|
|
||
| rmSync(rawDir, { recursive: true, force: true }) | ||
|
|
||
| const tscBin = path.join(path.dirname(require.resolve('typescript/package.json')), 'bin', 'tsc') | ||
| const tsc = spawnSync(process.execPath, [tscBin, '-p', 'tsconfig.types.json', '--pretty', 'false'], { | ||
| cwd: pkgRoot, | ||
| encoding: 'utf8', | ||
| }) | ||
| if (tsc.status !== 0) { | ||
| console.error(tsc.stdout || '') | ||
| console.error(tsc.stderr || '') | ||
| process.exit(tsc.status ?? 1) | ||
| } | ||
|
|
||
| if (!existsSync(kitRawDir)) { | ||
| console.error(`build-types: expected tsc output at ${path.relative(pkgRoot, kitRawDir)}, found nothing`) | ||
| process.exit(1) | ||
| } | ||
| cpSync(kitRawDir, outDir, { recursive: true }) | ||
| rmSync(rawDir, { recursive: true, force: true }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.