From 7a3c78246db4f828e9b6b38591b6212a979715f6 Mon Sep 17 00:00:00 2001 From: Johannes Stein Date: Thu, 28 Apr 2016 15:30:41 +0200 Subject: [PATCH] Fix alpha issues, preparing for release --- bin/index.js | 8 +------- lib/index.js | 1 - package.json | 2 +- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/bin/index.js b/bin/index.js index 7d233ce..fff3f4d 100755 --- a/bin/index.js +++ b/bin/index.js @@ -41,14 +41,8 @@ if (stats && stats.isFile()) { bundleDependencies = libPkg.bundleDependencies || []; externals = Object.keys(dependencies).filter(function filter(item) { - return bundleDependencies.indexOf(item) >= 0; + return bundleDependencies.indexOf(item) < 0; }); - - // FIXME: That's actually not the way it should be. `jsnext:main` is most likely the output, - // not the input. This needs to be changed requiring a new major version according to SemVer - if (libPkg['jsnext:main']) { - entry = ['jsnext:main']; - } } program.version(pkg.version) diff --git a/lib/index.js b/lib/index.js index e89012a..fd0a506 100644 --- a/lib/index.js +++ b/lib/index.js @@ -44,7 +44,6 @@ module.exports = function rollupLib(options) { json(), nodeResolve({ main: true, - browser: true, extensions: ['.js', '.json'], preferBuiltins: false, skip: rollupOptions.externals diff --git a/package.json b/package.json index a8e0a09..f281f8f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rollup-babel-lib-bundler", - "version": "3.0.0-alpha1", + "version": "3.0.0", "description": "Utility to bundle JavaScript libraries with Rollup", "main": "lib/index.js", "bin": {