@commercetools-frontend/create-mc-app 21.23.10 → 21.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commercetools-frontend/create-mc-app",
3
- "version": "21.23.10",
3
+ "version": "21.24.0",
4
4
  "description": "Create Merchant Center applications to quickly get up and running",
5
5
  "bugs": "https://github.com/commercetools/merchant-center-application-kit/issues",
6
6
  "repository": {
@@ -23,7 +23,7 @@
23
23
  "@babel/runtime-corejs3": "^7.20.13",
24
24
  "cac": "6.7.14",
25
25
  "execa": "5.1.1",
26
- "listr2": "5.0.7",
26
+ "listr2": "5.0.8",
27
27
  "prettier": "2.8.4",
28
28
  "semver": "7.3.8"
29
29
  },
package/src/cli.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  import { cac } from 'cac';
2
2
  import { Listr, type ListrTask } from 'listr2';
3
- import * as tasks from './tasks';
4
- import { throwIfNodeVersionIsNotSupported } from './validations';
5
- import { shouldUseYarn } from './utils';
3
+ import pkgJson from '../package.json';
6
4
  import getLatestReleaseVersion from './get-latest-release-version';
7
5
  import hintOutdatedVersion from './hint-outdated-version';
8
6
  import processOptions from './process-options';
7
+ import * as tasks from './tasks';
9
8
  import type { TCliCommandOptions } from './types';
10
- import pkgJson from '../package.json';
9
+ import { shouldUseYarn } from './utils';
10
+ import { throwIfNodeVersionIsNotSupported } from './validations';
11
11
 
12
12
  throwIfNodeVersionIsNotSupported(process.versions.node, pkgJson.engines.node);
13
13
 
@@ -1,13 +1,13 @@
1
+ import crypto from 'crypto';
1
2
  import path from 'path';
2
3
  import readline, { type Interface } from 'readline';
3
- import crypto from 'crypto';
4
+ import type { TCliCommandOptions, TCliTaskOptions } from './types';
5
+ import { isSemVer } from './utils';
4
6
  import {
5
7
  throwIfTemplateIsNotSupported,
6
8
  throwIfProjectDirectoryExists,
7
9
  throwIfInitialProjectKeyIsMissing,
8
10
  } from './validations';
9
- import { isSemVer } from './utils';
10
- import type { TCliCommandOptions, TCliTaskOptions } from './types';
11
11
 
12
12
  const question = (rl: Interface, value: string) =>
13
13
  new Promise<string>((resolve) => rl.question(value, resolve));
@@ -3,8 +3,8 @@ import os from 'os';
3
3
  import path from 'path';
4
4
  import execa from 'execa';
5
5
  import { Listr, type ListrTask } from 'listr2';
6
- import { throwIfTemplateVersionDoesNotExist } from '../validations';
7
6
  import type { TCliTaskOptions } from '../types';
7
+ import { throwIfTemplateVersionDoesNotExist } from '../validations';
8
8
 
9
9
  const filesToBeRemoved = ['CHANGELOG.md'];
10
10
 
@@ -1,7 +1,7 @@
1
1
  import execa from 'execa';
2
2
  import type { ListrTask } from 'listr2';
3
- import { shouldUseYarn } from '../utils';
4
3
  import type { TCliTaskOptions } from '../types';
4
+ import { shouldUseYarn } from '../utils';
5
5
 
6
6
  function installDependencies(options: TCliTaskOptions): ListrTask {
7
7
  return {
@@ -1,11 +1,11 @@
1
- import os from 'os';
2
1
  import fs from 'fs';
2
+ import os from 'os';
3
3
  import path from 'path';
4
- import prettier from 'prettier';
5
4
  import { type PluginItem, transformFileSync, types } from '@babel/core';
6
5
  import type { ListrTask } from 'listr2';
7
- import { resolveFilePathByExtension } from '../utils';
6
+ import prettier from 'prettier';
8
7
  import type { TCliTaskOptions } from '../types';
8
+ import { resolveFilePathByExtension } from '../utils';
9
9
 
10
10
  function replaceEntryPointUriPathInConstants(
11
11
  filePath: string,
@@ -1,11 +1,11 @@
1
- import os from 'os';
2
1
  import fs from 'fs';
2
+ import os from 'os';
3
3
  import path from 'path';
4
- import prettier from 'prettier';
5
4
  import { transformFileSync, types, type PluginItem } from '@babel/core';
6
5
  import type { ListrTask } from 'listr2';
7
- import { wordify, resolveFilePathByExtension } from '../utils';
6
+ import prettier from 'prettier';
8
7
  import type { TCliTaskOptions } from '../types';
8
+ import { wordify, resolveFilePathByExtension } from '../utils';
9
9
 
10
10
  function replaceApplicationInfoInCustomApplicationConfig(
11
11
  filePath: string,
@@ -1,9 +1,9 @@
1
- import os from 'os';
2
1
  import fs from 'fs';
2
+ import os from 'os';
3
3
  import path from 'path';
4
4
  import type { ListrTask } from 'listr2';
5
- import { slugify } from '../utils';
6
5
  import type { TCliTaskOptions } from '../types';
6
+ import { slugify } from '../utils';
7
7
 
8
8
  const replaceApplicationKitPackageVersionWith = (
9
9
  releaseVersion: string,