|
7 | 7 | "scripts": {
|
8 | 8 | "lint": "eslint $npm_package_config_lint",
|
9 | 9 | "lint:fix": "eslint $npm_package_config_lint",
|
10 |
| - "lint:watch": "esw --watch $npm_package_config_lint", |
11 |
| - "prettier": "prettier --write .babelrc.js *.json *.md *.ts '{src,test}/**/*.{js,ts}'", |
12 |
| - "prettier:check": "prettier --list-different .babelrc.js *.json *.md *.ts '{src,test}/**/*.{js,ts}'", |
13 |
| - "tsc": "tsc --noEmit", |
| 10 | + "prettier": "prettier --write $npm_package_config_prettier", |
| 11 | + "prettier:check": "prettier --list-different $npm_package_config_prettier", |
| 12 | + "tsc": "tsc", |
14 | 13 | "tsc:watch": "npm run tsc -- --watch",
|
15 | 14 | "clean": "rimraf es lib $(cd src; ls) *.js *.d.ts *.js.flow",
|
16 | 15 | "build": "npm run clean && npm run build:types && npm run build:js",
|
17 |
| - "build:types": "tsc --emitDeclarationOnly && copy 'src/**/*.js.flow' .", |
| 16 | + "build:types": "tsc -p tsconfig.build.json && tsc -p tsconfig.build.json --outDir es && copy 'src/**/*.js.flow' . && copy 'src/**/*.js.flow' es", |
18 | 17 | "build:js": "babel src --out-dir es --extensions \".ts\" --source-maps inline && cross-env BABEL_ENV=es5 babel src --out-dir . --extensions \".ts\"",
|
19 | 18 | "test": "cross-env NODE_ENV=test BABEL_ENV=es5 mocha $npm_package_config_mocha && cross-env NODE_ENV=test BABEL_ENV=coverage nyc --reporter=lcov --reporter=text mocha $npm_package_config_mocha",
|
20 |
| - "test:watch": "cross-env NODE_ENV=test BABEL_ENV=test mocha $npm_package_config_mocha --watch --watch-extensions js,ts", |
| 19 | + "test:watch": "cross-env NODE_ENV=test BABEL_ENV=test mocha $npm_package_config_mocha --watch", |
21 | 20 | "test:debug": "cross-env NODE_ENV=test BABEL_ENV=test mocha --inspect-brk $npm_package_config_mocha",
|
22 | 21 | "codecov": "nyc report --reporter=text-lcov > coverage.lcov; codecov",
|
23 | 22 | "prepublishOnly": "npm run clean && npm run prettier:check && npm run lint && flow && npm test && npm run build",
|
|
26 | 25 | },
|
27 | 26 | "config": {
|
28 | 27 | "lint": "--cache --ext .js,.ts src test",
|
29 |
| - "mocha": "test/configure.js 'test/**/*.ts'", |
| 28 | + "mocha": "--extension js --extension ts test/configure.js 'src/**/*.spec.ts' 'test/**/*.ts'", |
| 29 | + "prettier": ".babelrc.js *.{json,md} {src,test}/**/*.{js,ts,flow}", |
30 | 30 | "commitizen": {
|
31 | 31 | "path": "cz-conventional-changelog"
|
32 | 32 | }
|
|
39 | 39 | }
|
40 | 40 | },
|
41 | 41 | "lint-staged": {
|
42 |
| - "*.{js,ts,json,css,md}": [ |
43 |
| - "prettier --write", |
44 |
| - "git add" |
| 42 | + "*.{js,ts,json,css,md,flow}": [ |
| 43 | + "prettier --write" |
45 | 44 | ]
|
46 | 45 | },
|
47 | 46 | "commitlint": {
|
|
96 | 95 | },
|
97 | 96 | "homepage": "https://github.com/jcoreio/typed-validators#readme",
|
98 | 97 | "devDependencies": {
|
99 |
| - "@babel/cli": "^7.1.5", |
100 |
| - "@babel/core": "^7.1.6", |
101 |
| - "@babel/plugin-proposal-class-properties": "^7.1.0", |
102 |
| - "@babel/plugin-proposal-export-default-from": "^7.0.0", |
103 |
| - "@babel/plugin-proposal-export-namespace-from": "^7.0.0", |
| 98 | + "@babel/cli": "^7.15.7", |
| 99 | + "@babel/core": "^7.15.5", |
| 100 | + "@babel/plugin-proposal-export-default-from": "^7.14.5", |
| 101 | + "@babel/plugin-proposal-export-namespace-from": "^7.14.5", |
104 | 102 | "@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4",
|
105 | 103 | "@babel/plugin-proposal-object-rest-spread": "^7.0.0",
|
106 | 104 | "@babel/plugin-proposal-optional-chaining": "^7.6.0",
|
107 | 105 | "@babel/plugin-syntax-dynamic-import": "^7.0.0",
|
108 |
| - "@babel/plugin-transform-runtime": "^7.1.0", |
109 |
| - "@babel/preset-env": "^7.1.6", |
110 |
| - "@babel/preset-typescript": "^7.7.2", |
111 |
| - "@babel/register": "^7.0.0", |
112 |
| - "@commitlint/cli": "^6.0.2", |
113 |
| - "@commitlint/config-conventional": "^6.0.2", |
114 |
| - "@jedwards1211/commitlint-config": "^1.0.0", |
115 |
| - "@jedwards1211/eslint-config-typescript": "^1.0.0", |
116 |
| - "@types/chai": "^4.2.0", |
117 |
| - "@types/mocha": "^5.2.7", |
118 |
| - "@types/node": "^12.12.6", |
| 106 | + "@babel/plugin-transform-runtime": "^7.15.0", |
| 107 | + "@babel/preset-env": "^7.15.6", |
| 108 | + "@babel/preset-typescript": "^7.15.0", |
| 109 | + "@babel/register": "^7.15.3", |
| 110 | + "@commitlint/cli": "^13.2.0", |
| 111 | + "@commitlint/config-conventional": "^13.2.0", |
| 112 | + "@jedwards1211/commitlint-config": "^1.0.2", |
| 113 | + "@jedwards1211/eslint-config": "^2.0.2", |
| 114 | + "@jedwards1211/eslint-config-typescript": "^2.0.2", |
| 115 | + "@types/chai": "^4.2.22", |
| 116 | + "@types/mocha": "^9.0.0", |
| 117 | + "@types/node": "^16.10.2", |
| 118 | + "@typescript-eslint/eslint-plugin": "^4.32.0", |
| 119 | + "@typescript-eslint/parser": "^4.32.0", |
| 120 | + "@typescript-eslint/typescript-estree": "^4.32.0", |
119 | 121 | "babel-eslint": "^10.0.1",
|
120 |
| - "babel-plugin-istanbul": "^5.1.0", |
121 |
| - "chai": "^4.2.0", |
122 |
| - "codecov": "^3.7.0", |
| 122 | + "babel-plugin-istanbul": "^6.0.0", |
| 123 | + "chai": "^4.3.4", |
| 124 | + "codecov": "^3.8.3", |
123 | 125 | "copy": "^0.3.2",
|
124 |
| - "cross-env": "^5.2.0", |
| 126 | + "cross-env": "^7.0.3", |
125 | 127 | "dedent-js": "^1.0.1",
|
126 |
| - "eslint": "^5.9.0", |
127 |
| - "eslint-config-prettier": "^3.3.0", |
128 |
| - "eslint-watch": "^4.0.2", |
129 |
| - "flow-bin": "^0.141.0", |
130 |
| - "husky": "^1.1.4", |
| 128 | + "eslint": "^7.32.0", |
| 129 | + "eslint-config-prettier": "^8.3.0", |
| 130 | + "flow-bin": "^0.187.1", |
| 131 | + "husky": "^7.0.2", |
131 | 132 | "istanbul": "^0.4.5",
|
132 |
| - "lint-staged": "^8.0.4", |
133 |
| - "mocha": "^6.2.1", |
134 |
| - "nyc": "^13.1.0", |
135 |
| - "prettier": "^1.15.2", |
136 |
| - "prettier-eslint": "^8.8.2", |
137 |
| - "rimraf": "^2.6.0", |
138 |
| - "semantic-release": "^15.1.4", |
139 |
| - "typescript": "^3.7.2" |
| 133 | + "lint-staged": "^11.1.2", |
| 134 | + "mocha": "^9.1.2", |
| 135 | + "nyc": "^15.1.0", |
| 136 | + "prettier": "^2.4.1", |
| 137 | + "prettier-eslint": "^13.0.0", |
| 138 | + "rimraf": "^3.0.2", |
| 139 | + "semantic-release": "^18.0.0", |
| 140 | + "typescript": "^4.4.3" |
140 | 141 | },
|
141 | 142 | "dependencies": {
|
142 | 143 | "@babel/runtime": "^7.1.5"
|
|
0 commit comments