|
36 | 36 | ], |
37 | 37 | "scripts": { |
38 | 38 | "prepublish": ". ./resources/prepublish.sh", |
39 | | - "test": "npm run lint && npm run check && npm run testonly", |
40 | | - "test:ci": "yarn check --integrity && npm run lint && npm run check && npm run testonly:cover && npm run build", |
| 39 | + "test": "npm run prettier:check && npm run lint && npm run check && npm run testonly", |
| 40 | + "test:ci": "yarn check --integrity && npm run prettier:check && npm run lint && npm run check && npm run testonly:cover && npm run build", |
41 | 41 | "testonly": "mocha src/**/__tests__/**/*.js", |
42 | 42 | "testonly:cover": "nyc npm run testonly", |
43 | | - "lint": "prettier --ignore-path .gitignore --check '**/*.{js,ts,md,json,yml}' && eslint src resources", |
44 | | - "prettier": "prettier --ignore-path .gitignore --write '**/*.{js,ts,md,json,yml}'", |
| 43 | + "lint": "eslint src resources", |
| 44 | + "prettier": "prettier --ignore-path .gitignore --write --list-different '**/*.{js,ts,md,json,yml}'", |
| 45 | + "prettier:check": "prettier --ignore-path .gitignore --check '**/*.{js,md,json,yml}'", |
45 | 46 | "check": "flow check", |
46 | 47 | "build": "rm -rf dist/* && babel src --ignore '**/__tests__' --out-dir dist && npm run build:flow", |
47 | 48 | "build:flow": "find ./src -name '*.js' -not -path '*/__tests__*' | while read filepath; do cp $filepath `echo $filepath | sed 's/\\/src\\//\\/dist\\//g'`.flow; done", |
|
0 commit comments