Skip to content

Commit

Permalink
chore!: fix the build by upgrading to grumbler-scripts@5
Browse files Browse the repository at this point in the history
  • Loading branch information
westeezy committed Mar 23, 2022
1 parent e9e780e commit ced9990
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 7 deletions.
9 changes: 7 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
/* @flow */

module.exports = {
'extends': './node_modules/grumbler-scripts/config/.eslintrc-node.js'
};
'extends': './node_modules/grumbler-scripts/config/.eslintrc-node.js',
'rules': {
// legacy rule settings
'prefer-const': 'off',
'flowtype/require-exact-type': 'off'
}
};
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[ignore]
.*/node_modules/babel-plugin-flow-runtime
.*/node_modules/@babel
.*/node_modules/npm
.*/node_modules/resolve
[include]
Expand Down
2 changes: 1 addition & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
registry=http://registry.npmjs.com/
registry=https://registry.npmjs.org/
package-lock=false
save=false
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"flow-typed": "flow-typed install",
"flow:build": "flow gen-flow-files ./src/index.js --out-dir ./src",
"babel": "babel src/*.js src/**/*.js --exclude=node_modules --out-dir . --source-maps inline",
"babel": "babel ./src --ignore=node_modules --out-dir ./src --source-maps inline",
"test": "npm run flow-typed && npm run lint && npm run flow && npm run tsd",
"tsd": "tsd",
"flow": "flow",
Expand All @@ -33,7 +33,7 @@
"devDependencies": {
"@types/express": "^4.17.13",
"flow-bin": "^0.69.0",
"grumbler-scripts": "^2.0.7",
"grumbler-scripts": "^5.0.0",
"in-publish": "^2.0.1",
"tsd": "^0.19.1",
"yargs-parser": "^10.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import https from 'https';

import express from 'express'; // eslint-disable-line import/no-unresolved
import express from 'express';

type ExpressRequest = express$Request; // eslint-disable-line no-undef
type ExpressResponse = express$Response; // eslint-disable-line no-undef
Expand Down

0 comments on commit ced9990

Please sign in to comment.