diff --git a/index.js b/index.js index 20f862a..5378941 100644 --- a/index.js +++ b/index.js @@ -103,6 +103,9 @@ var plugins = argv.use.map(function(name) { } else { plugin = require(name); } + if (plugin.default && typeof plugin.default === 'function') { + plugin = plugin.default; + } if (name in argv) { plugin = plugin(argv[name]); } else { diff --git a/package.json b/package.json index 70a68eb..b1b9ee7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "postcss-cli", - "version": "2.5.2", + "name": "zoro-postcss-cli", + "version": "0.0.1", "description": "CLI for postcss", "main": "index.js", "bin": {