|
6 | 6 | "scripts": { |
7 | 7 | "lint": "eslint $npm_package_config_lint", |
8 | 8 | "lint:fix": "eslint $npm_package_config_lint", |
9 | | - "lint:watch": "esw --watch $npm_package_config_lint", |
10 | | - "prettier": "prettier --write .babelrc.js *.json *.md *.ts '{src,test}/**/*.{js,ts}'", |
11 | | - "prettier:check": "prettier --list-different .babelrc.js *.json *.md *.ts '{src,test}/**/*.{js,ts}'", |
12 | | - "tsc": "tsc --noEmit", |
| 9 | + "prettier": "prettier --write $npm_package_config_prettier", |
| 10 | + "prettier:check": "prettier --list-different $npm_package_config_prettier", |
| 11 | + "tsc": "tsc", |
13 | 12 | "tsc:watch": "npm run tsc -- --watch", |
14 | | - "clean": "rimraf es lib $(cd src; ls) *.js *.d.ts", |
| 13 | + "clean": "rimraf es lib $(cd src; ls) *.js *.d.ts *.js.flow", |
15 | 14 | "build": "npm run clean && npm run build:types && npm run build:js", |
16 | | - "build:types": "tsc --emitDeclarationOnly", |
17 | | - "build:js": "babel src --out-dir es --extensions \".ts\" --source-maps inline && cross-env BABEL_ENV=es5 babel src --out-dir . --extensions \".ts\" && copy 'src/**/*.js' .", |
| 15 | + "build:types": "tsc -p tsconfig.build.json && tsc -p tsconfig.build.json --outDir es && copy 'src/**/*.js.flow' . && copy 'src/**/*.js.flow' es", |
| 16 | + "build:js": "babel src --out-dir es --extensions \".ts\" --source-maps inline && cross-env BABEL_ENV=es5 babel src --out-dir . --extensions \".ts\"", |
18 | 17 | "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", |
19 | | - "test:watch": "cross-env NODE_ENV=test BABEL_ENV=test mocha $npm_package_config_mocha --watch --watch-extensions js,ts", |
| 18 | + "test:watch": "cross-env NODE_ENV=test BABEL_ENV=test mocha $npm_package_config_mocha --watch", |
20 | 19 | "test:debug": "cross-env NODE_ENV=test BABEL_ENV=test mocha --inspect-brk $npm_package_config_mocha", |
21 | 20 | "codecov": "nyc report --reporter=text-lcov > coverage.lcov; codecov", |
22 | | - "prepublishOnly": "npm run clean && npm run prettier:check && npm run lint && npm test && npm run build", |
| 21 | + "prepublishOnly": "npm run clean && npm run prettier:check && npm run lint && flow && npm test && npm run build", |
23 | 22 | "open:coverage": "open coverage/lcov-report/index.html", |
24 | 23 | "semantic-release": "semantic-release" |
25 | 24 | }, |
26 | 25 | "config": { |
27 | 26 | "lint": "--cache --ext .js,.ts src test", |
28 | | - "mocha": "test/configure.js 'src/**/*.spec.ts' 'test/**/*.spec.ts'", |
| 27 | + "mocha": "--extension js --extension ts test/configure.js 'src/**/*.spec.ts' 'test/**/*.ts'", |
| 28 | + "prettier": ".babelrc.js *.{json,md} {src,test}/**/*.{js,ts,flow}", |
29 | 29 | "commitizen": { |
30 | 30 | "path": "cz-conventional-changelog" |
31 | 31 | } |
32 | 32 | }, |
33 | 33 | "husky": { |
34 | 34 | "hooks": { |
35 | | - "pre-commit": "lint-staged && npm run lint && npm run tsc", |
| 35 | + "pre-commit": "lint-staged && npm run lint && npm run tsc && flow", |
36 | 36 | "commit-msg": "commitlint -e $GIT_PARAMS", |
37 | 37 | "pre-push": "npm test" |
38 | 38 | } |
39 | 39 | }, |
40 | 40 | "lint-staged": { |
41 | | - "*.{js,ts,json,css,md}": [ |
42 | | - "prettier --write", |
43 | | - "git add" |
| 41 | + "*.{js,ts,json,css,md,flow}": [ |
| 42 | + "prettier --write" |
44 | 43 | ] |
45 | 44 | }, |
46 | 45 | "commitlint": { |
|
83 | 82 | }, |
84 | 83 | "homepage": "https://github.com/codemodsquad/graphql-typegen#readme", |
85 | 84 | "devDependencies": { |
86 | | - "@babel/cli": "^7.1.5", |
87 | | - "@babel/core": "^7.1.6", |
88 | | - "@babel/plugin-proposal-class-properties": "^7.1.0", |
89 | | - "@babel/plugin-proposal-export-default-from": "^7.0.0", |
90 | | - "@babel/plugin-proposal-export-namespace-from": "^7.0.0", |
91 | | - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.4.4", |
92 | | - "@babel/plugin-proposal-object-rest-spread": "^7.0.0", |
93 | | - "@babel/plugin-proposal-optional-chaining": "^7.6.0", |
94 | | - "@babel/plugin-syntax-dynamic-import": "^7.0.0", |
95 | | - "@babel/plugin-transform-runtime": "^7.1.0", |
96 | | - "@babel/preset-env": "^7.1.6", |
97 | | - "@babel/preset-typescript": "^7.7.2", |
98 | | - "@babel/register": "^7.8.3", |
99 | | - "@commitlint/cli": "^8.3.5", |
100 | | - "@commitlint/config-conventional": "^6.0.2", |
101 | | - "@jedwards1211/commitlint-config": "^1.0.0", |
102 | | - "@jedwards1211/eslint-config-typescript": "^1.0.0", |
103 | | - "@types/chai": "^4.2.0", |
| 85 | + "@babel/cli": "^7.15.7", |
| 86 | + "@babel/core": "^7.15.5", |
| 87 | + "@babel/plugin-proposal-export-default-from": "^7.14.5", |
| 88 | + "@babel/plugin-proposal-export-namespace-from": "^7.14.5", |
| 89 | + "@babel/plugin-transform-runtime": "^7.15.0", |
| 90 | + "@babel/preset-env": "^7.15.6", |
| 91 | + "@babel/preset-typescript": "^7.15.0", |
| 92 | + "@babel/register": "^7.15.3", |
| 93 | + "@commitlint/cli": "^13.2.0", |
| 94 | + "@commitlint/config-conventional": "^13.2.0", |
| 95 | + "@jedwards1211/commitlint-config": "^1.0.2", |
| 96 | + "@jedwards1211/eslint-config-typescript": "^2.0.2", |
| 97 | + "@jedwards1211/eslint-config": "^2.0.2", |
104 | 98 | "@types/chai-as-promised": "^7.1.2", |
| 99 | + "@types/chai": "^4.2.22", |
105 | 100 | "@types/fs-extra": "^8.0.1", |
106 | 101 | "@types/graphql": "^14.5.0", |
107 | 102 | "@types/jscodeshift": "^0.6.3", |
108 | 103 | "@types/lodash": "^4.14.149", |
109 | | - "@types/mocha": "^5.2.7", |
110 | | - "@types/node": "^13.7.4", |
| 104 | + "@types/mocha": "^9.0.0", |
| 105 | + "@types/node": "^16.10.2", |
111 | 106 | "@types/prettier": "^1.19.0", |
112 | 107 | "@types/superagent": "^4.1.4", |
| 108 | + "@typescript-eslint/eslint-plugin": "^4.32.0", |
| 109 | + "@typescript-eslint/parser": "^4.32.0", |
| 110 | + "@typescript-eslint/typescript-estree": "^4.32.0", |
113 | 111 | "babel-eslint": "^10.0.1", |
114 | | - "babel-plugin-istanbul": "^5.1.0", |
115 | | - "chai": "^4.2.0", |
| 112 | + "babel-plugin-istanbul": "^6.0.0", |
116 | 113 | "chai-as-promised": "^7.1.1", |
117 | | - "codecov": "^3.6.5", |
| 114 | + "chai": "^4.3.4", |
| 115 | + "codecov": "^3.8.3", |
118 | 116 | "copy": "^0.3.2", |
119 | | - "cross-env": "^5.2.0", |
120 | | - "eslint": "^5.9.0", |
121 | | - "eslint-config-prettier": "^3.3.0", |
| 117 | + "cross-env": "^7.0.3", |
| 118 | + "eslint-config-prettier": "^8.3.0", |
122 | 119 | "eslint-watch": "^4.0.2", |
123 | | - "husky": "^1.1.4", |
| 120 | + "eslint": "^7.32.0", |
| 121 | + "flow-bin": "^0.161.0", |
| 122 | + "husky": "^7.0.2", |
124 | 123 | "istanbul": "^0.4.5", |
125 | 124 | "jscodeshift": "^0.7.0", |
126 | | - "lint-staged": "^8.0.4", |
127 | | - "mocha": "^6.2.1", |
128 | | - "nyc": "^13.1.0", |
129 | | - "prettier": "^1.15.2", |
130 | | - "prettier-eslint": "^8.8.2", |
| 125 | + "lint-staged": "^11.1.2", |
| 126 | + "mocha": "^9.1.2", |
| 127 | + "nyc": "^15.1.0", |
| 128 | + "prettier-eslint": "^13.0.0", |
| 129 | + "prettier": "^2.4.1", |
131 | 130 | "require-glob": "^3.2.0", |
132 | | - "rimraf": "^2.6.0", |
133 | | - "semantic-release": "^15.1.4", |
134 | | - "typescript": "^3.7.2" |
| 131 | + "rimraf": "^3.0.2", |
| 132 | + "semantic-release": "^18.0.0", |
| 133 | + "typescript": "^4.4.3" |
135 | 134 | }, |
136 | 135 | "dependencies": { |
137 | | - "@babel/runtime": "^7.1.5", |
| 136 | + "@babel/runtime": "^7.15.4", |
138 | 137 | "fs-extra": "^8.1.0", |
139 | 138 | "graphql": "^14.6.0", |
140 | 139 | "graphql-tag": "^2.10.1", |
|
145 | 144 | "lodash": "^4.17.15", |
146 | 145 | "pkg-conf": "^3.1.0", |
147 | 146 | "superagent": "^5.2.1" |
148 | | - }, |
149 | | - "renovate": { |
150 | | - "extends": [ |
151 | | - ":separateMajorReleases", |
152 | | - ":combinePatchMinorReleases", |
153 | | - ":ignoreUnstable", |
154 | | - ":prImmediately", |
155 | | - ":renovatePrefix", |
156 | | - ":updateNotScheduled", |
157 | | - ":preserveSemverRanges", |
158 | | - ":semanticPrefixFixDepsChoreOthers", |
159 | | - ":automergeDisabled", |
160 | | - "group:monorepos" |
161 | | - ], |
162 | | - "automerge": true, |
163 | | - "major": { |
164 | | - "automerge": false |
165 | | - } |
166 | 147 | } |
167 | 148 | } |
0 commit comments