refactor(@angular/cli): remove unused 'get-caller-file' ember-cli dep

This commit is contained in:
Charles Lyding 2017-09-23 15:15:16 -04:00 committed by Filipe Silva
parent 8397bfa9a5
commit 453fc8054a
3 changed files with 1 additions and 4 deletions

View File

@ -59,7 +59,6 @@
"extract-text-webpack-plugin": "3.0.0",
"file-loader": "^0.10.0",
"fs-extra": "^4.0.0",
"get-caller-file": "^1.0.0",
"glob": "^7.0.3",
"heimdalljs": "^0.2.4",
"heimdalljs-logger": "^0.1.9",

View File

@ -4,7 +4,6 @@ const nopt = require('nopt');
const chalk = require('chalk');
const path = require('path');
const camelize = require('ember-cli-string-utils').camelize;
const getCallerFile = require('get-caller-file');
const printCommand = require('../utilities/print-command');
const _ = require('lodash');
const EOL = require('os').EOL;
@ -84,7 +83,7 @@ let Command = CoreObject.extend({
* @type String
* @example `new` or `generate`
*/
this.name = this.name || path.basename(getCallerFile(), '.js');
this.name = this.name || '<undefined>';
logger.info('initialize: name: %s, name: %s', this.name);

View File

@ -46,7 +46,6 @@
"extract-text-webpack-plugin": "3.0.0",
"file-loader": "^0.10.0",
"fs-extra": "^4.0.0",
"get-caller-file": "^1.0.0",
"glob": "^7.0.3",
"heimdalljs": "^0.2.4",
"heimdalljs-logger": "^0.1.9",