|
3 | 3 | "version": "0.0.0-development", |
4 | 4 | "description": "open telemetry wrapper used throughout the cypress monorepo to instrument the cypress app", |
5 | 5 | "private": true, |
6 | | - "main": "dist/node.js", |
7 | | - "browser": "src/browser.ts", |
| 6 | + "main": "cjs/node.js", |
8 | 7 | "scripts": { |
9 | | - "build": "tsc", |
10 | | - "check-ts": "tsc --noEmit && yarn -s tslint", |
11 | | - "clean": "rimraf dist", |
| 8 | + "build": "yarn build:esm && yarn build:cjs && yarn build:browser", |
| 9 | + "build-prod": "yarn build", |
| 10 | + "build:browser": "rimraf browser && rollup -c rollup.config.mjs", |
| 11 | + "build:cjs": "rimraf cjs && tsc -p tsconfig.cjs.json", |
| 12 | + "build:esm": "rimraf esm && tsc -p tsconfig.esm.json", |
| 13 | + "check-ts": "tsc -p tsconfig.cjs.json --noEmit && yarn -s tslint -p tsconfig.cjs.json", |
| 14 | + "clean": "rimraf esm cjs", |
| 15 | + "clean-deps": "rimraf node_modules", |
12 | 16 | "test": "yarn test-unit", |
13 | 17 | "test-unit": "mocha --config ./test/.mocharc.js", |
14 | 18 | "tslint": "tslint --config ../ts/tslint.json --project .", |
|
27 | 31 | }, |
28 | 32 | "devDependencies": { |
29 | 33 | "@packages/ts": "0.0.0-development", |
30 | | - "mocha": "7.0.1" |
| 34 | + "@rollup/plugin-typescript": "12.0.0", |
| 35 | + "mocha": "7.0.1", |
| 36 | + "rimraf": "6.0.1", |
| 37 | + "rollup": "4.52.0", |
| 38 | + "typescript": "5.6.3" |
31 | 39 | }, |
32 | 40 | "files": [ |
33 | | - "dist", |
34 | | - "src" |
| 41 | + "esm", |
| 42 | + "cjs", |
| 43 | + "browser" |
35 | 44 | ], |
36 | | - "types": "src/node.ts", |
| 45 | + "types": "cjs/node.d.ts", |
| 46 | + "module": "esm/node.js", |
37 | 47 | "nx": {} |
38 | 48 | } |
0 commit comments