Skip to content

Commit fd82e18

Browse files
filipesilvahansl
authored andcommitted
build: update chalk to 2.2
`[email protected]` is incompatible with `@types/chalk`.
1 parent b1d5848 commit fd82e18

File tree

22 files changed

+45
-46
lines changed

22 files changed

+45
-46
lines changed

package-lock.json

Lines changed: 16 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@angular-devkit/schematics": "~0.0.34",
4646
"@schematics/angular": "~0.0.48",
4747
"autoprefixer": "^6.5.3",
48-
"chalk": "^2.0.1",
48+
"chalk": "~2.2.0",
4949
"circular-dependency-plugin": "^3.0.0",
5050
"common-tags": "^1.3.1",
5151
"copy-webpack-plugin": "^4.1.1",
@@ -106,7 +106,6 @@
106106
"@angular/compiler": "^4.0.0",
107107
"@angular/compiler-cli": "^4.0.0",
108108
"@angular/core": "^4.0.0",
109-
"@types/chalk": "^0.4.28",
110109
"@types/common-tags": "^1.2.4",
111110
"@types/copy-webpack-plugin": "^4.0.0",
112111
"@types/denodeify": "^1.2.30",

packages/@angular/cli/commands/easter-egg.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const Command = require('../ember-cli/lib/models/command');
22
const stringUtils = require('ember-cli-string-utils');
3-
import * as chalk from 'chalk';
3+
import chalk from 'chalk';
44

55

66
function pickOne(of: string[]): string {

packages/@angular/cli/commands/generate.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { cyan, yellow } from 'chalk';
1+
import chalk from 'chalk';
22
const stringUtils = require('ember-cli-string-utils');
33
import { oneLine } from 'common-tags';
44
import { CliConfig } from '../models/config';
@@ -17,6 +17,7 @@ import { SchematicAvailableOptions } from '../tasks/schematic-get-options';
1717
const Command = require('../ember-cli/lib/models/command');
1818
const SilentError = require('silent-error');
1919

20+
const { cyan, yellow } = chalk;
2021
const separatorRegEx = /[\/\\]/g;
2122

2223

packages/@angular/cli/commands/new.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as fs from 'fs';
22
import * as path from 'path';
3-
import * as chalk from 'chalk';
3+
import chalk from 'chalk';
44

55
import { CliConfig } from '../models/config';
66
import { validateProjectName } from '../utilities/validate-project-name';

packages/@angular/cli/commands/set.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as fs from 'fs';
2+
import chalk from 'chalk';
23
import { CliConfig } from '../models/config';
34
import { oneLine } from 'common-tags';
45

56
const SilentError = require('silent-error');
6-
const chalk = require('chalk');
77
const Command = require('../ember-cli/lib/models/command');
88

99
export interface SetOptions {

packages/@angular/cli/commands/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { stripIndents } from 'common-tags';
33
import * as fs from 'fs';
44
import * as path from 'path';
55
import * as child_process from 'child_process';
6-
import * as chalk from 'chalk';
6+
import chalk from 'chalk';
77
import { CliConfig } from '../models/config';
88

99

packages/@angular/cli/models/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {CliConfig as CliConfigBase} from './config/config';
22
import {CliConfig as ConfigInterface} from '../lib/config/schema';
33
import { oneLine } from 'common-tags';
4-
import * as chalk from 'chalk';
4+
import chalk from 'chalk';
55
import * as fs from 'fs';
66
import * as path from 'path';
77
import { homedir } from 'os';

packages/@angular/cli/tasks/eject.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import * as fs from 'fs';
22
import * as path from 'path';
33
import * as ts from 'typescript';
44
import * as webpack from 'webpack';
5+
import chalk from 'chalk';
56

67
import { getAppFromConfig } from '../utilities/app-utils';
78
import { EjectTaskOptions } from '../commands/eject';
89
import { NgCliWebpackConfig } from '../models/webpack-config';
910
import { CliConfig } from '../models/config';
1011
import { AotPlugin, AngularCompilerPlugin } from '@ngtools/webpack';
11-
import { yellow } from 'chalk';
1212
import { LicenseWebpackPlugin } from 'license-webpack-plugin';
1313

1414
import denodeify = require('denodeify');
@@ -34,6 +34,7 @@ const ProgressPlugin = require('webpack/lib/ProgressPlugin');
3434
export const pluginArgs = Symbol('plugin-args');
3535
export const postcssArgs = Symbol('postcss-args');
3636

37+
const yellow = chalk.yellow;
3738
const pree2eNpmScript = `webdriver-manager update --standalone false --gecko false --quiet`;
3839

3940

packages/@angular/cli/tasks/git-init.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { oneLine } from 'common-tags';
2+
import chalk from 'chalk';
23
import denodeify = require('denodeify');
34

45
const exec: any = denodeify(require('child_process').exec);
@@ -21,7 +22,6 @@ const gitEnvironmentVariables = {
2122

2223
module.exports = Task.extend({
2324
run: function (commandOptions: any) {
24-
const chalk = require('chalk');
2525
const ui = this.ui;
2626

2727
if (commandOptions.skipGit) {

0 commit comments

Comments
 (0)