From b3b078d5eeaa7f116275785d38c875b1baa45ad9 Mon Sep 17 00:00:00 2001 From: Julien Ripouteau Date: Tue, 16 Jan 2024 13:31:01 +0100 Subject: [PATCH] refactor: fix import casing issues --- index.ts | 2 +- src/Chalk/greet.ts | 2 +- src/Helpers/index.ts | 2 +- src/schematics/packages.ts | 2 +- tasks/ConfigureEncore/index.ts | 2 +- tasks/ConfigurePackages/index.ts | 4 ++-- tasks/ConfigureTests/index.ts | 2 +- tasks/FormatSource/index.ts | 2 +- tasks/GenerateManifest/index.ts | 2 +- tasks/InstallDependencies/index.ts | 4 ++-- tasks/Scaffold/copyTemplates.ts | 2 +- tasks/Scaffold/createEditorConfig.ts | 2 +- tasks/Scaffold/createGitIgnore.ts | 2 +- tasks/Scaffold/createRcFile.ts | 2 +- tasks/Scaffold/createTsConfig.ts | 2 +- tasks/Scaffold/setupEslint.ts | 2 +- tasks/Scaffold/setupPrettier.ts | 2 +- 17 files changed, 19 insertions(+), 19 deletions(-) diff --git a/index.ts b/index.ts index f0d2bf3..d0514c2 100644 --- a/index.ts +++ b/index.ts @@ -12,7 +12,7 @@ import { removeSync } from 'fs-extra' import { Application } from '@adonisjs/application' import { utils, logger, tasksUi } from '@adonisjs/sink' -import { tasks } from './Tasks' +import { tasks } from './tasks' import { greet } from './src/Chalk/greet' import { showArt } from './src/Chalk/art' import { getHelp } from './src/Chalk/help' diff --git a/src/Chalk/greet.ts b/src/Chalk/greet.ts index e47c64d..fc45ac2 100644 --- a/src/Chalk/greet.ts +++ b/src/Chalk/greet.ts @@ -8,7 +8,7 @@ */ import { instructions, logger } from '@adonisjs/sink' -import { CliState } from '../contracts' +import { CliState } from '../Contracts' /** * Greet post creation diff --git a/src/Helpers/index.ts b/src/Helpers/index.ts index 9d894d0..42602b1 100644 --- a/src/Helpers/index.ts +++ b/src/Helpers/index.ts @@ -11,7 +11,7 @@ import cliWidth from 'cli-width' import { isAbsolute, join, basename } from 'path' import { files, getPrompt } from '@adonisjs/sink' -import { CliState } from '../contracts' +import { CliState } from '../Contracts' import { ensureDirSync } from 'fs-extra' /** diff --git a/src/schematics/packages.ts b/src/schematics/packages.ts index 7c27b66..456046a 100644 --- a/src/schematics/packages.ts +++ b/src/schematics/packages.ts @@ -7,7 +7,7 @@ * file that was distributed with this source code. */ -import { CliState } from '../contracts' +import { CliState } from '../Contracts' export const packages: { [K in CliState['boilerplate']]: { diff --git a/tasks/ConfigureEncore/index.ts b/tasks/ConfigureEncore/index.ts index 25adade..16e4f16 100644 --- a/tasks/ConfigureEncore/index.ts +++ b/tasks/ConfigureEncore/index.ts @@ -10,7 +10,7 @@ import execa from 'execa' import { join } from 'path' import { files, logger as SinkLogger } from '@adonisjs/sink' -import { TaskFn } from '../../src/contracts' +import { TaskFn } from '../../src/Contracts' /** * Creates the CSS entrypoint diff --git a/tasks/ConfigurePackages/index.ts b/tasks/ConfigurePackages/index.ts index a7af43a..4bec074 100644 --- a/tasks/ConfigurePackages/index.ts +++ b/tasks/ConfigurePackages/index.ts @@ -8,8 +8,8 @@ */ import { tasks } from '@adonisjs/sink' -import { TaskFn } from '../../src/contracts' -import { packages } from '../../src/Schematics/packages' +import { TaskFn } from '../../src/Contracts' +import { packages } from '../../src/schematics/packages' /** * Configure installed packages by running `node ace invoke instructions` diff --git a/tasks/ConfigureTests/index.ts b/tasks/ConfigureTests/index.ts index 7c5b74b..f03fb2e 100644 --- a/tasks/ConfigureTests/index.ts +++ b/tasks/ConfigureTests/index.ts @@ -8,7 +8,7 @@ */ import execa from 'execa' -import { TaskFn } from '../../src/contracts' +import { TaskFn } from '../../src/Contracts' /** * Configure tests diff --git a/tasks/FormatSource/index.ts b/tasks/FormatSource/index.ts index c89700f..305377d 100644 --- a/tasks/FormatSource/index.ts +++ b/tasks/FormatSource/index.ts @@ -8,7 +8,7 @@ */ import execa from 'execa' -import { TaskFn } from '../../src/contracts' +import { TaskFn } from '../../src/Contracts' /** * Format source files using prettier diff --git a/tasks/GenerateManifest/index.ts b/tasks/GenerateManifest/index.ts index 0b2cea8..5a1f5c7 100644 --- a/tasks/GenerateManifest/index.ts +++ b/tasks/GenerateManifest/index.ts @@ -8,7 +8,7 @@ */ import execa from 'execa' -import { TaskFn } from '../../src/contracts' +import { TaskFn } from '../../src/Contracts' /** * Generate manifest file by running `node ace generate:manifest` file diff --git a/tasks/InstallDependencies/index.ts b/tasks/InstallDependencies/index.ts index 9af7077..3500682 100644 --- a/tasks/InstallDependencies/index.ts +++ b/tasks/InstallDependencies/index.ts @@ -7,9 +7,9 @@ * file that was distributed with this source code. */ -import { TaskFn } from '../../src/contracts' +import { TaskFn } from '../../src/Contracts' import { getInstallMessage } from '../../src/Helpers' -import { packages } from '../../src/Schematics/packages' +import { packages } from '../../src/schematics/packages' /** * Creates the `package.json` file in the project root and installs diff --git a/tasks/Scaffold/copyTemplates.ts b/tasks/Scaffold/copyTemplates.ts index e908cac..0a9ad83 100644 --- a/tasks/Scaffold/copyTemplates.ts +++ b/tasks/Scaffold/copyTemplates.ts @@ -11,7 +11,7 @@ import { join } from 'path' import { utils, files } from '@adonisjs/sink' import { fsReadAll } from '@poppinss/utils/build/helpers' -import { TaskFn } from '../../src/contracts' +import { TaskFn } from '../../src/Contracts' /** * Copy boilerplate files to the destination diff --git a/tasks/Scaffold/createEditorConfig.ts b/tasks/Scaffold/createEditorConfig.ts index 42d34fb..5d7ddd7 100644 --- a/tasks/Scaffold/createEditorConfig.ts +++ b/tasks/Scaffold/createEditorConfig.ts @@ -8,7 +8,7 @@ */ import { files } from '@adonisjs/sink' -import { TaskFn } from '../../src/contracts' +import { TaskFn } from '../../src/Contracts' /** * Create `.editorconfig` inside destination diff --git a/tasks/Scaffold/createGitIgnore.ts b/tasks/Scaffold/createGitIgnore.ts index 25195c1..6dd744b 100644 --- a/tasks/Scaffold/createGitIgnore.ts +++ b/tasks/Scaffold/createGitIgnore.ts @@ -8,7 +8,7 @@ */ import { files } from '@adonisjs/sink' -import { TaskFn } from '../../src/contracts' +import { TaskFn } from '../../src/Contracts' /** * Creates `.gitignore` file inside destination diff --git a/tasks/Scaffold/createRcFile.ts b/tasks/Scaffold/createRcFile.ts index d1f746f..733169f 100644 --- a/tasks/Scaffold/createRcFile.ts +++ b/tasks/Scaffold/createRcFile.ts @@ -8,7 +8,7 @@ */ import { files } from '@adonisjs/sink' -import { TaskFn } from '../../src/contracts' +import { TaskFn } from '../../src/Contracts' /** * Creates the `.adonisrc.json` inside destination diff --git a/tasks/Scaffold/createTsConfig.ts b/tasks/Scaffold/createTsConfig.ts index e637a54..afb1597 100644 --- a/tasks/Scaffold/createTsConfig.ts +++ b/tasks/Scaffold/createTsConfig.ts @@ -8,7 +8,7 @@ */ import { files } from '@adonisjs/sink' -import { TaskFn } from '../../src/contracts' +import { TaskFn } from '../../src/Contracts' /** * Creates `tsconfig.json` file inside destination diff --git a/tasks/Scaffold/setupEslint.ts b/tasks/Scaffold/setupEslint.ts index bf915ec..9fdbd2a 100644 --- a/tasks/Scaffold/setupEslint.ts +++ b/tasks/Scaffold/setupEslint.ts @@ -7,7 +7,7 @@ * file that was distributed with this source code. */ -import { TaskFn } from '../../src/contracts' +import { TaskFn } from '../../src/Contracts' /** * Setup eslint inside the project diff --git a/tasks/Scaffold/setupPrettier.ts b/tasks/Scaffold/setupPrettier.ts index 100f589..cb69c1c 100644 --- a/tasks/Scaffold/setupPrettier.ts +++ b/tasks/Scaffold/setupPrettier.ts @@ -8,7 +8,7 @@ */ import { files } from '@adonisjs/sink' -import { TaskFn } from '../../src/contracts' +import { TaskFn } from '../../src/Contracts' /** * Setup prettier inside the project