|
37 | 37 | "main": "lib/index.js",
|
38 | 38 | "module": "lib/index.mjs",
|
39 | 39 | "scripts": {
|
40 |
| - "build": "rimraf lib && yarn compile", |
41 |
| - "build-tests": "rimraf build && yarn compile-tests", |
42 |
| - "compile": "rollup -c", |
43 |
| - "compile-tests": "tsc -p tsconfig.tests.json && cp ./tests/helpers/tsconfig.json ./build/tests/helpers/", |
| 40 | + "build": "yarn rimraf lib && yarn compile", |
| 41 | + "build-tests": "yarn rimraf build && yarn compile-tests", |
| 42 | + "compile": "yarn rollup -c", |
| 43 | + "compile-tests": "yarn tsc -p tsconfig.tests.json && cp ./tests/helpers/tsconfig.json ./build/tests/helpers/", |
44 | 44 | "prelint": "yarn build && yarn link && yarn link 'eslint-plugin-functional'",
|
45 | 45 | "lint": "yarn eslint './{src,tests}/**/*.ts' --ext .ts -f visualstudio",
|
46 |
| - "report-coverage": "codecov -f coverage/lcov.info", |
47 |
| - "test": "jest --testPathIgnorePatterns _work.test", |
| 46 | + "report-coverage": "yarn codecov -f coverage/lcov.info", |
| 47 | + "test": "yarn jest --testPathIgnorePatterns _work.test", |
48 | 48 | "test-compiled": "USE_COMPLIED=1 yarn test",
|
49 |
| - "test-work": "jest tests/rules/_work.test.ts", |
| 49 | + "test-work": "yarn jest tests/rules/_work.test.ts", |
50 | 50 | "verify": "yarn build && yarn lint && yarn build-tests && yarn test-compiled && rimraf build",
|
51 | 51 | "preversion": "yarn verify",
|
52 | 52 | "postversion": "git push --tags && yarn publish --new-version $npm_package_version && git push && echo \"Successfully released version $npm_package_version!\""
|
53 | 53 | },
|
54 | 54 | "husky": {
|
55 | 55 | "hooks": {
|
56 |
| - "pre-commit": "lint-staged" |
| 56 | + "pre-commit": "yarn lint-staged" |
57 | 57 | }
|
58 | 58 | },
|
59 | 59 | "lint-staged": {
|
60 | 60 | "./{src,tests}/**/*.{ts,json}": [
|
61 |
| - "prettier --write", |
| 61 | + "yarn prettier --write", |
62 | 62 | "git add"
|
63 | 63 | ],
|
64 | 64 | "./{src,tests}/**/*.{ts}": "eslint"
|
|
0 commit comments