From 026cc8304d38d7fc9bd02e9978ff52416eabbec0 Mon Sep 17 00:00:00 2001 From: Samy Pesse Date: Mon, 3 Oct 2016 18:41:25 +0200 Subject: [PATCH] Don't compile tests file with babel --- .gitignore | 1 - packages/gitbook/.gitignore | 1 + packages/gitbook/package.json | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 packages/gitbook/.gitignore diff --git a/.gitignore b/.gitignore index a9b58d9a8..922a5ced6 100644 --- a/.gitignore +++ b/.gitignore @@ -28,7 +28,6 @@ node_modules *.swp # GitBook with babel -/packages/gitbook/lib /packages/gitbook-core/lib /packages/gitbook-plugin/lib diff --git a/packages/gitbook/.gitignore b/packages/gitbook/.gitignore new file mode 100644 index 000000000..a65b41774 --- /dev/null +++ b/packages/gitbook/.gitignore @@ -0,0 +1 @@ +lib diff --git a/packages/gitbook/package.json b/packages/gitbook/package.json index c3e9ce946..93264e980 100644 --- a/packages/gitbook/package.json +++ b/packages/gitbook/package.json @@ -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": {