dependents-editor-backend
Advanced tools
Comparing version 1.6.1 to 1.7.0
@@ -29,2 +29,4 @@ #!/usr/bin/env node | ||
.option('--get-config', 'get the contents of the parsed deprc config') | ||
// Editor tracking | ||
@@ -31,0 +33,0 @@ .option('--editor', 'the editor being used') |
@@ -110,2 +110,5 @@ var Config = require('./Config'); | ||
findDrivers(options); | ||
} else if (program.getConfig) { | ||
deferred.resolve(config.toJSON()); | ||
} | ||
@@ -112,0 +115,0 @@ |
@@ -70,2 +70,13 @@ var fs = require('fs'); | ||
Config.prototype.toJSON = function() { | ||
return { | ||
stylesRoot: this.stylesRoot, | ||
buildConfig: this.buildConfig, | ||
webpackConfig: this.webpackConfig, | ||
requireConfig: this.requireConfig, | ||
directory: this.directory, | ||
exclude: this.exclude | ||
}; | ||
}; | ||
function getAbsolute(filepath, base) { | ||
@@ -72,0 +83,0 @@ return filepath ? path.resolve(path.dirname(base), filepath) : ''; |
{ | ||
"name": "dependents-editor-backend", | ||
"version": "1.6.1", | ||
"version": "1.7.0", | ||
"description": "The brains behind Dependents editor plugins", | ||
@@ -5,0 +5,0 @@ "main": "lib/cli.js", |
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
9763
247