Skip to content

Commit 48df80d

Browse files
committed
add build dir to @sentry/utils
1 parent 6269e4f commit 48df80d

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

packages/utils/.npmignore

Lines changed: 7 additions & 2 deletions
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
*
2-
!/esm/**/*
6+
37
!/dist/**/*
4-
!/build/types/**/*
8+
!/esm/**/*
9+
!/types/**/*

packages/utils/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"
@@ -36,9 +36,9 @@
3636
"build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***",
3737
"build:esm:watch": "tsc -p tsconfig.esm.json --watch",
3838
"build:types:watch": "tsc -p tsconfig.types.json --watch",
39-
"build:npm": "npm pack",
39+
"build:npm": "ts-node ../../scripts/prepack.ts -noBundles && npm pack ./build",
4040
"circularDepCheck": "madge --circular src/index.ts",
41-
"clean": "rimraf dist esm coverage *.js *.js.map *.d.ts",
41+
"clean": "rimraf dist esm build coverage *.js *.js.map *.d.ts",
4242
"fix": "run-s fix:eslint fix:prettier",
4343
"fix:eslint": "eslint . --format stylish --fix",
4444
"fix:prettier": "prettier --write \"{src,test,scripts}/**/*.ts\"",

packages/utils/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/utils/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)