Skip to content

Commit

Permalink
awks commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Noviny committed Feb 14, 2019
1 parent 7f96558 commit 914e372
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_js:
cache: yarn
script: |
yarn bolt
yarn flow check
if [[ $? != 0 ]]; then exit 1; fi
yarn lint
yarn test
yarn flow
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"test": "jest",
"changeset": "bolt build-releases changeset",
"version-all": "bolt build-releases version",
"publish-all": "yarn build && yarn check && build-releases publish --public",
"publish-all": "yarn validate && build-releases publish --public",
"dev:pretty-proptypes": "bolt w pretty-proptypes run dev",
"lint": "yarn eslint \"./**/*.js\"",
"check": "yarn lint && yarn test && yarn flow"
"validate": "yarn lint && yarn test && yarn flow"
},
"bolt": {
"workspaces": [
Expand Down
3 changes: 2 additions & 1 deletion packages/babel-plugin-extract-react-types/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,13 @@ module.exports = babel => {
t.assignmentExpression(
'=',
t.memberExpression(t.identifier(name), t.identifier('___types')),
babel.parse('(' + JSON.stringify(component) + ')').program.body[0].expression
babel.parse(`(${JSON.stringify(component)})`).program.body[0].expression
)
)
);
}
});
/* eslint-disable no-empty */
} catch (e) {}
}
}
Expand Down
4 changes: 4 additions & 0 deletions packages/pretty-proptypes/src/Props/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// @flow

/* eslint-disable no-underscore-dangle */

import React, { Component, type ComponentType } from 'react';

import type { Components } from '../components';
Expand Down Expand Up @@ -52,6 +55,7 @@ export default class Props extends Component<DynamicPropsProps> {
if (component.___types) {
props = { type: 'program', component: component.___types };
} else {
/* eslint-disable-next-line no-console */
console.error(
'A component was passed to <Props> but it does not have types attached.\n' +
'babel-plugin-extract-react-types may not be correctly installed.\n' +
Expand Down

0 comments on commit 914e372

Please sign in to comment.