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": {