Skip to content

Commit

Permalink
fix(deno): Emit .mjs files (#9485)
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst authored Nov 8, 2023
1 parent 62e562e commit 8f862a9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/deno/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/deno",
"author": "Sentry",
"license": "MIT",
"main": "build/index.js",
"module": "build/index.js",
"types": "build/index.d.ts",
"publishConfig": {
Expand Down Expand Up @@ -51,7 +50,7 @@
"pretest": "run-s deno-types test:build",
"test": "run-s install:deno test:types test:unit",
"test:build": "tsc -p tsconfig.test.types.json && rollup -c rollup.test.config.js",
"test:types": "deno check ./build/index.js",
"test:types": "deno check ./build/index.mjs",
"test:unit": "deno test --allow-read --allow-run",
"test:unit:update": "deno test --allow-read --allow-write --allow-run -- --update",
"yalc:publish": "ts-node ../../scripts/prepack.ts && yalc publish build --push"
Expand Down
2 changes: 1 addition & 1 deletion packages/deno/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineConfig({
input: ['src/index.ts'],
treeshake: 'smallest',
output: {
dir: 'build',
file: 'build/index.mjs',
sourcemap: true,
preserveModules: false,
strict: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/deno/test/example.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as Sentry from '../build/index.js';
import * as Sentry from '../build/index.mjs';

Sentry.init({
dsn: 'https://1234@some-domain.com/4505526893805568',
Expand Down
2 changes: 1 addition & 1 deletion packages/deno/test/mod.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { assertSnapshot } from 'https://deno.land/std@0.202.0/testing/snapshot.t

import type { sentryTypes } from '../build-test/index.js';
import { sentryUtils } from '../build-test/index.js';
import { defaultIntegrations, DenoClient, Hub, Scope } from '../build/index.js';
import { defaultIntegrations, DenoClient, Hub, Scope } from '../build/index.mjs';
import { getNormalizedEvent } from './normalize.ts';
import { makeTestTransport } from './transport.ts';

Expand Down

0 comments on commit 8f862a9

Please sign in to comment.