diff --git a/.craft.yml b/.craft.yml index 39a52c69437a..039528edc0a9 100644 --- a/.craft.yml +++ b/.craft.yml @@ -63,6 +63,9 @@ targets: - name: npm id: '@sentry/vercel-edge' includeNames: /^sentry-vercel-edge-\d.*\.tgz$/ + - name: npm + id: '@sentry/deno' + includeNames: /^sentry-deno-\d.*\.tgz$/ ## 5. Node-based Packages - name: npm diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e233d1dec828..66b282202f5e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -122,6 +122,10 @@ jobs: - *shared - 'packages/node/**' - 'packages/node-integration-tests/**' + deno: + - *shared + - *browser + - 'packages/deno/**' any_code: - '!**/*.md' @@ -135,6 +139,7 @@ jobs: changed_ember: ${{ steps.changed.outputs.ember }} changed_remix: ${{ steps.changed.outputs.remix }} changed_node: ${{ steps.changed.outputs.node }} + changed_deno: ${{ steps.changed.outputs.deno }} changed_browser: ${{ steps.changed.outputs.browser }} changed_browser_integration: ${{ steps.changed.outputs.browser_integration }} changed_any_code: ${{ steps.changed.outputs.any_code }} @@ -422,6 +427,7 @@ jobs: job_deno_unit_tests: name: Deno Unit Tests needs: [job_get_metadata, job_build] + if: needs.job_get_metadata.outputs.changed_deno == 'true' || github.event_name != 'pull_request' timeout-minutes: 10 runs-on: ubuntu-20.04 strategy: diff --git a/packages/deno/package.json b/packages/deno/package.json index 640c7400250b..c693779cc813 100644 --- a/packages/deno/package.json +++ b/packages/deno/package.json @@ -9,10 +9,14 @@ "main": "build/index.js", "module": "build/index.js", "types": "build/index.d.ts", - "private": true, "publishConfig": { "access": "public" }, + "files": [ + "index.js", + "index.js.map", + "index.d.ts" + ], "dependencies": { "@sentry/browser": "7.74.0", "@sentry/core": "7.74.0", @@ -34,6 +38,7 @@ "build:types": "run-s deno-types build:types:tsc build:types:bundle", "build:types:tsc": "tsc -p tsconfig.types.json", "build:types:bundle": "rollup -c rollup.types.config.js", + "build:tarball": "ts-node ../../scripts/prepack.ts && npm pack ./build", "circularDepCheck": "madge --circular src/index.ts", "clean": "rimraf build build-types coverage", "prefix": "yarn deno-types", @@ -48,7 +53,8 @@ "test": "run-s deno-types install:deno test:types test:unit", "test:types": "deno check ./build/index.js", "test:unit": "deno test --allow-read --allow-run", - "test:unit:update": "deno test --allow-read --allow-write --allow-run -- --update" + "test:unit:update": "deno test --allow-read --allow-write --allow-run -- --update", + "yalc:publish": "ts-node ../../scripts/prepack.ts && yalc publish build --push" }, "volta": { "extends": "../../package.json"