Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ async function build() {
// Step 4: Build TypeScript types
console.log( '\n📘 Building TypeScript types...\n' );
const tsStartTime = Date.now();
await exec( 'tsc', [ '--build' ] ).catch( () => {
await exec( 'tsgo', [ '--build' ] ).catch( () => {
console.error(
'\n❌ TypeScript compilation failed. Try cleaning up first: `npm run clean:package-types`'
);
Expand Down
4 changes: 2 additions & 2 deletions bin/dev.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ async function dev() {
// Step 4: Build TypeScript types
console.log( '\n📘 Building TypeScript types...\n' );
const tsStartTime = Date.now();
await exec( 'tsc', [ '--build' ] ).catch( () => {
await exec( 'tsgo', [ '--build' ] ).catch( () => {
console.error(
'\n❌ TypeScript compilation failed. Try cleaning up first: `npm run clean:package-types`'
);
Expand Down Expand Up @@ -182,7 +182,7 @@ async function dev() {
console.log( ' - Package builder watching for source changes\n' );

// Start TypeScript watch
const tscWatch = execAsync( 'tsc', [
const tscWatch = execAsync( 'tsgo', [
'--build',
'--watch',
'--preserveWatchOutput',
Expand Down
2 changes: 1 addition & 1 deletion bin/packages/check-build-type-declaration-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function getDecFile( packagePath ) {
async function typecheckDeclarations( file ) {
return new Promise( ( resolve, reject ) => {
exec(
`npx tsc --ignoreConfig --target esnext --moduleResolution bundler --noEmit --skipLibCheck "${ file }"`,
`npx tsgo --ignoreConfig --target esnext --moduleResolution bundler --noEmit --skipLibCheck "${ file }"`,
( error, stdout, stderr ) => {
if ( error ) {
reject( { file, error, stderr, stdout } );
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@
},
"scripts": {
"build": "node ./bin/build.mjs",
"build:profile-types": "rimraf ./ts-traces && npm run clean:package-types && node ./bin/packages/validate-typescript-version.js && ( tsc --build --extendedDiagnostics --generateTrace ./ts-traces || ( echo 'tsc failed.'; exit 1 ) ) && node ./bin/packages/check-build-type-declaration-files.js && npx --yes @typescript/analyze-trace ts-traces > ts-traces/analysis.txt && node -p \"'\\n\\nDone! Build traces saved to ts-traces/ directory.\\nTrace analysis saved to ts-traces/analysis.txt.'\"",
"build:profile-types": "rimraf ./ts-traces && npm run clean:package-types && node ./bin/packages/validate-typescript-version.js && ( tsgo --build --extendedDiagnostics --generateTrace ./ts-traces || ( echo 'tsc failed.'; exit 1 ) ) && node ./bin/packages/check-build-type-declaration-files.js && npx --yes @typescript/analyze-trace ts-traces > ts-traces/analysis.txt && node -p \"'\\n\\nDone! Build traces saved to ts-traces/ directory.\\nTrace analysis saved to ts-traces/analysis.txt.'\"",
"build:plugin-zip": "bash ./bin/build-plugin-zip.sh",
"clean:package-types": "tsc --build --clean && rimraf --glob \"./packages/*/build-types\"",
"clean:package-types": "tsgo --build --clean && rimraf --glob \"./packages/*/build-types\"",
"clean:packages": "rimraf --glob \"./packages/*/{build,build-module,build-wp,build-style}\" \"./build\"",
"component-usage-stats": "node ./node_modules/react-scanner/bin/react-scanner -c ./react-scanner.config.js",
"dev": "node ./bin/dev.mjs",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,10 @@ export default function PreferencesModalTabs( {
<ItemGroup>
{ tabs.map( ( tab ) => {
return (
// @ts-expect-error: Navigator.Button is currently typed in a way that prevents Item from being passed in
<Navigator.Button
key={ tab.name }
path={ `/${ tab.name }` }
// @ts-expect-error: Navigator.Button is currently typed in a way that prevents Item from being passed in
as={ Item }
isAction
>
Expand Down
Loading