mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-16 15:45:13 +00:00
Don't compile tests file with babel
This commit is contained in:
@@ -28,7 +28,6 @@ node_modules
|
||||
*.swp
|
||||
|
||||
# GitBook with babel
|
||||
/packages/gitbook/lib
|
||||
/packages/gitbook-core/lib
|
||||
/packages/gitbook-plugin/lib
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
lib
|
||||
@@ -69,7 +69,7 @@
|
||||
},
|
||||
"scripts": {
|
||||
"test": "./node_modules/.bin/mocha ./testing/setup.js \"./src/**/*/__tests__/*.js\" --bail --reporter=list --timeout=10000 --compilers js:babel-register",
|
||||
"dist": "rm -rf lib/ && babel -d lib/ src/",
|
||||
"dist": "rm -rf lib/ && babel -d lib/ src/ --source-maps --ignore \"**/*/__tests__/*.js\"",
|
||||
"prepublish": "npm run dist"
|
||||
},
|
||||
"repository": {
|
||||
|
||||
Reference in New Issue
Block a user