|
6 | 6 | "homepage": "https://github.com/getsentry/sentry-javascript/tree/master/packages/profiling-node",
|
7 | 7 | "author": "Sentry",
|
8 | 8 | "license": "MIT",
|
9 |
| - "main": "lib/cjs/index.js", |
10 |
| - "module": "lib/esm/index.js", |
11 |
| - "types": "lib/types/index.d.ts", |
| 9 | + "main": "build/cjs/index.js", |
| 10 | + "module": "build/esm/index.js", |
| 11 | + "types": "build/types/index.d.ts", |
12 | 12 | "exports": {
|
13 | 13 | "./package.json": "./package.json",
|
14 | 14 | ".": {
|
15 | 15 | "import": {
|
16 |
| - "types": "./lib/types/index.d.ts", |
17 |
| - "default": "./lib/esm/index.js" |
| 16 | + "types": "./build/types/index.d.ts", |
| 17 | + "default": "./build/esm/index.js" |
18 | 18 | },
|
19 | 19 | "require": {
|
20 |
| - "types": "./lib/types/index.d.ts", |
21 |
| - "default": "./lib/cjs/index.js" |
| 20 | + "types": "./build/types/index.d.ts", |
| 21 | + "default": "./build/cjs/index.js" |
22 | 22 | }
|
23 | 23 | }
|
24 | 24 | },
|
25 | 25 | "typesVersions": {
|
26 | 26 | "<5.0": {
|
27 |
| - "lib/types/index.d.ts": [ |
28 |
| - "lib/types-ts3.8/index.d.ts" |
| 27 | + "build/types/index.d.ts": [ |
| 28 | + "build/types-ts3.8/index.d.ts" |
29 | 29 | ]
|
30 | 30 | }
|
31 | 31 | },
|
|
39 | 39 | "access": "public"
|
40 | 40 | },
|
41 | 41 | "files": [
|
42 |
| - "/lib", |
| 42 | + "/build", |
43 | 43 | "package.json",
|
44 | 44 | "/scripts/prune-profiler-binaries.js"
|
45 | 45 | ],
|
46 | 46 | "scripts": {
|
47 |
| - "clean": "rm -rf build && rm -rf lib", |
| 47 | + "clean": "rm -rf build", |
48 | 48 | "lint": "eslint . --format stylish",
|
49 |
| - "lint:es-compatibility": "es-check es2022 ./lib/cjs/*.js && es-check es2022 ./lib/esm/*.js --module", |
| 49 | + "lint:es-compatibility": "es-check es2022 ./build/cjs/*.js && es-check es2022 ./build/esm/*.js --module", |
50 | 50 | "fix": "eslint . --format stylish --fix",
|
51 |
| - "build": "yarn build:lib", |
52 |
| - "build:lib": "yarn build:types && rollup -c rollup.npm.config.mjs", |
53 |
| - "build:transpile": "yarn build:lib", |
54 |
| - "build:types:downlevel": "yarn downlevel-dts lib/types lib/types-ts3.8 --to ts3.8", |
| 51 | + "build": "yarn build:types && yarn build:transpile", |
| 52 | + "build:transpile": "yarn rollup -c rollup.npm.config.mjs", |
| 53 | + "build:types:downlevel": "yarn downlevel-dts build/types build/types-ts3.8 --to ts3.8", |
55 | 54 | "build:types": "tsc -p tsconfig.types.json && yarn build:types:downlevel",
|
56 | 55 | "build:types:watch": "tsc -p tsconfig.types.json --watch",
|
57 | 56 | "build:dev": "yarn clean && yarn build",
|
|
0 commit comments