|
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'", |
| 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", |
10 | 13 | "check-ts": "tsc --noEmit && yarn -s tslint",
|
11 |
| - "clean": "rimraf --glob './src/*.js' './src/**/*.js' './src/**/**/*.js' './test/!**__fixtures__**/**/*.js' || echo 'cleaned'", |
| 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",
|
|
45 | 48 | "@types/mocha": "9.1.0",
|
46 | 49 | "babel-plugin-tester": "^10.1.0",
|
47 | 50 | "chai": "4.2.0",
|
48 |
| - "mocha": "7.0.1" |
| 51 | + "mocha": "7.0.1", |
| 52 | + "rimraf": "6.0.1" |
49 | 53 | },
|
50 | 54 | "files": [
|
51 |
| - "src" |
| 55 | + "cjs/*", |
| 56 | + "esm/*" |
52 | 57 | ],
|
53 | 58 | "types": "src/index.ts",
|
| 59 | + "module": "esm/index.js", |
54 | 60 | "nx": {}
|
55 | 61 | }
|
0 commit comments