Skip to content

Commit

Permalink
Update chalk import and align it to ECMAScript
Browse files Browse the repository at this point in the history
Chalk v5 have switched from CommonJS to a pure ESM package (ECMAScript Module), therefore chalk imports should be updated.
  • Loading branch information
ama-leanix committed Feb 20, 2024
1 parent 47dcb07 commit b804831
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app.ts
@@ -1,4 +1,4 @@
import * as chalk from 'chalk';
import chalk from 'chalk';
import * as program from 'commander';
import { Builder } from './builder';
import { Bundler } from './bundler';
Expand Down
2 changes: 1 addition & 1 deletion src/builder.ts
@@ -1,4 +1,4 @@
import * as chalk from 'chalk';
import chalk from 'chalk';
import { execAsync, rimrafAsync } from './async.helpers';

export class Builder {
Expand Down
2 changes: 1 addition & 1 deletion src/dev-starter.ts
@@ -1,4 +1,4 @@
import * as chalk from 'chalk';
import chalk from 'chalk';
import { spawn } from 'cross-spawn';
import * as jwtDecode from 'jwt-decode';
import * as _ from 'lodash';
Expand Down
2 changes: 1 addition & 1 deletion src/initializer.ts
@@ -1,4 +1,4 @@
import * as chalk from 'chalk';
import chalk from 'chalk';
import * as inquirer from 'inquirer';
import * as process from 'process';
import { getTemplateDirectoryPath } from './path.helpers';
Expand Down
2 changes: 1 addition & 1 deletion src/template-extractor.ts
@@ -1,4 +1,4 @@
import * as chalk from 'chalk';
import chalk from 'chalk';
import { render } from 'ejs';
import * as inquirer from 'inquirer';
import { sync as mkdirpSync } from 'mkdirp';
Expand Down
2 changes: 1 addition & 1 deletion src/uploader.ts
@@ -1,4 +1,4 @@
import * as chalk from 'chalk';
import chalk from 'chalk';
import * as rp from 'request-promise-native';
import * as fs from 'fs';
import { ApiTokenResolver } from './api-token-resolver';
Expand Down

0 comments on commit b804831

Please sign in to comment.