diff --git a/.dnt.ts b/.dnt.ts index 818149f..0e1b3ed 100644 --- a/.dnt.ts +++ b/.dnt.ts @@ -4,7 +4,7 @@ import { } from "DNT"; const configJSR = await getMetadataFromConfig("jsr.jsonc"); await invokeDenoNodeJSTransformer({ - assetsCopy: [ + copyAssets: [ "LICENSE.md", "README.md" ], diff --git a/.github/workflows/publish-deno-package.yml b/.github/workflows/publish-deno-package.yml index ed07bbc..bfa6d12 100644 --- a/.github/workflows/publish-deno-package.yml +++ b/.github/workflows/publish-deno-package.yml @@ -59,7 +59,7 @@ jobs: run: |- deno task jsr-publish-provenance - name: "Publish Package To JSR" - if: "${{!cancelled() && ((steps.metadata.outputs.jsr-publish-provenance == 'true' && steps.jsr-publish-provenance.outcome == 'failure') || steps.metadata.outputs.jsr-publish-provenance == 'false' && steps.metadata.outputs.jsr-publish == 'true')}}" + if: "${{!cancelled() && ((steps.metadata.outputs.jsr-publish-provenance == 'true' && steps.jsr-publish-provenance.outcome == 'failure') || (steps.metadata.outputs.jsr-publish-provenance == 'false' && steps.metadata.outputs.jsr-publish == 'true'))}}" run: |- deno task jsr-publish - name: "Build Package For NPM" diff --git a/.github/workflows/review-deno-code.yml b/.github/workflows/review-deno-code.yml index 23ea6ba..47268cc 100644 --- a/.github/workflows/review-deno-code.yml +++ b/.github/workflows/review-deno-code.yml @@ -81,23 +81,27 @@ jobs: Join-String -Separator ', ' )" -ErrorAction 'Stop' } - - name: "Verify Code" - if: "${{!cancelled() && steps.analyze.outcome == 'success'}}" - shell: "pwsh" + - name: "Build Repository" + if: "${{!cancelled() && steps.analyze.outcome == 'success' && steps.analyze.outputs.build == 'true'}}" run: |- - [String[]]$Files = Get-ChildItem -LiteralPath '.\' -Include @('*.ts', '*.tsx') -File -Recurse -Name - [Boolean]$ShouldReload = $Env:GITHUB_EVENT_NAME -iin @('schedule', 'workflow_dispatch') - ForEach ($File In $Files) { - $ShouldReload ? (deno cache --reload $File) : (deno cache $File) - } + deno task build - name: "Lint Code" if: "${{!cancelled() && steps.analyze.outcome == 'success'}}" run: |- deno lint - - name: "Build Repository" - if: "${{!cancelled() && steps.analyze.outcome == 'success' && steps.analyze.outputs.build == 'true'}}" + - name: "Check Dependencies Update" + if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false'}}" run: |- - deno task build + deno outdated + - name: "Check Deployment For Remote Import" + if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false'}}" + shell: "pwsh" + run: |- + Get-ChildItem -LiteralPath '.\' -File -Recurse -Name + - name: "Check Deployment For JSR" + if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false' && steps.analyze.outputs.jsr-check == 'true'}}" + run: |- + deno task jsr-check - name: "Test Code" id: "test" if: "${{!cancelled() && steps.analyze.outcome == 'success' && steps.analyze.outputs.test == 'true'}}" @@ -111,26 +115,6 @@ jobs: if: "${{!cancelled() && steps.analyze.outcome == 'success' && steps.analyze.outputs.benchmark == 'true'}}" run: |- deno bench --allow-all --no-prompt - # - name: "Check Dependencies Update" - # if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false' && (github.event_name == 'schedule' || github.event_name == 'workflow_dispatch')}}" - # shell: "pwsh" - # run: |- - # [String]$Output = deno run --allow-net "--allow-read=$($Env:GITHUB_WORKSPACE)" --no-prompt https://deno.land/x/udd@0.8.2/main.ts --dry-run **/*.ts **/*.tsx deno.jsonc *>&1 | - # Join-String -Separator "`n" - # $LASTEXITCODE = 0 - # Write-Host -Object $Output - # If ($Output -imatch 'able to update') { - # Write-Warning -Message 'Found dependencies that need to update!' - # } - - name: "Check Deployment For Remote Import" - if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false'}}" - shell: "pwsh" - run: |- - Get-ChildItem -LiteralPath '.\' -File -Recurse -Name - - name: "Check Deployment For JSR" - if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false' && steps.analyze.outputs.jsr-check == 'true'}}" - run: |- - deno task jsr-check - name: "Build Package For NPM" if: "${{!cancelled() && steps.analyze.outcome == 'success' && env.CDV_RUN_LITE == 'false' && steps.analyze.outputs.npm-build == 'true'}}" run: |- diff --git a/deno.jsonc b/deno.jsonc index badf6be..105fa99 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -9,7 +9,7 @@ "useTabs": true }, "imports": { // IMPORTANT: Only remap development dependencies! - "DNT": "https://raw.githubusercontent.com/hugoalh/deno-nodejs-transformer/v0.5.3/mod.ts", + "DNT": "https://raw.githubusercontent.com/hugoalh/deno-nodejs-transformer/v0.6.0/mod.ts", "STD/assert": "jsr:@std/assert@^1.0.8" }, "lint": {