|
2 | 2 | "name": "@packages/scaffold-config",
|
3 | 3 | "version": "0.0.0-development",
|
4 | 4 | "description": "Logic related to scaffolding new projects using launchpad",
|
5 |
| - "main": "index.js", |
6 |
| - "browser": "src/index.ts", |
| 5 | + "main": "cjs/index.js", |
| 6 | + "browser": "esm/index.js", |
7 | 7 | "scripts": {
|
8 |
| - "build-prod": "tsc || echo 'built, with errors'", |
9 |
| - "check-ts": "tsc --noEmit && yarn -s tslint", |
10 |
| - "clean": "rimraf --glob './src/*.js' './src/**/*.js' './src/**/**/*.js' './test/**/*.js' || echo 'cleaned'", |
| 8 | + "build": "yarn build:cjs && yarn build:esm", |
| 9 | + "build-prod": "yarn build", |
| 10 | + "build:cjs": "rimraf cjs && tsc -p tsconfig.cjs.json", |
| 11 | + "build:esm": "rimraf esm && tsc -p tsconfig.esm.json", |
| 12 | + "check-ts": "tsc -p tsconfig.cjs.json --noEmit && yarn -s tslint -p tsconfig.cjs.json", |
| 13 | + "clean": "rimraf esm cjs", |
11 | 14 | "clean-deps": "rimraf node_modules",
|
12 | 15 | "lint": "eslint --ext .js,.jsx,.ts,.tsx,.json, .",
|
13 | 16 | "test": "yarn test-unit",
|
|
29 | 32 | "@packages/ts": "0.0.0-development",
|
30 | 33 | "@packages/types": "0.0.0-development",
|
31 | 34 | "chai": "4.2.0",
|
32 |
| - "mocha": "7.0.1" |
| 35 | + "mocha": "7.0.1", |
| 36 | + "rimraf": "^6.0.1" |
33 | 37 | },
|
34 | 38 | "files": [
|
35 |
| - "src" |
| 39 | + "cjs/*", |
| 40 | + "esm/*" |
36 | 41 | ],
|
37 | 42 | "types": "src/index.ts",
|
| 43 | + "module": "esm/index.js", |
38 | 44 | "nx": {}
|
39 | 45 | }
|
0 commit comments