Skip to content

Commit 5e10578

Browse files
committed
add build dir to @sentry/node
1 parent 037a3ad commit 5e10578

16 files changed

+24
-19
lines changed

packages/node/.npmignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
# Info: the paths in this file are specified so that they align with the file
2+
# structure in `./build` where this file is copied to. This is done by the
3+
# prepack script `sentry-javascript/scripts/prepack.ts`.
4+
15
*
6+
27
!/dist/**/*
38
!/esm/**/*
4-
!build/types/**/*
9+
!/types/**/*

packages/node/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"engines": {
1010
"node": ">=6"
1111
},
12-
"main": "dist/index.js",
13-
"module": "esm/index.js",
12+
"main": "build/dist/index.js",
13+
"module": "build/esm/index.js",
1414
"types": "build/types/index.d.ts",
1515
"publishConfig": {
1616
"access": "public"
@@ -46,9 +46,9 @@
4646
"build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***",
4747
"build:esm:watch": "tsc -p tsconfig.esm.json --watch",
4848
"build:types:watch": "tsc -p tsconfig.types.json --watch",
49-
"build:npm": "npm pack",
49+
"build:npm": "ts-node ../../scripts/prepack.ts -noBundles && npm pack ./build",
5050
"circularDepCheck": "madge --circular src/index.ts",
51-
"clean": "rimraf dist esm coverage",
51+
"clean": "rimraf dist esm build coverage",
5252
"fix": "run-s fix:eslint fix:prettier",
5353
"fix:eslint": "eslint . --format stylish --fix",
5454
"fix:prettier": "prettier --write \"{src,test,scripts}/**/*.ts\"",

packages/node/test/manual/apm-transaction/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const http = require('http');
22
const express = require('express');
33
const app = express();
4-
const Sentry = require('../../../dist');
4+
const Sentry = require('../../../build/dist');
55

66
Sentry.init({
77
debug: true,

packages/node/test/manual/express-scope-separation/start.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const http = require('http');
22
const express = require('express');
33
const app = express();
4-
const Sentry = require('../../../dist');
4+
const Sentry = require('../../../build/dist');
55

66
function assertTags(actual, expected) {
77
if (JSON.stringify(actual) !== JSON.stringify(expected)) {

packages/node/test/manual/memory-leak/context-memory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Sentry = require('../../../dist');
1+
const Sentry = require('../../../build/dist');
22

33
Sentry.init({ dsn: 'https://[email protected]/12345' });
44

packages/node/test/manual/memory-leak/express-patient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Sentry = require('../../../dist');
1+
const Sentry = require('../../../build/dist');
22

33
Sentry.init({ dsn: 'https://[email protected]/12345' });
44

packages/node/test/manual/release-health/session-aggregates/aggregates-disable-single-session.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const http = require('http');
22
const express = require('express');
33
const app = express();
4-
const Sentry = require('../../../../dist');
4+
const Sentry = require('../../../../build/dist');
55
const { assertSessions, BaseDummyTransport } = require('../test-utils');
66

77
function cleanUpAndExitSuccessfully() {

packages/node/test/manual/release-health/single-session/caught-exception-errored-session.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Sentry = require('../../../../dist');
1+
const Sentry = require('../../../../build/dist');
22
const {
33
assertSessions,
44
constructStrippedSessionObject,

packages/node/test/manual/release-health/single-session/errors-in-session-capped-to-one.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Sentry = require('../../../../dist');
1+
const Sentry = require('../../../../build/dist');
22
const {
33
assertSessions,
44
constructStrippedSessionObject,

packages/node/test/manual/release-health/single-session/healthy-session.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Sentry = require('../../../../dist');
1+
const Sentry = require('../../../../build/dist');
22
const {
33
assertSessions,
44
constructStrippedSessionObject,

packages/node/test/manual/release-health/single-session/terminal-state-sessions-sent-once.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Sentry = require('../../../../dist');
1+
const Sentry = require('../../../../build/dist');
22
const {
33
assertSessions,
44
constructStrippedSessionObject,

packages/node/test/manual/release-health/single-session/uncaught-exception-crashed-session.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Sentry = require('../../../../dist');
1+
const Sentry = require('../../../../build/dist');
22
const { assertSessions, constructStrippedSessionObject, BaseDummyTransport } = require('../test-utils');
33

44
class DummyTransport extends BaseDummyTransport {

packages/node/test/manual/release-health/single-session/unhandled-rejection-crashed-session.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Sentry = require('../../../../dist');
1+
const Sentry = require('../../../../build/dist');
22
const {
33
assertSessions,
44
constructStrippedSessionObject,

packages/node/test/manual/webpack-domain/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const Sentry = require('../../../dist');
1+
const Sentry = require('../../../build/dist');
22

33
let remaining = 2;
44

packages/node/tsconfig.cjs.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
"compilerOptions": {
55
"module": "commonjs",
6-
"outDir": "dist"
6+
"outDir": "build/dist"
77
}
88
}

packages/node/tsconfig.esm.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
"compilerOptions": {
55
"module": "es6",
6-
"outDir": "esm"
6+
"outDir": "build/esm"
77
}
88
}

0 commit comments

Comments
 (0)