|
| 1 | +import fs from 'node:fs'; |
| 2 | +import path from 'node:path'; |
1 | 3 | // @ts-expect-error - clack is ESM and TS complains about that. It works though
|
2 | 4 | import * as clack from '@clack/prompts';
|
3 | 5 | import * as Sentry from '@sentry/node';
|
4 | 6 | import chalk from 'chalk';
|
5 |
| -import fs from 'fs'; |
6 | 7 | // @ts-expect-error - magicast is ESM and TS complains about that. It works though
|
7 |
| -import { loadFile, generateCode } from 'magicast'; |
| 8 | +import { generateCode, loadFile } from 'magicast'; |
8 | 9 | // @ts-expect-error - magicast is ESM and TS complains about that. It works though
|
9 | 10 | import { addNuxtModule } from 'magicast/helpers';
|
10 |
| -import path from 'path'; |
11 |
| -import { |
12 |
| - getConfigBody, |
13 |
| - getDefaultNuxtConfig, |
14 |
| - getNuxtModuleFallbackTemplate, |
15 |
| - getSentryConfigContents, |
16 |
| -} from './templates'; |
| 11 | +import opn from 'opn'; |
| 12 | +import { type SemVer, lt } from 'semver'; |
| 13 | +import { traceStep } from '../telemetry'; |
17 | 14 | import {
|
18 | 15 | abortIfCancelled,
|
19 | 16 | askShouldAddPackageOverride,
|
20 | 17 | askShouldInstallPackage,
|
21 | 18 | featureSelectionPrompt,
|
22 | 19 | installPackage,
|
23 | 20 | isUsingTypeScript,
|
24 |
| - opn, |
25 | 21 | } from '../utils/clack-utils';
|
26 |
| -import { traceStep } from '../telemetry'; |
27 |
| -import { lt, SemVer } from 'semver'; |
28 |
| -import { PackageManager, PNPM } from '../utils/package-manager'; |
29 |
| -import { hasPackageInstalled, PackageDotJson } from '../utils/package-json'; |
30 |
| -import { deploymentPlatforms, DeploymentPlatform } from './types'; |
| 22 | +import { |
| 23 | + type PackageDotJson, |
| 24 | + hasPackageInstalled, |
| 25 | +} from '../utils/package-json'; |
| 26 | +import { PNPM, type PackageManager } from '../utils/package-manager'; |
| 27 | +import { |
| 28 | + getConfigBody, |
| 29 | + getDefaultNuxtConfig, |
| 30 | + getNuxtModuleFallbackTemplate, |
| 31 | + getSentryConfigContents, |
| 32 | +} from './templates'; |
| 33 | +import { type DeploymentPlatform, deploymentPlatforms } from './types'; |
31 | 34 |
|
32 | 35 | const possibleNuxtConfig = [
|
33 | 36 | 'nuxt.config.js',
|
|
0 commit comments