diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | packages/gitbook-core/.npmignore | 2 | ||||
-rw-r--r-- | packages/gitbook-core/package.json | 7 | ||||
-rw-r--r-- | packages/gitbook/package.json | 2 |
4 files changed, 10 insertions, 2 deletions
@@ -29,6 +29,7 @@ node_modules # GitBook with babel /packages/gitbook/lib +/packages/gitbook-core/lib # Output of documentation _book diff --git a/packages/gitbook-core/.npmignore b/packages/gitbook-core/.npmignore new file mode 100644 index 0000000..e04684f --- /dev/null +++ b/packages/gitbook-core/.npmignore @@ -0,0 +1,2 @@ +src +!lib diff --git a/packages/gitbook-core/package.json b/packages/gitbook-core/package.json index 6e6c2e7..048a5c4 100644 --- a/packages/gitbook-core/package.json +++ b/packages/gitbook-core/package.json @@ -2,7 +2,7 @@ "name": "gitbook-core", "version": "0.0.0", "description": "Core for GitBook plugins API", - "main": "./src/index.js", + "main": "./lib/index.js", "dependencies": { "immutable": "^3.8.1", "react": "^15.3.1", @@ -13,10 +13,15 @@ "redux-thunk": "^2.1.0" }, "devDependencies": { + "babel-cli": "^6.14.0", "babel-preset-es2015": "^6.14.0", "babel-preset-react": "^6.11.1", "babel-preset-stage-2": "^6.13.0" }, + "scripts": { + "dist": "rm -rf lib/ && babel -d lib/ src/", + "prepublish": "npm run dist" + }, "repository": { "type": "git", "url": "https://github.com/GitbookIO/gitbook.git" diff --git a/packages/gitbook/package.json b/packages/gitbook/package.json index 29fa9ce..0c30285 100644 --- a/packages/gitbook/package.json +++ b/packages/gitbook/package.json @@ -68,7 +68,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 --presets es2015 -d lib/ src/", + "dist": "rm -rf lib/ && babel -d lib/ src/", "prepublish": "npm run dist" }, "repository": { |