Skip to content
Permalink
Browse files
refactor: move CordovaError module up (#120)
Moves the `CordovaError` module from `src/CordovaError/CordovaError.js` to `src/CordovaError.js`. The additional nesting makes no sense anymore since `src/CordovaError/CordovaExternalToolErrorContext.js` has been removed in #117.
  • Loading branch information
raphinesse committed Dec 13, 2019
1 parent 641be1e commit 1318ab5cf0db349c93f8a4daa9f6ad974b8c6479
Showing 8 changed files with 7 additions and 7 deletions.
@@ -22,7 +22,7 @@ module.exports = {
get superspawn () { return require('./src/superspawn'); },

get ActionStack () { return require('./src/ActionStack'); },
get CordovaError () { return require('./src/CordovaError/CordovaError'); },
get CordovaError () { return require('./src/CordovaError'); },
get CordovaLogger () { return require('./src/CordovaLogger'); },
get CordovaCheck () { return require('./src/CordovaCheck'); },
get PlatformJson () { return require('./src/PlatformJson'); },
@@ -17,7 +17,7 @@
under the License.
*/

var CordovaError = require('../../src/CordovaError/CordovaError');
var CordovaError = require('../../src/CordovaError');

describe('CordovaError class', function () {
it('Test 001 : should be constructable', function () {
@@ -17,7 +17,7 @@
under the License.
*/

var CordovaError = require('../src/CordovaError/CordovaError');
var CordovaError = require('../src/CordovaError');
var CordovaLogger = require('../src/CordovaLogger');
var EventEmitter = require('events').EventEmitter;

@@ -19,7 +19,7 @@

var et = require('elementtree');
var xml = require('../util/xml-helpers');
var CordovaError = require('../CordovaError/CordovaError');
var CordovaError = require('../CordovaError');
var fs = require('fs-extra');
var events = require('../events');

File renamed without changes.
@@ -28,7 +28,7 @@ TODO (kamrik): refactor this to not use sync functions and return promises.
var path = require('path');
var fs = require('fs-extra');
var xml_helpers = require('../util/xml-helpers');
var CordovaError = require('../CordovaError/CordovaError');
var CordovaError = require('../CordovaError');

function PluginInfo (dirname) {
var self = this;
@@ -23,7 +23,7 @@ var path = require('path');

var ActionStack = require('./ActionStack');
var PlatformJson = require('./PlatformJson');
var CordovaError = require('./CordovaError/CordovaError');
var CordovaError = require('./CordovaError');
var PlatformMunger = require('./ConfigChanges/ConfigChanges').PlatformMunger;
var PluginInfoProvider = require('./PluginInfo/PluginInfoProvider');

@@ -17,7 +17,7 @@
under the License.
*/

const CordovaError = require('../CordovaError/CordovaError');
const CordovaError = require('../CordovaError');

/**
* Formats an error for logging.

0 comments on commit 1318ab5

Please sign in to comment.