|
3 | 3 | "version": "0.0.0-development",
|
4 | 4 | "description": "Config contains the configuration types and validation function used in the cypress electron application.",
|
5 | 5 | "private": true,
|
6 |
| - "main": "index.js", |
7 |
| - "browser": "src/browser.ts", |
| 6 | + "main": "cjs/index.js", |
| 7 | + "browser": "esm/browser.js", |
8 | 8 | "scripts": {
|
9 |
| - "build-prod": "tsc || echo 'built, with errors'", |
10 |
| - "check-ts": "tsc --noEmit && yarn -s tslint", |
11 |
| - "clean": "rimraf --glob './src/*.js' './src/**/*.js' './src/**/**/*.js' './test/!**__fixtures__**/**/*.js' || echo 'cleaned'", |
| 9 | + "build": "yarn build:esm && yarn build:cjs", |
| 10 | + "build-prod": "yarn build", |
| 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 cjs esm", |
12 | 15 | "clean-deps": "rimraf node_modules",
|
13 | 16 | "lint": "eslint --ext .js,.ts,.json, .",
|
14 | 17 | "test": "yarn test-unit",
|
|
42 | 45 | "@packages/ts": "0.0.0-development",
|
43 | 46 | "@packages/types": "0.0.0-development",
|
44 | 47 | "babel-plugin-tester": "^10.1.0",
|
| 48 | + "rimraf": "6.0.1", |
45 | 49 | "vitest": "^3.2.4"
|
46 | 50 | },
|
47 | 51 | "files": [
|
48 |
| - "src" |
| 52 | + "cjs/*", |
| 53 | + "esm/*" |
49 | 54 | ],
|
50 | 55 | "types": "src/index.ts",
|
| 56 | + "module": "esm/index.js", |
51 | 57 | "nx": {}
|
52 | 58 | }
|
0 commit comments