Skip to content

Commit 29c86d2

Browse files
clydinfilipesilva
authored andcommitted
refactor(@angular/cli): remove unused 'get-caller-file' ember-cli dep
1 parent 2763601 commit 29c86d2

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@
5959
"extract-text-webpack-plugin": "3.0.0",
6060
"file-loader": "^0.10.0",
6161
"fs-extra": "^4.0.0",
62-
"get-caller-file": "^1.0.0",
6362
"glob": "^7.0.3",
6463
"heimdalljs": "^0.2.4",
6564
"heimdalljs-logger": "^0.1.9",

packages/@angular/cli/ember-cli/lib/models/command.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ const nopt = require('nopt');
44
const chalk = require('chalk');
55
const path = require('path');
66
const camelize = require('ember-cli-string-utils').camelize;
7-
const getCallerFile = require('get-caller-file');
87
const printCommand = require('../utilities/print-command');
98
const _ = require('lodash');
109
const EOL = require('os').EOL;
@@ -84,7 +83,7 @@ let Command = CoreObject.extend({
8483
* @type String
8584
* @example `new` or `generate`
8685
*/
87-
this.name = this.name || path.basename(getCallerFile(), '.js');
86+
this.name = this.name || '<undefined>';
8887

8988
logger.info('initialize: name: %s, name: %s', this.name);
9089

packages/@angular/cli/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"extract-text-webpack-plugin": "3.0.0",
4747
"file-loader": "^0.10.0",
4848
"fs-extra": "^4.0.0",
49-
"get-caller-file": "^1.0.0",
5049
"glob": "^7.0.3",
5150
"heimdalljs": "^0.2.4",
5251
"heimdalljs-logger": "^0.1.9",

0 commit comments

Comments
 (0)