diff --git a/package.json b/package.json index 4bd64c5cea..26d414f86c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,10 @@ { "private": true, "license": "MIT", + "scripts": { + "test": "make test", + "build": "make build" + }, "devDependencies": { "async": "^1.5.0", "babel-core": "^6.3.17", @@ -45,6 +49,7 @@ "uglify-js": "^2.4.16" }, "babel": { + "comments": false, "presets": [ "stage-0", "es2015-loose" diff --git a/packages/babel-core/src/api/node.js b/packages/babel-core/src/api/node.js index f3c9e915ea..72492e95a5 100644 --- a/packages/babel-core/src/api/node.js +++ b/packages/babel-core/src/api/node.js @@ -1,16 +1,12 @@ import isFunction from "lodash/isFunction"; import fs from "fs"; -// - export { default as File } from "../transformation/file"; export { default as options } from "../transformation/file/options/config"; export { default as buildExternalHelpers } from "../tools/build-external-helpers"; export { default as template } from "babel-template"; export { version } from "../../package"; -// - import * as util from "../util"; export { util }; @@ -30,8 +26,6 @@ export function Plugin(alias) { throw new Error(`The (${alias}) Babel 5 plugin is being run with Babel 6.`); } -// - import Pipeline from "../transformation/pipeline"; export { Pipeline }; @@ -40,8 +34,6 @@ export let analyse = pipeline.analyse.bind(pipeline); export let transform = pipeline.transform.bind(pipeline); export let transformFromAst = pipeline.transformFromAst.bind(pipeline); -// - export function transformFile(filename: string, opts?: Object, callback: Function) { if (isFunction(opts)) { callback = opts;