|
6 | 6 | "main": "dist/codesandbox.umd.js", |
7 | 7 | "module": "dist/codesandbox.es5.js", |
8 | 8 | "typings": "dist/types/codesandbox.d.ts", |
9 | | - "files": ["dist"], |
| 9 | + "files": [ |
| 10 | + "dist" |
| 11 | + ], |
10 | 12 | "author": "Ives van Hoorne <[email protected]>", |
11 | 13 | "repository": { |
12 | 14 | "type": "git", |
|
20 | 22 | "lint": "tslint -t codeFrame 'src/**/*.ts' 'test/**/*.ts'", |
21 | 23 | "prebuild": "rimraf dist", |
22 | 24 | "build:clean": "tsc && rollup -c", |
23 | | - "build": |
24 | | - "tsc && rollup -c && rimraf compiled && typedoc --out dist/docs --target es6 --theme minimal src", |
25 | | - "start": |
26 | | - "nodemon --watch \"src/**/*.ts\" -e ts --exec \"npm run build:clean\"", |
| 25 | + "build": "tsc && rollup -c && rimraf compiled && typedoc --out dist/docs --target es6 --theme minimal src", |
| 26 | + "start": "nodemon --watch \"src/**/*.ts\" -e ts --exec \"npm run build:clean\"", |
27 | 27 | "test": "echo TODO", |
28 | 28 | "test:watch": "jest --watch", |
29 | 29 | "test:prod": "npm run lint && npm run test -- --coverage --no-cache", |
30 | 30 | "deploy-docs": "ts-node tools/gh-pages-publish", |
31 | 31 | "report-coverage": "cat ./coverage/lcov.info | coveralls", |
32 | 32 | "commit": "git-cz", |
33 | | - "semantic-release": |
34 | | - "semantic-release pre && npm publish && semantic-release post", |
| 33 | + "semantic-release": "semantic-release pre && npm publish && semantic-release post", |
35 | 34 | "semantic-release-prepare": "ts-node tools/semantic-release-prepare", |
36 | 35 | "precommit": "lint-staged" |
37 | 36 | }, |
38 | 37 | "lint-staged": { |
39 | | - "./{src,test}/**/*.ts": ["prettier --write --no-semi", "git add"] |
| 38 | + "./{src,test}/**/*.ts": [ |
| 39 | + "prettier --write --no-semi", |
| 40 | + "git add" |
| 41 | + ] |
40 | 42 | }, |
41 | 43 | "config": { |
42 | 44 | "commitizen": { |
43 | 45 | "path": "node_modules/cz-conventional-changelog" |
44 | 46 | }, |
45 | 47 | "validate-commit-msg": { |
46 | 48 | "types": "conventional-commit-types", |
47 | | - "helpMessage": |
48 | | - "Use \"npm run commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)" |
| 49 | + "helpMessage": "Use \"npm run commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)" |
49 | 50 | } |
50 | 51 | }, |
51 | 52 | "jest": { |
52 | 53 | "transform": { |
53 | 54 | ".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js" |
54 | 55 | }, |
55 | 56 | "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", |
56 | | - "moduleFileExtensions": ["ts", "tsx", "js"], |
57 | | - "coveragePathIgnorePatterns": ["/node_modules/", "/test/"], |
| 57 | + "moduleFileExtensions": [ |
| 58 | + "ts", |
| 59 | + "tsx", |
| 60 | + "js" |
| 61 | + ], |
| 62 | + "coveragePathIgnorePatterns": [ |
| 63 | + "/node_modules/", |
| 64 | + "/test/" |
| 65 | + ], |
58 | 66 | "coverageThreshold": { |
59 | 67 | "global": { |
60 | 68 | "branches": 90, |
|
0 commit comments