@lerna/create
Advanced tools
Comparing version 3.0.0-beta.9 to 3.0.0-beta.10
@@ -6,2 +6,19 @@ # Change Log | ||
<a name="3.0.0-beta.10"></a> | ||
# [3.0.0-beta.10](https://github.com/lerna/lerna/compare/v3.0.0-beta.9...v3.0.0-beta.10) (2018-03-27) | ||
### Features | ||
* **commands:** Delay require of command instantiation ([a1284f3](https://github.com/lerna/lerna/commit/a1284f3)) | ||
### BREAKING CHANGES | ||
* **commands:** The default export of command packages is now a factory, not the subclass (which is now a named export). | ||
<a name="3.0.0-beta.9"></a> | ||
@@ -8,0 +25,0 @@ # [3.0.0-beta.9](https://github.com/lerna/lerna/compare/v3.0.0-beta.8...v3.0.0-beta.9) (2018-03-24) |
"use strict"; | ||
const CreateCommand = require("."); | ||
/** | ||
@@ -91,3 +89,3 @@ * @see https://github.com/yargs/yargs/blob/master/docs/advanced.md#providing-a-command-module | ||
exports.handler = function handler(argv) { | ||
return new CreateCommand(argv); | ||
return require(".")(argv); | ||
}; |
@@ -33,2 +33,8 @@ "use strict"; | ||
module.exports = factory; | ||
function factory(argv) { | ||
return new CreateCommand(argv); | ||
} | ||
class CreateCommand extends Command { | ||
@@ -503,2 +509,2 @@ initialize() { | ||
module.exports = CreateCommand; | ||
module.exports.CreateCommand = CreateCommand; |
{ | ||
"name": "@lerna/create", | ||
"version": "3.0.0-beta.9", | ||
"version": "3.0.0-beta.10", | ||
"description": "Create a new lerna-managed package", | ||
@@ -36,5 +36,5 @@ "keywords": [ | ||
"@lerna/child-process": "^3.0.0-beta.0", | ||
"@lerna/command": "^3.0.0-beta.9", | ||
"@lerna/command": "^3.0.0-beta.10", | ||
"@lerna/npm-conf": "^3.0.0-beta.8", | ||
"@lerna/validation-error": "^3.0.0-beta.0", | ||
"@lerna/validation-error": "^3.0.0-beta.10", | ||
"camelcase": "^4.1.0", | ||
@@ -52,3 +52,3 @@ "dedent": "^0.7.0", | ||
}, | ||
"gitHead": "70528f23cad0186fdf7529fe32148cc1eff21272" | ||
"gitHead": "c52f8713303b246e6d701950cd78ca6f9bd55503" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22372
518