Packages – Components: Move proptype-validator utility into src (https://github.com/woocommerce/woocommerce-admin/pull/962)

* Move proptype-validator utility into src

Only src files are transpiled for external use, so requiring this file was breaking my jest tests

* Bump the package version + changelog
This commit is contained in:
Kelly Dwan 2018-11-30 13:19:17 -05:00 committed by GitHub
parent 9b0c767749
commit 6e3242c421
5 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,7 @@
# 1.1.1
- Fix incorrectly loaded `proptype-validator`
# 1.1.0
- Add `interpolate-components` as an explicit dependency, fixes issue with

View File

@ -1,6 +1,6 @@
{
"name": "@woocommerce/components",
"version": "1.1.0",
"version": "1.1.1",
"description": "UI components for WooCommerce.",
"author": "Automattic",
"license": "GPL-2.0-or-later",

View File

@ -11,7 +11,7 @@ import PropTypes from 'prop-types';
*/
import EllipsisMenu from '../ellipsis-menu';
import { H, Section } from '../section';
import { validateComponent } from '../../lib/proptype-validator';
import { validateComponent } from '../lib/proptype-validator';
/**
* A basic card component with a header. The header can contain a title, an action, and an `EllipsisMenu` menu.

View File

@ -11,7 +11,7 @@ import PropTypes from 'prop-types';
*/
import EllipsisMenu from '../ellipsis-menu';
import { H } from '../section';
import { validateComponent } from '../../lib/proptype-validator';
import { validateComponent } from '../lib/proptype-validator';
/**
* A header component. The header can contain a title, actions via children, and an `EllipsisMenu` menu.