From b5e2623fe93d1cd1d1739530352cdc573c7cdbbd Mon Sep 17 00:00:00 2001 From: btiteux Date: Sun, 26 May 2024 19:11:46 +0200 Subject: [PATCH 1/2] try to fix typescript compile bug --- init.ps1 | 9 ++++++++- package.json | 5 +++++ src/Directory.Packages.props | 10 +++++----- src/app/dev/DevToys.Blazor/DevToys.Blazor.csproj | 3 --- 4 files changed, 18 insertions(+), 9 deletions(-) create mode 100644 package.json diff --git a/init.ps1 b/init.ps1 index e0567d4ea1..2b562c6178 100755 --- a/init.ps1 +++ b/init.ps1 @@ -25,4 +25,11 @@ Write-Host "Restoring Monaco Editor" ExecSafe { & $PSScriptRoot\tools\Restore-MonacoEditor.ps1 -RootFolder $PSScriptRoot } Write-Host "Done." -Write-Output "---------------------------------------" \ No newline at end of file +Write-Output "---------------------------------------" + +# Install nodes modules +Write-Host "Installing node modules" +Get-ChildItem $PSScriptRoot\src\ -rec |? { $_.FullName.EndsWith('DevToys.Blazor.csproj') } |% { + Write-Host "Installing node modules for $($_)..." + ExecSafe { & npm install $_.Directory } +} \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000000..decc6400df --- /dev/null +++ b/package.json @@ -0,0 +1,5 @@ +{ + "dependencies": { + "devtoys": "file:src/app/dev/DevToys.Blazor" + } +} diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props index 2811151a97..1217efed62 100644 --- a/src/Directory.Packages.props +++ b/src/Directory.Packages.props @@ -6,8 +6,8 @@ 0.5.0-preview.1 - - + + @@ -23,7 +23,7 @@ - + @@ -32,8 +32,8 @@ - - + + diff --git a/src/app/dev/DevToys.Blazor/DevToys.Blazor.csproj b/src/app/dev/DevToys.Blazor/DevToys.Blazor.csproj index ac05449f26..f12cbe19c5 100644 --- a/src/app/dev/DevToys.Blazor/DevToys.Blazor.csproj +++ b/src/app/dev/DevToys.Blazor/DevToys.Blazor.csproj @@ -5,9 +5,6 @@ DevToys.Blazor false ES6 - - - CompileTypeScript;GetTypeScriptOutputForPublishing;$(PrepareForBuildDependsOn) From fd456e2f440d93ee7da9a87bb32a54c70e27aa17 Mon Sep 17 00:00:00 2001 From: btiteux Date: Sun, 26 May 2024 19:26:33 +0200 Subject: [PATCH 2/2] target MacOs Only --- src/app/dev/DevToys.Blazor/DevToys.Blazor.csproj | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/dev/DevToys.Blazor/DevToys.Blazor.csproj b/src/app/dev/DevToys.Blazor/DevToys.Blazor.csproj index f12cbe19c5..ec35a980e2 100644 --- a/src/app/dev/DevToys.Blazor/DevToys.Blazor.csproj +++ b/src/app/dev/DevToys.Blazor/DevToys.Blazor.csproj @@ -7,6 +7,10 @@ ES6 + + CompileTypeScript;GetTypeScriptOutputForPublishing;$(PrepareForBuildDependsOn) + +