Comparing version 1.0.0-beta.11 to 1.0.0-beta.12
@@ -184,3 +184,11 @@ /** | ||
function getVersion( pkg ) { | ||
var config = path.join( __dirname, '..', 'node_modules', pkg, 'package.json' ); | ||
var dir = null; | ||
try { | ||
dir = require( './util' ).resolve( pkg ); | ||
} | ||
catch( ex ) { | ||
return null; | ||
} | ||
var config = path.join( dir, 'package.json' ); | ||
if ( fs.existsSync( config ) ) { | ||
@@ -196,4 +204,8 @@ config = JSON.parse( fs.readFileSync( config, 'utf-8' ) ); | ||
var builtinPackages = getPackages( /^edp-/ ).map( getVersion ); | ||
var userPackages = getPackages( /^edpx-/ ).map( getVersion ); | ||
function notNull( item ){ | ||
return !!item; | ||
} | ||
var builtinPackages = getPackages( /^edp-/ ).map( getVersion ).filter( notNull ); | ||
var userPackages = getPackages( /^edpx-/ ).map( getVersion ).filter( notNull ); | ||
console.log( 'Builtin Commands:' ); | ||
@@ -200,0 +212,0 @@ console.log( builtinPackages.join( '\n' ) ); |
{ | ||
"name": "edp", | ||
"description": "Enterprise Develop Platform", | ||
"version": "1.0.0-beta.11", | ||
"version": "1.0.0-beta.12", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ { "name": "errorrik", "email": "errorrik@gmail.com" }, |
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
74299
1064