reporter: apply browserify transforms to since browserify will only apply them to relative packages

This commit is contained in:
Brian Mann
2017-05-31 12:52:21 -04:00
parent 817758e4b6
commit 68dd72b4c7
3 changed files with 8 additions and 2 deletions
+6
View File
@@ -12,6 +12,12 @@
"clean-deps": "rm -rf node_modules",
"test": "node ./scripts/test.js"
},
"browserify": {
"transform": [["babelify", {
"presets": ["es2015", "react", "stage-1"],
"plugins": ["add-module-exports", "transform-decorators-legacy"] }
]]
},
"repository": {
"type": "git",
"url": "git+https://github.com/cypress-io/cypress-core-reporter.git"
+1 -1
View File
@@ -6,7 +6,7 @@ import { observer } from 'mobx-react'
import PropTypes from 'prop-types'
import React, { Component } from 'react'
import { findDOMNode } from 'react-dom'
import { Reporter } from '../../../reporter'
import { Reporter } from '@packages/reporter'
import errorMessages from '../errors/error-messages'
import windowUtil from '../lib/window-util'
+1 -1
View File
@@ -2,7 +2,7 @@ import React from 'react'
import { shallow } from 'enzyme'
import sinon from 'sinon'
import reporter from '../../../reporter'
import reporter from '@packages/reporter'
import Message from '../message/message'
import State from '../lib/state'