File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 2
2
"name" : " ansi-to-react" ,
3
3
"version" : " 0.0.3" ,
4
4
"description" : " ANSI to React Elements" ,
5
- "main" : " index.js" ,
5
+ "main" : " lib/ index.js" ,
6
6
"scripts" : {
7
- "test" : " mocha 'test/**/*.js'"
7
+ "prebuild" : " mkdirp lib/ && npm run clean" ,
8
+ "prepublish" : " npm run build" ,
9
+ "test" : " mocha --compilers js:babel-core/register 'test/**/*.js'" ,
10
+ "test:watch" : " npm run test -- --watch" ,
11
+ "build" : " npm run build:es5" ,
12
+ "build:es5" : " babel src --out-dir lib/ --source-maps" ,
13
+ "clean" : " rimraf lib/*"
8
14
},
9
15
"keywords" : [
10
16
" ansi" ,
19
25
"react" : " ^0.14.0 || ^15.0.0-0"
20
26
},
21
27
"devDependencies" : {
28
+ "babel-cli" : " ^6.8.0" ,
29
+ "babel-core" : " ^6.8.0" ,
30
+ "babel-preset-es2015" : " ^6.6.0" ,
31
+ "babel-preset-react" : " ^6.5.0" ,
22
32
"chai" : " ^3.5.0" ,
23
33
"enzyme" : " ^2.2.0" ,
34
+ "mkdirp" : " ^0.5.0" ,
24
35
"mocha" : " ^2.4.5" ,
25
36
"react" : " ^15.0.1" ,
26
37
"react-addons-test-utils" : " ^15.0.1" ,
File renamed without changes.
Original file line number Diff line number Diff line change 1
- const Ansi = require ( '../index' ) ;
1
+ const Ansi = require ( '../src/ index' ) ;
2
2
const React = require ( 'react' ) ;
3
3
const expect = require ( 'chai' ) . expect ;
4
4
const enzyme = require ( 'enzyme' ) ;
You can’t perform that action at this time.
0 commit comments