Skip to content

Commit

Permalink
extract debug util
Browse files Browse the repository at this point in the history
  • Loading branch information
Kelly Selden authored and kellyselden committed Dec 20, 2020
1 parent 9760227 commit f44b585
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/debug.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

module.exports = require('debug')(require('../package').name);
2 changes: 1 addition & 1 deletion src/ember-install-addon.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const execa = require('execa');
const semver = require('semver');
const debug = require('debug')('ember-cli-update');
const debug = require('./debug');

// not fixed yet
// https://github.com/ember-cli/ember-cli/issues/8937
Expand Down
2 changes: 1 addition & 1 deletion src/get-start-and-end-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const utils = require('./utils');
const isDefaultBlueprint = require('./is-default-blueprint');
const emberInstallAddon = require('./ember-install-addon');
const overwriteBlueprintFiles = require('./overwrite-blueprint-files');
const debug = require('debug')('ember-cli-update');
const debug = require('./debug');
const npm = require('boilerplate-update/src/npm');
const mutatePackageJson = require('boilerplate-update/src/mutate-package-json');
const {
Expand Down
2 changes: 1 addition & 1 deletion src/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

const { promisify } = require('util');
const exec = promisify(require('child_process').exec);
const debug = require('debug')('ember-cli-update');
const debug = require('./debug');

module.exports = async function run(command, options) {
debug(command);
Expand Down

0 comments on commit f44b585

Please sign in to comment.