File tree 4 files changed +12
-6
lines changed
4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change
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
+
1
5
*
6
+
2
7
! /dist /** /*
3
8
! /esm /** /*
4
- ! /build / types /** /*
9
+ ! /types /** /*
Original file line number Diff line number Diff line change 9
9
"engines" : {
10
10
"node" : " >=6"
11
11
},
12
- "main" : " dist/index.js" ,
13
- "module" : " esm/index.js" ,
12
+ "main" : " build/ dist/index.js" ,
13
+ "module" : " build/ esm/index.js" ,
14
14
"types" : " build/types/index.d.ts" ,
15
15
"publishConfig" : {
16
16
"access" : " public"
28
28
"build:es5:watch" : " yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***" ,
29
29
"build:esm:watch" : " tsc -p tsconfig.esm.json --watch" ,
30
30
"build:types:watch" : " tsc -p tsconfig.types.json --watch" ,
31
- "build:npm" : " npm pack" ,
31
+ "build:npm" : " ts-node ../../scripts/prepack.ts -noBundles && npm pack ./build" ,
32
+ "clean" : " rimraf dist esm build" ,
32
33
"link:yarn" : " yarn link" ,
33
34
"lint" : " run-s lint:prettier lint:eslint" ,
34
35
"lint:eslint" : " eslint . --cache --cache-location '../../eslintcache/' --format stylish" ,
Original file line number Diff line number Diff line change 3
3
4
4
"compilerOptions" : {
5
5
"module" : " commonjs" ,
6
- "outDir" : " dist"
6
+ "outDir" : " build/ dist"
7
7
}
8
8
}
Original file line number Diff line number Diff line change 3
3
4
4
"compilerOptions" : {
5
5
"module" : " es6" ,
6
- "outDir" : " esm"
6
+ "outDir" : " build/ esm"
7
7
}
8
8
}
You can’t perform that action at this time.
0 commit comments