|
2 | 2 | "name": "@packages/data-context",
|
3 | 3 | "version": "0.0.0-development",
|
4 | 4 | "description": "Centralized data access for the Cypress application",
|
5 |
| - "main": "index.js", |
6 |
| - "browser": "src/index.ts", |
| 5 | + "main": "cjs/index.js", |
7 | 6 | "scripts": {
|
8 |
| - "build": "node ./scripts/build.js", |
9 |
| - "build-prod": "tsc || echo 'built, with errors'", |
10 |
| - "check-ts": "tsc --noEmit && yarn -s tslint", |
11 |
| - "clean": "rimraf --glob \"./{src,test}/**/*.js\"", |
| 7 | + "build": "yarn build:schema && yarn build:cjs && yarn build:esm", |
| 8 | + "build-prod": "yarn build", |
| 9 | + "build:cjs": "rimraf cjs && tsc -p tsconfig.cjs.json", |
| 10 | + "build:esm": "rimraf esm && tsc -p tsconfig.esm.json", |
| 11 | + "build:schema": "tsx ./scripts/build.ts", |
| 12 | + "check-ts": "tsc -p tsconfig.cjs.json --noEmit && yarn -s tslint -p tsconfig.cjs.json", |
| 13 | + "clean": "rimraf esm cjs", |
12 | 14 | "clean-deps": "rimraf node_modules",
|
13 | 15 | "lint": "eslint --ext .js,.ts,.json, .",
|
14 | 16 | "test": "yarn test-unit",
|
|
95 | 97 | "mocha-junit-reporter": "2.2.0",
|
96 | 98 | "mocha-multi-reporters": "1.5.1",
|
97 | 99 | "nexus": "^1.2.0-next.15",
|
| 100 | + "rimraf": "6.0.1", |
98 | 101 | "sinon": "13.0.2",
|
99 | 102 | "sinon-chai": "3.7.0",
|
100 |
| - "tslint": "^6.1.3" |
| 103 | + "tslint": "^6.1.3", |
| 104 | + "tsx": "4.20.5", |
| 105 | + "typescript": "5.9.2" |
101 | 106 | },
|
102 | 107 | "files": [
|
103 |
| - "src" |
| 108 | + "cjs/*", |
| 109 | + "esm/*" |
104 | 110 | ],
|
105 | 111 | "types": "src/index.ts",
|
| 112 | + "module": "esm/index.js", |
106 | 113 | "nx": {
|
107 | 114 | "targets": {
|
108 | 115 | "build": {
|
|
0 commit comments