diff --git a/README.md b/README.md index 928c2c06..35fa46af 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,6 @@ _Codemod to convert Ember addons to v2 addon format_ ## Features - Scaffolds files according to [`@embroider/addon-blueprint`](https://github.com/embroider-build/addon-blueprint) -- Switches Ember's "magic" import paths to relative paths - Preserves your code whenever possible - Supports [`ember-cli-typescript`](https://docs.ember-cli-typescript.com/) and [`glint`](https://typed-ember.gitbook.io/glint/) - Focuses on maintainability and extensibility @@ -116,7 +115,7 @@ You can also look at another codemod called [`ember-addon-migrator`](https://git ## Contributing -If you have an open-sourced addon that I can use as a test fixture, reach out to me on [Discord](https://discord.gg/emberjs) at `ijlee2`. Please star this project so that I can gauge its importance to you and the Ember community. ⭐ +If you have an open-sourced addon (v1 or v2) that I can use as a reference, reach out to me on [Discord](https://discord.gg/emberjs) at `ijlee2`. Please star this project so that I can gauge its importance to you and the Ember community. ⭐ ## Credits diff --git a/src/migration/ember-addon/index.js b/src/migration/ember-addon/index.js index 69fa18d6..e17b6ee9 100644 --- a/src/migration/ember-addon/index.js +++ b/src/migration/ember-addon/index.js @@ -9,7 +9,6 @@ import { updateAddonTsconfigJson, updateTestAppPackageJson, updateTestAppTsconfigJson, - useRelativePaths, } from './steps/index.js'; export function migrateEmberAddon(codemodOptions) { @@ -23,7 +22,6 @@ export function migrateEmberAddon(codemodOptions) { // Prepare for migration const context = analyzeAddon(options); - useRelativePaths(options); // Preserve code moveAddonFiles(options); diff --git a/src/migration/ember-addon/steps/index.js b/src/migration/ember-addon/steps/index.js index 8230fbfe..f57e2f95 100644 --- a/src/migration/ember-addon/steps/index.js +++ b/src/migration/ember-addon/steps/index.js @@ -8,4 +8,3 @@ export * from './update-addon-package-json.js'; export * from './update-addon-tsconfig-json.js'; export * from './update-test-app-package-json.js'; export * from './update-test-app-tsconfig-json.js'; -export * from './use-relative-paths.js'; diff --git a/src/migration/ember-addon/steps/use-relative-paths.js b/src/migration/ember-addon/steps/use-relative-paths.js deleted file mode 100644 index 6f9cb2c0..00000000 --- a/src/migration/ember-addon/steps/use-relative-paths.js +++ /dev/null @@ -1,85 +0,0 @@ -import { readFileSync, writeFileSync } from 'node:fs'; -import { dirname, join, relative } from 'node:path'; - -import { findFiles } from '../../../utils/files.js'; - -function normalizeRelativePath(relativePath) { - if (!relativePath.startsWith('..')) { - return `./${relativePath}`; - } - - return relativePath; -} - -function updateFile(oldFile, { filePath, projectName, projectRoot }) { - const regex = new RegExp(`(?:'|")(${projectName}/(.*/)*(.*))(?:'|")`, 'g'); - const matchResults = [...oldFile.matchAll(regex)]; - - let newFile = oldFile; - - matchResults.forEach((matchResult) => { - // eslint-disable-next-line no-unused-vars - const [_, oldPath, remainingDirectories, fileName] = matchResult; - - const from = dirname(filePath); - const to = join(projectRoot, remainingDirectories); - - const relativePath = join(relative(from, to), fileName); - const newPath = normalizeRelativePath(relativePath); - - newFile = newFile.replace(oldPath, newPath); - }); - - return newFile; -} - -function useRelativePathInAddonFolder(options) { - const { packages, projectRoot } = options; - - // File extensions had been specified, partly to encode assumptions - // about Ember, and partly to avoid corrupting non-text files - const filePaths = findFiles('addon/**/*.{d.ts,js,ts}', { - cwd: projectRoot, - }); - - filePaths.forEach((filePath) => { - const oldPath = join(projectRoot, filePath); - const oldFile = readFileSync(oldPath, 'utf8'); - - const newFile = updateFile(oldFile, { - filePath, - projectName: packages.addon.name, - projectRoot: 'addon', - }); - - writeFileSync(oldPath, newFile, 'utf8'); - }); -} - -function useRelativePathInTestsDummyFolder(options) { - const { projectRoot } = options; - - // File extensions had been specified, partly to encode assumptions - // about Ember, and partly to avoid corrupting non-text files - const filePaths = findFiles('tests/dummy/**/*.{d.ts,js,ts}', { - cwd: projectRoot, - }); - - filePaths.forEach((filePath) => { - const oldPath = join(projectRoot, filePath); - const oldFile = readFileSync(oldPath, 'utf8'); - - const newFile = updateFile(oldFile, { - filePath, - projectName: 'dummy', - projectRoot: 'tests/dummy/app', - }); - - writeFileSync(oldPath, newFile, 'utf8'); - }); -} - -export function useRelativePaths(options) { - useRelativePathInAddonFolder(options); - useRelativePathInTestsDummyFolder(options); -} diff --git a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/tracks.ts b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/tracks.ts index cb507e52..39ed2708 100644 --- a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/tracks.ts +++ b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/tracks.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Track } from '../data/album'; +import type { Track } from 'demo-app-for-ember-container-query/data/album'; interface TracksComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/tracks/list.ts b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/tracks/list.ts index bc22f56f..f038889c 100644 --- a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/tracks/list.ts +++ b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/tracks/list.ts @@ -1,6 +1,6 @@ import Component from '@glimmer/component'; -import type { Track } from '../../data/album'; +import type { Track } from 'demo-app-for-ember-container-query/data/album'; interface TracksListComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/tracks/table.ts b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/tracks/table.ts index cf22371e..13ba9b72 100644 --- a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/tracks/table.ts +++ b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/tracks/table.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Track } from '../../data/album'; +import type { Track } from 'demo-app-for-ember-container-query/data/album'; interface TracksTableComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-2.ts b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-2.ts index b96bf5e1..fcebc595 100644 --- a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-2.ts +++ b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-2.ts @@ -1,12 +1,12 @@ import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import musicRevenue from '../../data/music-revenue'; -import type { Data, Summary } from '../../utils/components/widgets/widget-2'; +import musicRevenue from 'demo-app-for-ember-container-query/data/music-revenue'; +import type { Data, Summary } from 'demo-app-for-ember-container-query/utils/components/widgets/widget-2'; import { createDataForVisualization, createSummariesForCaptions, -} from '../../utils/components/widgets/widget-2'; +} from 'demo-app-for-ember-container-query/utils/components/widgets/widget-2'; interface WidgetsWidget2ComponentSignature {} diff --git a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-2/captions.ts b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-2/captions.ts index 8da9b7de..389a190d 100644 --- a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-2/captions.ts +++ b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-2/captions.ts @@ -2,7 +2,7 @@ import { action } from '@ember/object'; import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import type { Summary } from '../../../utils/components/widgets/widget-2'; +import type { Summary } from 'demo-app-for-ember-container-query/utils/components/widgets/widget-2'; interface WidgetsWidget2CaptionsComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-2/stacked-chart.ts b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-2/stacked-chart.ts index fc23b11e..01b88e4a 100644 --- a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-2/stacked-chart.ts +++ b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-2/stacked-chart.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Data } from '../../../utils/components/widgets/widget-2'; +import type { Data } from 'demo-app-for-ember-container-query/utils/components/widgets/widget-2'; interface WidgetsWidget2StackedChartComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-3.ts b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-3.ts index a6b3f8c2..eb0001ee 100644 --- a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-3.ts +++ b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-3.ts @@ -1,8 +1,8 @@ import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import type { Concert } from '../../data/concert'; -import concertData from '../../data/concert'; +import type { Concert } from 'demo-app-for-ember-container-query/data/concert'; +import concertData from 'demo-app-for-ember-container-query/data/concert'; interface WidgetsWidget3ComponentSignature {} diff --git a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-3/tour-schedule.ts b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-3/tour-schedule.ts index 38138cd1..f26743f6 100644 --- a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-3/tour-schedule.ts +++ b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-3/tour-schedule.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Concert } from '../../../data/concert'; +import type { Concert } from 'demo-app-for-ember-container-query/data/concert'; export interface WidgetsWidget3TourScheduleComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts index dc49dab4..8f464a2f 100644 --- a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts +++ b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts @@ -3,8 +3,8 @@ import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; import type { Dimensions } from 'ember-container-query/modifiers/container-query'; -import type { Image } from '../../../../data/concert'; -import { findBestFittingImage } from '../../../../utils/components/widgets/widget-3'; +import type { Image } from 'demo-app-for-ember-container-query/data/concert'; +import { findBestFittingImage } from 'demo-app-for-ember-container-query/utils/components/widgets/widget-3'; interface WidgetsWidget3TourScheduleResponsiveImageComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/modifiers/draw-stacked-chart.d.ts b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/modifiers/draw-stacked-chart.d.ts index d51fc4bd..c51692d3 100644 --- a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/modifiers/draw-stacked-chart.d.ts +++ b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/modifiers/draw-stacked-chart.d.ts @@ -1,6 +1,6 @@ import { ModifierLike } from '@glint/template'; -import type { Data } from '../utils/components/widgets/widget-2'; +import type { Data } from 'demo-app-for-ember-container-query/utils/components/widgets/widget-2'; declare module '@glint/environment-ember-loose/registry' { export default interface Registry { diff --git a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/modifiers/draw-stacked-chart.js b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/modifiers/draw-stacked-chart.js index 344c3284..0e276d65 100644 --- a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/modifiers/draw-stacked-chart.js +++ b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/modifiers/draw-stacked-chart.js @@ -11,7 +11,7 @@ import Modifier from 'ember-modifier'; import { COLOR_PALETTE, formatRevenue, -} from '../utils/components/widgets/widget-2'; +} from 'demo-app-for-ember-container-query/utils/components/widgets/widget-2'; const musicFormats = Object.keys(COLOR_PALETTE); const paletteColors = Object.values(COLOR_PALETTE); diff --git a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/routes/album.ts b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/routes/album.ts index 8756c059..f2fb6054 100644 --- a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/routes/album.ts +++ b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/routes/album.ts @@ -1,8 +1,8 @@ import Route from '@ember/routing/route'; -import type { Album } from '../data/album'; -import albumData from '../data/album'; -import type { ModelFrom } from '../utils/routes'; +import type { Album } from 'demo-app-for-ember-container-query/data/album'; +import albumData from 'demo-app-for-ember-container-query/data/album'; +import type { ModelFrom } from 'demo-app-for-ember-container-query/utils/routes'; export default class AlbumRoute extends Route { model(): Album { diff --git a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/utils/components/widgets/widget-2.ts b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/utils/components/widgets/widget-2.ts index 83844733..1c686a38 100644 --- a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/utils/components/widgets/widget-2.ts +++ b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/utils/components/widgets/widget-2.ts @@ -1,4 +1,4 @@ -import type { Revenue } from '../../../data/music-revenue'; +import type { Revenue } from 'demo-app-for-ember-container-query/data/music-revenue'; export type Data = { musicFormat: string; diff --git a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/utils/components/widgets/widget-3.ts b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/utils/components/widgets/widget-3.ts index 822cb8d6..e1b8e22c 100644 --- a/tests/fixtures/ember-container-query-customizations/output/demo-app/app/utils/components/widgets/widget-3.ts +++ b/tests/fixtures/ember-container-query-customizations/output/demo-app/app/utils/components/widgets/widget-3.ts @@ -1,4 +1,4 @@ -import type { Image } from '../../../data/concert'; +import type { Image } from 'demo-app-for-ember-container-query/data/concert'; export type ContainerDimensions = { aspectRatio: number; diff --git a/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/components/container-query.ts b/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/components/container-query.ts index 35bb9c14..c78e35d3 100644 --- a/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/components/container-query.ts +++ b/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/components/container-query.ts @@ -7,7 +7,7 @@ import type { Features, IndexSignatureParameter, QueryResults, -} from '../modifiers/container-query'; +} from 'ember-container-query/modifiers/container-query'; interface ContainerQueryComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/aspect-ratio.ts b/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/aspect-ratio.ts index 3ccc336f..60802579 100644 --- a/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/aspect-ratio.ts +++ b/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/aspect-ratio.ts @@ -1,6 +1,6 @@ import { helper } from '@ember/component/helper'; -import type { Metadata } from '../modifiers/container-query'; +import type { Metadata } from 'ember-container-query/modifiers/container-query'; interface AspectRatioHelperSignature { Args: { diff --git a/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/cq-aspect-ratio.ts b/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/cq-aspect-ratio.ts index 7444ef2d..e532ba8b 100644 --- a/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/cq-aspect-ratio.ts +++ b/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/cq-aspect-ratio.ts @@ -1,6 +1,6 @@ import { deprecate } from '@ember/debug'; -import AspectRatioHelper from './aspect-ratio'; +import AspectRatioHelper from 'ember-container-query/helpers/aspect-ratio'; deprecate( 'The {{cq-aspect-ratio}} helper has been renamed to {{aspect-ratio}}. Please update the helper name in your template.', diff --git a/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/cq-height.ts b/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/cq-height.ts index a8172ed0..7a2dc3b7 100644 --- a/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/cq-height.ts +++ b/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/cq-height.ts @@ -1,6 +1,6 @@ import { deprecate } from '@ember/debug'; -import HeightHelper from './height'; +import HeightHelper from 'ember-container-query/helpers/height'; deprecate( 'The {{cq-height}} helper has been renamed to {{height}}. Please update the helper name in your template.', diff --git a/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/cq-width.ts b/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/cq-width.ts index 767e06cc..c3eaf6f2 100644 --- a/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/cq-width.ts +++ b/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/cq-width.ts @@ -1,6 +1,6 @@ import { deprecate } from '@ember/debug'; -import WidthHelper from './width'; +import WidthHelper from 'ember-container-query/helpers/width'; deprecate( 'The {{cq-width}} helper has been renamed to {{width}}. Please update the helper name in your template.', diff --git a/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/height.ts b/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/height.ts index 4a005750..55186717 100644 --- a/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/height.ts +++ b/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/height.ts @@ -1,6 +1,6 @@ import { helper } from '@ember/component/helper'; -import type { Metadata } from '../modifiers/container-query'; +import type { Metadata } from 'ember-container-query/modifiers/container-query'; interface HeightHelperSignature { Args: { diff --git a/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/width.ts b/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/width.ts index 4fd97918..d84734ee 100644 --- a/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/width.ts +++ b/tests/fixtures/ember-container-query-customizations/output/packages/ember-container-query/src/helpers/width.ts @@ -1,6 +1,6 @@ import { helper } from '@ember/component/helper'; -import type { Metadata } from '../modifiers/container-query'; +import type { Metadata } from 'ember-container-query/modifiers/container-query'; interface WidthHelperSignature { Args: { diff --git a/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/components/container-query.ts b/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/components/container-query.ts index 35bb9c14..c78e35d3 100644 --- a/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/components/container-query.ts +++ b/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/components/container-query.ts @@ -7,7 +7,7 @@ import type { Features, IndexSignatureParameter, QueryResults, -} from '../modifiers/container-query'; +} from 'ember-container-query/modifiers/container-query'; interface ContainerQueryComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/aspect-ratio.ts b/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/aspect-ratio.ts index 3ccc336f..60802579 100644 --- a/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/aspect-ratio.ts +++ b/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/aspect-ratio.ts @@ -1,6 +1,6 @@ import { helper } from '@ember/component/helper'; -import type { Metadata } from '../modifiers/container-query'; +import type { Metadata } from 'ember-container-query/modifiers/container-query'; interface AspectRatioHelperSignature { Args: { diff --git a/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/cq-aspect-ratio.ts b/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/cq-aspect-ratio.ts index 7444ef2d..e532ba8b 100644 --- a/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/cq-aspect-ratio.ts +++ b/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/cq-aspect-ratio.ts @@ -1,6 +1,6 @@ import { deprecate } from '@ember/debug'; -import AspectRatioHelper from './aspect-ratio'; +import AspectRatioHelper from 'ember-container-query/helpers/aspect-ratio'; deprecate( 'The {{cq-aspect-ratio}} helper has been renamed to {{aspect-ratio}}. Please update the helper name in your template.', diff --git a/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/cq-height.ts b/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/cq-height.ts index a8172ed0..7a2dc3b7 100644 --- a/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/cq-height.ts +++ b/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/cq-height.ts @@ -1,6 +1,6 @@ import { deprecate } from '@ember/debug'; -import HeightHelper from './height'; +import HeightHelper from 'ember-container-query/helpers/height'; deprecate( 'The {{cq-height}} helper has been renamed to {{height}}. Please update the helper name in your template.', diff --git a/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/cq-width.ts b/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/cq-width.ts index 767e06cc..c3eaf6f2 100644 --- a/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/cq-width.ts +++ b/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/cq-width.ts @@ -1,6 +1,6 @@ import { deprecate } from '@ember/debug'; -import WidthHelper from './width'; +import WidthHelper from 'ember-container-query/helpers/width'; deprecate( 'The {{cq-width}} helper has been renamed to {{width}}. Please update the helper name in your template.', diff --git a/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/height.ts b/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/height.ts index 4a005750..55186717 100644 --- a/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/height.ts +++ b/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/height.ts @@ -1,6 +1,6 @@ import { helper } from '@ember/component/helper'; -import type { Metadata } from '../modifiers/container-query'; +import type { Metadata } from 'ember-container-query/modifiers/container-query'; interface HeightHelperSignature { Args: { diff --git a/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/width.ts b/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/width.ts index 4fd97918..d84734ee 100644 --- a/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/width.ts +++ b/tests/fixtures/ember-container-query-glint/output/ember-container-query/src/helpers/width.ts @@ -1,6 +1,6 @@ import { helper } from '@ember/component/helper'; -import type { Metadata } from '../modifiers/container-query'; +import type { Metadata } from 'ember-container-query/modifiers/container-query'; interface WidthHelperSignature { Args: { diff --git a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/tracks.ts b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/tracks.ts index cb507e52..26cbb202 100644 --- a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/tracks.ts +++ b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/tracks.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Track } from '../data/album'; +import type { Track } from 'test-app/data/album'; interface TracksComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/tracks/list.ts b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/tracks/list.ts index bc22f56f..43f2d04a 100644 --- a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/tracks/list.ts +++ b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/tracks/list.ts @@ -1,6 +1,6 @@ import Component from '@glimmer/component'; -import type { Track } from '../../data/album'; +import type { Track } from 'test-app/data/album'; interface TracksListComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/tracks/table.ts b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/tracks/table.ts index cf22371e..d36b6fc1 100644 --- a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/tracks/table.ts +++ b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/tracks/table.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Track } from '../../data/album'; +import type { Track } from 'test-app/data/album'; interface TracksTableComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-2.ts b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-2.ts index b96bf5e1..9ec0ab36 100644 --- a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-2.ts +++ b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-2.ts @@ -1,12 +1,12 @@ import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import musicRevenue from '../../data/music-revenue'; -import type { Data, Summary } from '../../utils/components/widgets/widget-2'; +import musicRevenue from 'test-app/data/music-revenue'; +import type { Data, Summary } from 'test-app/utils/components/widgets/widget-2'; import { createDataForVisualization, createSummariesForCaptions, -} from '../../utils/components/widgets/widget-2'; +} from 'test-app/utils/components/widgets/widget-2'; interface WidgetsWidget2ComponentSignature {} diff --git a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-2/captions.ts b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-2/captions.ts index 8da9b7de..681a3e79 100644 --- a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-2/captions.ts +++ b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-2/captions.ts @@ -2,7 +2,7 @@ import { action } from '@ember/object'; import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import type { Summary } from '../../../utils/components/widgets/widget-2'; +import type { Summary } from 'test-app/utils/components/widgets/widget-2'; interface WidgetsWidget2CaptionsComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-2/stacked-chart.ts b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-2/stacked-chart.ts index fc23b11e..8a2c2b07 100644 --- a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-2/stacked-chart.ts +++ b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-2/stacked-chart.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Data } from '../../../utils/components/widgets/widget-2'; +import type { Data } from 'test-app/utils/components/widgets/widget-2'; interface WidgetsWidget2StackedChartComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-3.ts b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-3.ts index a6b3f8c2..486baca2 100644 --- a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-3.ts +++ b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-3.ts @@ -1,8 +1,8 @@ import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import type { Concert } from '../../data/concert'; -import concertData from '../../data/concert'; +import type { Concert } from 'test-app/data/concert'; +import concertData from 'test-app/data/concert'; interface WidgetsWidget3ComponentSignature {} diff --git a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-3/tour-schedule.ts b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-3/tour-schedule.ts index 38138cd1..f3e22040 100644 --- a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-3/tour-schedule.ts +++ b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-3/tour-schedule.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Concert } from '../../../data/concert'; +import type { Concert } from 'test-app/data/concert'; export interface WidgetsWidget3TourScheduleComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts index dc49dab4..c7a8a5e4 100644 --- a/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts +++ b/tests/fixtures/ember-container-query-glint/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts @@ -3,8 +3,8 @@ import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; import type { Dimensions } from 'ember-container-query/modifiers/container-query'; -import type { Image } from '../../../../data/concert'; -import { findBestFittingImage } from '../../../../utils/components/widgets/widget-3'; +import type { Image } from 'test-app/data/concert'; +import { findBestFittingImage } from 'test-app/utils/components/widgets/widget-3'; interface WidgetsWidget3TourScheduleResponsiveImageComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-glint/output/test-app/app/modifiers/draw-stacked-chart.d.ts b/tests/fixtures/ember-container-query-glint/output/test-app/app/modifiers/draw-stacked-chart.d.ts index d51fc4bd..fd0ceaa3 100644 --- a/tests/fixtures/ember-container-query-glint/output/test-app/app/modifiers/draw-stacked-chart.d.ts +++ b/tests/fixtures/ember-container-query-glint/output/test-app/app/modifiers/draw-stacked-chart.d.ts @@ -1,6 +1,6 @@ import { ModifierLike } from '@glint/template'; -import type { Data } from '../utils/components/widgets/widget-2'; +import type { Data } from 'test-app/utils/components/widgets/widget-2'; declare module '@glint/environment-ember-loose/registry' { export default interface Registry { diff --git a/tests/fixtures/ember-container-query-glint/output/test-app/app/modifiers/draw-stacked-chart.js b/tests/fixtures/ember-container-query-glint/output/test-app/app/modifiers/draw-stacked-chart.js index 344c3284..c115e3da 100644 --- a/tests/fixtures/ember-container-query-glint/output/test-app/app/modifiers/draw-stacked-chart.js +++ b/tests/fixtures/ember-container-query-glint/output/test-app/app/modifiers/draw-stacked-chart.js @@ -11,7 +11,7 @@ import Modifier from 'ember-modifier'; import { COLOR_PALETTE, formatRevenue, -} from '../utils/components/widgets/widget-2'; +} from 'test-app/utils/components/widgets/widget-2'; const musicFormats = Object.keys(COLOR_PALETTE); const paletteColors = Object.values(COLOR_PALETTE); diff --git a/tests/fixtures/ember-container-query-glint/output/test-app/app/routes/album.ts b/tests/fixtures/ember-container-query-glint/output/test-app/app/routes/album.ts index 8756c059..ffed5dcc 100644 --- a/tests/fixtures/ember-container-query-glint/output/test-app/app/routes/album.ts +++ b/tests/fixtures/ember-container-query-glint/output/test-app/app/routes/album.ts @@ -1,8 +1,8 @@ import Route from '@ember/routing/route'; -import type { Album } from '../data/album'; -import albumData from '../data/album'; -import type { ModelFrom } from '../utils/routes'; +import type { Album } from 'test-app/data/album'; +import albumData from 'test-app/data/album'; +import type { ModelFrom } from 'test-app/utils/routes'; export default class AlbumRoute extends Route { model(): Album { diff --git a/tests/fixtures/ember-container-query-glint/output/test-app/app/utils/components/widgets/widget-2.ts b/tests/fixtures/ember-container-query-glint/output/test-app/app/utils/components/widgets/widget-2.ts index 83844733..b6e9961a 100644 --- a/tests/fixtures/ember-container-query-glint/output/test-app/app/utils/components/widgets/widget-2.ts +++ b/tests/fixtures/ember-container-query-glint/output/test-app/app/utils/components/widgets/widget-2.ts @@ -1,4 +1,4 @@ -import type { Revenue } from '../../../data/music-revenue'; +import type { Revenue } from 'test-app/data/music-revenue'; export type Data = { musicFormat: string; diff --git a/tests/fixtures/ember-container-query-glint/output/test-app/app/utils/components/widgets/widget-3.ts b/tests/fixtures/ember-container-query-glint/output/test-app/app/utils/components/widgets/widget-3.ts index 822cb8d6..602dc643 100644 --- a/tests/fixtures/ember-container-query-glint/output/test-app/app/utils/components/widgets/widget-3.ts +++ b/tests/fixtures/ember-container-query-glint/output/test-app/app/utils/components/widgets/widget-3.ts @@ -1,4 +1,4 @@ -import type { Image } from '../../../data/concert'; +import type { Image } from 'test-app/data/concert'; export type ContainerDimensions = { aspectRatio: number; diff --git a/tests/fixtures/ember-container-query-javascript/output/test-app/app/app.js b/tests/fixtures/ember-container-query-javascript/output/test-app/app/app.js index 6f447f54..79832cc5 100644 --- a/tests/fixtures/ember-container-query-javascript/output/test-app/app/app.js +++ b/tests/fixtures/ember-container-query-javascript/output/test-app/app/app.js @@ -1,5 +1,5 @@ import Application from '@ember/application'; -import config from './config/environment'; +import config from 'test-app/config/environment'; import loadInitializers from 'ember-load-initializers'; import Resolver from 'ember-resolver'; diff --git a/tests/fixtures/ember-container-query-javascript/output/test-app/app/components/widgets/widget-2.js b/tests/fixtures/ember-container-query-javascript/output/test-app/app/components/widgets/widget-2.js index 19f92b13..c91e2c66 100644 --- a/tests/fixtures/ember-container-query-javascript/output/test-app/app/components/widgets/widget-2.js +++ b/tests/fixtures/ember-container-query-javascript/output/test-app/app/components/widgets/widget-2.js @@ -1,10 +1,10 @@ import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import musicRevenue from '../../data/music-revenue'; +import musicRevenue from 'test-app/data/music-revenue'; import { createDataForVisualization, createSummariesForCaptions, -} from '../../utils/components/widgets/widget-2'; +} from 'test-app/utils/components/widgets/widget-2'; export default class WidgetsWidget2Component extends Component { @tracked data = []; diff --git a/tests/fixtures/ember-container-query-javascript/output/test-app/app/components/widgets/widget-3.js b/tests/fixtures/ember-container-query-javascript/output/test-app/app/components/widgets/widget-3.js index 6d2c85c9..de78dc84 100644 --- a/tests/fixtures/ember-container-query-javascript/output/test-app/app/components/widgets/widget-3.js +++ b/tests/fixtures/ember-container-query-javascript/output/test-app/app/components/widgets/widget-3.js @@ -1,6 +1,6 @@ import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import concertData from '../../data/concert'; +import concertData from 'test-app/data/concert'; export default class WidgetsWidget3Component extends Component { @tracked concertData = {}; diff --git a/tests/fixtures/ember-container-query-javascript/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.js b/tests/fixtures/ember-container-query-javascript/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.js index 28c65b9b..af6fab65 100644 --- a/tests/fixtures/ember-container-query-javascript/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.js +++ b/tests/fixtures/ember-container-query-javascript/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.js @@ -1,7 +1,7 @@ import { action } from '@ember/object'; import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import { findBestFittingImage } from '../../../../utils/components/widgets/widget-3'; +import { findBestFittingImage } from 'test-app/utils/components/widgets/widget-3'; export default class WidgetsWidget3TourScheduleResponsiveImageComponent extends Component { @tracked imageSource; diff --git a/tests/fixtures/ember-container-query-javascript/output/test-app/app/modifiers/draw-stacked-chart.js b/tests/fixtures/ember-container-query-javascript/output/test-app/app/modifiers/draw-stacked-chart.js index b6e53dfb..08120269 100644 --- a/tests/fixtures/ember-container-query-javascript/output/test-app/app/modifiers/draw-stacked-chart.js +++ b/tests/fixtures/ember-container-query-javascript/output/test-app/app/modifiers/draw-stacked-chart.js @@ -9,7 +9,7 @@ import { stack, stackOrderReverse } from 'd3-shape'; import { COLOR_PALETTE, formatRevenue, -} from '../utils/components/widgets/widget-2'; +} from 'test-app/utils/components/widgets/widget-2'; import Modifier from 'ember-modifier'; const musicFormats = Object.keys(COLOR_PALETTE); diff --git a/tests/fixtures/ember-container-query-javascript/output/test-app/app/router.js b/tests/fixtures/ember-container-query-javascript/output/test-app/app/router.js index e2ff7db9..e868301d 100644 --- a/tests/fixtures/ember-container-query-javascript/output/test-app/app/router.js +++ b/tests/fixtures/ember-container-query-javascript/output/test-app/app/router.js @@ -1,5 +1,5 @@ import EmberRouter from '@ember/routing/router'; -import config from './config/environment'; +import config from 'test-app/config/environment'; export default class Router extends EmberRouter { location = config.locationType; diff --git a/tests/fixtures/ember-container-query-javascript/output/test-app/app/routes/album.js b/tests/fixtures/ember-container-query-javascript/output/test-app/app/routes/album.js index e7c2d9fc..eba0cb75 100644 --- a/tests/fixtures/ember-container-query-javascript/output/test-app/app/routes/album.js +++ b/tests/fixtures/ember-container-query-javascript/output/test-app/app/routes/album.js @@ -1,5 +1,5 @@ import Route from '@ember/routing/route'; -import albumData from '../data/album'; +import albumData from 'test-app/data/album'; export default class AlbumRoute extends Route { model() { diff --git a/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/components/container-query.ts b/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/components/container-query.ts index 35bb9c14..1d0de29f 100644 --- a/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/components/container-query.ts +++ b/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/components/container-query.ts @@ -7,7 +7,7 @@ import type { Features, IndexSignatureParameter, QueryResults, -} from '../modifiers/container-query'; +} from '@ijlee2/ember-container-query/modifiers/container-query'; interface ContainerQueryComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/aspect-ratio.ts b/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/aspect-ratio.ts index 3ccc336f..888fb113 100644 --- a/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/aspect-ratio.ts +++ b/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/aspect-ratio.ts @@ -1,6 +1,6 @@ import { helper } from '@ember/component/helper'; -import type { Metadata } from '../modifiers/container-query'; +import type { Metadata } from '@ijlee2/ember-container-query/modifiers/container-query'; interface AspectRatioHelperSignature { Args: { diff --git a/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/cq-aspect-ratio.ts b/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/cq-aspect-ratio.ts index 128ca748..8ffd3256 100644 --- a/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/cq-aspect-ratio.ts +++ b/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/cq-aspect-ratio.ts @@ -1,6 +1,6 @@ import { deprecate } from '@ember/debug'; -import AspectRatioHelper from './aspect-ratio'; +import AspectRatioHelper from '@ijlee2/ember-container-query/helpers/aspect-ratio'; deprecate( 'The {{cq-aspect-ratio}} helper has been renamed to {{aspect-ratio}}. Please update the helper name in your template.', diff --git a/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/cq-height.ts b/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/cq-height.ts index 41f24c41..7134b37c 100644 --- a/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/cq-height.ts +++ b/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/cq-height.ts @@ -1,6 +1,6 @@ import { deprecate } from '@ember/debug'; -import HeightHelper from './height'; +import HeightHelper from '@ijlee2/ember-container-query/helpers/height'; deprecate( 'The {{cq-height}} helper has been renamed to {{height}}. Please update the helper name in your template.', diff --git a/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/cq-width.ts b/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/cq-width.ts index 286b406d..a5fda8cd 100644 --- a/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/cq-width.ts +++ b/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/cq-width.ts @@ -1,6 +1,6 @@ import { deprecate } from '@ember/debug'; -import WidthHelper from './width'; +import WidthHelper from '@ijlee2/ember-container-query/helpers/width'; deprecate( 'The {{cq-width}} helper has been renamed to {{width}}. Please update the helper name in your template.', diff --git a/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/height.ts b/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/height.ts index 4a005750..3b44c94b 100644 --- a/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/height.ts +++ b/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/height.ts @@ -1,6 +1,6 @@ import { helper } from '@ember/component/helper'; -import type { Metadata } from '../modifiers/container-query'; +import type { Metadata } from '@ijlee2/ember-container-query/modifiers/container-query'; interface HeightHelperSignature { Args: { diff --git a/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/width.ts b/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/width.ts index 4fd97918..aebafff2 100644 --- a/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/width.ts +++ b/tests/fixtures/ember-container-query-scoped/output/ember-container-query/src/helpers/width.ts @@ -1,6 +1,6 @@ import { helper } from '@ember/component/helper'; -import type { Metadata } from '../modifiers/container-query'; +import type { Metadata } from '@ijlee2/ember-container-query/modifiers/container-query'; interface WidthHelperSignature { Args: { diff --git a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/tracks.ts b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/tracks.ts index cb507e52..26cbb202 100644 --- a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/tracks.ts +++ b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/tracks.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Track } from '../data/album'; +import type { Track } from 'test-app/data/album'; interface TracksComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/tracks/list.ts b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/tracks/list.ts index bc22f56f..43f2d04a 100644 --- a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/tracks/list.ts +++ b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/tracks/list.ts @@ -1,6 +1,6 @@ import Component from '@glimmer/component'; -import type { Track } from '../../data/album'; +import type { Track } from 'test-app/data/album'; interface TracksListComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/tracks/table.ts b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/tracks/table.ts index cf22371e..d36b6fc1 100644 --- a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/tracks/table.ts +++ b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/tracks/table.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Track } from '../../data/album'; +import type { Track } from 'test-app/data/album'; interface TracksTableComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-2.ts b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-2.ts index b96bf5e1..9ec0ab36 100644 --- a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-2.ts +++ b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-2.ts @@ -1,12 +1,12 @@ import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import musicRevenue from '../../data/music-revenue'; -import type { Data, Summary } from '../../utils/components/widgets/widget-2'; +import musicRevenue from 'test-app/data/music-revenue'; +import type { Data, Summary } from 'test-app/utils/components/widgets/widget-2'; import { createDataForVisualization, createSummariesForCaptions, -} from '../../utils/components/widgets/widget-2'; +} from 'test-app/utils/components/widgets/widget-2'; interface WidgetsWidget2ComponentSignature {} diff --git a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-2/captions.ts b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-2/captions.ts index 8da9b7de..681a3e79 100644 --- a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-2/captions.ts +++ b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-2/captions.ts @@ -2,7 +2,7 @@ import { action } from '@ember/object'; import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import type { Summary } from '../../../utils/components/widgets/widget-2'; +import type { Summary } from 'test-app/utils/components/widgets/widget-2'; interface WidgetsWidget2CaptionsComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-2/stacked-chart.ts b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-2/stacked-chart.ts index fc23b11e..8a2c2b07 100644 --- a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-2/stacked-chart.ts +++ b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-2/stacked-chart.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Data } from '../../../utils/components/widgets/widget-2'; +import type { Data } from 'test-app/utils/components/widgets/widget-2'; interface WidgetsWidget2StackedChartComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-3.ts b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-3.ts index a6b3f8c2..486baca2 100644 --- a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-3.ts +++ b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-3.ts @@ -1,8 +1,8 @@ import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import type { Concert } from '../../data/concert'; -import concertData from '../../data/concert'; +import type { Concert } from 'test-app/data/concert'; +import concertData from 'test-app/data/concert'; interface WidgetsWidget3ComponentSignature {} diff --git a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-3/tour-schedule.ts b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-3/tour-schedule.ts index 38138cd1..f3e22040 100644 --- a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-3/tour-schedule.ts +++ b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-3/tour-schedule.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Concert } from '../../../data/concert'; +import type { Concert } from 'test-app/data/concert'; export interface WidgetsWidget3TourScheduleComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts index dc49dab4..c7a8a5e4 100644 --- a/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts +++ b/tests/fixtures/ember-container-query-scoped/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts @@ -3,8 +3,8 @@ import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; import type { Dimensions } from 'ember-container-query/modifiers/container-query'; -import type { Image } from '../../../../data/concert'; -import { findBestFittingImage } from '../../../../utils/components/widgets/widget-3'; +import type { Image } from 'test-app/data/concert'; +import { findBestFittingImage } from 'test-app/utils/components/widgets/widget-3'; interface WidgetsWidget3TourScheduleResponsiveImageComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-scoped/output/test-app/app/modifiers/draw-stacked-chart.d.ts b/tests/fixtures/ember-container-query-scoped/output/test-app/app/modifiers/draw-stacked-chart.d.ts index d51fc4bd..fd0ceaa3 100644 --- a/tests/fixtures/ember-container-query-scoped/output/test-app/app/modifiers/draw-stacked-chart.d.ts +++ b/tests/fixtures/ember-container-query-scoped/output/test-app/app/modifiers/draw-stacked-chart.d.ts @@ -1,6 +1,6 @@ import { ModifierLike } from '@glint/template'; -import type { Data } from '../utils/components/widgets/widget-2'; +import type { Data } from 'test-app/utils/components/widgets/widget-2'; declare module '@glint/environment-ember-loose/registry' { export default interface Registry { diff --git a/tests/fixtures/ember-container-query-scoped/output/test-app/app/modifiers/draw-stacked-chart.js b/tests/fixtures/ember-container-query-scoped/output/test-app/app/modifiers/draw-stacked-chart.js index 344c3284..c115e3da 100644 --- a/tests/fixtures/ember-container-query-scoped/output/test-app/app/modifiers/draw-stacked-chart.js +++ b/tests/fixtures/ember-container-query-scoped/output/test-app/app/modifiers/draw-stacked-chart.js @@ -11,7 +11,7 @@ import Modifier from 'ember-modifier'; import { COLOR_PALETTE, formatRevenue, -} from '../utils/components/widgets/widget-2'; +} from 'test-app/utils/components/widgets/widget-2'; const musicFormats = Object.keys(COLOR_PALETTE); const paletteColors = Object.values(COLOR_PALETTE); diff --git a/tests/fixtures/ember-container-query-scoped/output/test-app/app/routes/album.ts b/tests/fixtures/ember-container-query-scoped/output/test-app/app/routes/album.ts index 8756c059..ffed5dcc 100644 --- a/tests/fixtures/ember-container-query-scoped/output/test-app/app/routes/album.ts +++ b/tests/fixtures/ember-container-query-scoped/output/test-app/app/routes/album.ts @@ -1,8 +1,8 @@ import Route from '@ember/routing/route'; -import type { Album } from '../data/album'; -import albumData from '../data/album'; -import type { ModelFrom } from '../utils/routes'; +import type { Album } from 'test-app/data/album'; +import albumData from 'test-app/data/album'; +import type { ModelFrom } from 'test-app/utils/routes'; export default class AlbumRoute extends Route { model(): Album { diff --git a/tests/fixtures/ember-container-query-scoped/output/test-app/app/utils/components/widgets/widget-2.ts b/tests/fixtures/ember-container-query-scoped/output/test-app/app/utils/components/widgets/widget-2.ts index 83844733..b6e9961a 100644 --- a/tests/fixtures/ember-container-query-scoped/output/test-app/app/utils/components/widgets/widget-2.ts +++ b/tests/fixtures/ember-container-query-scoped/output/test-app/app/utils/components/widgets/widget-2.ts @@ -1,4 +1,4 @@ -import type { Revenue } from '../../../data/music-revenue'; +import type { Revenue } from 'test-app/data/music-revenue'; export type Data = { musicFormat: string; diff --git a/tests/fixtures/ember-container-query-scoped/output/test-app/app/utils/components/widgets/widget-3.ts b/tests/fixtures/ember-container-query-scoped/output/test-app/app/utils/components/widgets/widget-3.ts index 822cb8d6..602dc643 100644 --- a/tests/fixtures/ember-container-query-scoped/output/test-app/app/utils/components/widgets/widget-3.ts +++ b/tests/fixtures/ember-container-query-scoped/output/test-app/app/utils/components/widgets/widget-3.ts @@ -1,4 +1,4 @@ -import type { Image } from '../../../data/concert'; +import type { Image } from 'test-app/data/concert'; export type ContainerDimensions = { aspectRatio: number; diff --git a/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/components/container-query.ts b/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/components/container-query.ts index 35bb9c14..c78e35d3 100644 --- a/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/components/container-query.ts +++ b/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/components/container-query.ts @@ -7,7 +7,7 @@ import type { Features, IndexSignatureParameter, QueryResults, -} from '../modifiers/container-query'; +} from 'ember-container-query/modifiers/container-query'; interface ContainerQueryComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/aspect-ratio.ts b/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/aspect-ratio.ts index 3ccc336f..60802579 100644 --- a/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/aspect-ratio.ts +++ b/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/aspect-ratio.ts @@ -1,6 +1,6 @@ import { helper } from '@ember/component/helper'; -import type { Metadata } from '../modifiers/container-query'; +import type { Metadata } from 'ember-container-query/modifiers/container-query'; interface AspectRatioHelperSignature { Args: { diff --git a/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/cq-aspect-ratio.ts b/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/cq-aspect-ratio.ts index 7444ef2d..e532ba8b 100644 --- a/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/cq-aspect-ratio.ts +++ b/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/cq-aspect-ratio.ts @@ -1,6 +1,6 @@ import { deprecate } from '@ember/debug'; -import AspectRatioHelper from './aspect-ratio'; +import AspectRatioHelper from 'ember-container-query/helpers/aspect-ratio'; deprecate( 'The {{cq-aspect-ratio}} helper has been renamed to {{aspect-ratio}}. Please update the helper name in your template.', diff --git a/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/cq-height.ts b/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/cq-height.ts index a8172ed0..7a2dc3b7 100644 --- a/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/cq-height.ts +++ b/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/cq-height.ts @@ -1,6 +1,6 @@ import { deprecate } from '@ember/debug'; -import HeightHelper from './height'; +import HeightHelper from 'ember-container-query/helpers/height'; deprecate( 'The {{cq-height}} helper has been renamed to {{height}}. Please update the helper name in your template.', diff --git a/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/cq-width.ts b/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/cq-width.ts index 767e06cc..c3eaf6f2 100644 --- a/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/cq-width.ts +++ b/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/cq-width.ts @@ -1,6 +1,6 @@ import { deprecate } from '@ember/debug'; -import WidthHelper from './width'; +import WidthHelper from 'ember-container-query/helpers/width'; deprecate( 'The {{cq-width}} helper has been renamed to {{width}}. Please update the helper name in your template.', diff --git a/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/height.ts b/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/height.ts index 4a005750..55186717 100644 --- a/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/height.ts +++ b/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/height.ts @@ -1,6 +1,6 @@ import { helper } from '@ember/component/helper'; -import type { Metadata } from '../modifiers/container-query'; +import type { Metadata } from 'ember-container-query/modifiers/container-query'; interface HeightHelperSignature { Args: { diff --git a/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/width.ts b/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/width.ts index 4fd97918..d84734ee 100644 --- a/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/width.ts +++ b/tests/fixtures/ember-container-query-typescript/output/ember-container-query/src/helpers/width.ts @@ -1,6 +1,6 @@ import { helper } from '@ember/component/helper'; -import type { Metadata } from '../modifiers/container-query'; +import type { Metadata } from 'ember-container-query/modifiers/container-query'; interface WidthHelperSignature { Args: { diff --git a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/tracks.ts b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/tracks.ts index 0dacec4c..5f0db2ef 100644 --- a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/tracks.ts +++ b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/tracks.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Track } from '../data/album'; +import type { Track } from 'test-app/data/album'; interface TracksComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/tracks/list.ts b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/tracks/list.ts index aadadd32..74551b53 100644 --- a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/tracks/list.ts +++ b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/tracks/list.ts @@ -1,6 +1,6 @@ import Component from '@glimmer/component'; -import type { Track } from '../../data/album'; +import type { Track } from 'test-app/data/album'; interface TracksListComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/tracks/table.ts b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/tracks/table.ts index c3fe7bac..07d4f1b3 100644 --- a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/tracks/table.ts +++ b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/tracks/table.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Track } from '../../data/album'; +import type { Track } from 'test-app/data/album'; interface TracksTableComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-2.ts b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-2.ts index baafcb03..7a891a7d 100644 --- a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-2.ts +++ b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-2.ts @@ -1,12 +1,12 @@ import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import musicRevenue from '../../data/music-revenue'; -import type { Data, Summary } from '../../utils/components/widgets/widget-2'; +import musicRevenue from 'test-app/data/music-revenue'; +import type { Data, Summary } from 'test-app/utils/components/widgets/widget-2'; import { createDataForVisualization, createSummariesForCaptions, -} from '../../utils/components/widgets/widget-2'; +} from 'test-app/utils/components/widgets/widget-2'; interface WidgetsWidget2ComponentSignature {} diff --git a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-2/captions.ts b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-2/captions.ts index 2a1d69c8..e1c3abc9 100644 --- a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-2/captions.ts +++ b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-2/captions.ts @@ -2,7 +2,7 @@ import { action } from '@ember/object'; import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import type { Summary } from '../../../utils/components/widgets/widget-2'; +import type { Summary } from 'test-app/utils/components/widgets/widget-2'; interface WidgetsWidget2CaptionsComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-2/stacked-chart.ts b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-2/stacked-chart.ts index 36a29a49..25635d95 100644 --- a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-2/stacked-chart.ts +++ b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-2/stacked-chart.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Data } from '../../../utils/components/widgets/widget-2'; +import type { Data } from 'test-app/utils/components/widgets/widget-2'; interface WidgetsWidget2StackedChartComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-3.ts b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-3.ts index eaf566de..a505aef7 100644 --- a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-3.ts +++ b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-3.ts @@ -1,8 +1,8 @@ import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; -import type { Concert } from '../../data/concert'; -import concertData from '../../data/concert'; +import type { Concert } from 'test-app/data/concert'; +import concertData from 'test-app/data/concert'; interface WidgetsWidget3ComponentSignature {} diff --git a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-3/tour-schedule.ts b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-3/tour-schedule.ts index c6b42fbb..6b0c39be 100644 --- a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-3/tour-schedule.ts +++ b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-3/tour-schedule.ts @@ -1,6 +1,6 @@ import templateOnlyComponent from '@ember/component/template-only'; -import type { Concert } from '../../../data/concert'; +import type { Concert } from 'test-app/data/concert'; export interface WidgetsWidget3TourScheduleComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts index 42fa0f38..6c4122d6 100644 --- a/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts +++ b/tests/fixtures/ember-container-query-typescript/output/test-app/app/components/widgets/widget-3/tour-schedule/responsive-image.ts @@ -3,8 +3,8 @@ import Component from '@glimmer/component'; import { tracked } from '@glimmer/tracking'; import type { Dimensions } from 'ember-container-query/modifiers/container-query'; -import type { Image } from '../../../../data/concert'; -import { findBestFittingImage } from '../../../../utils/components/widgets/widget-3'; +import type { Image } from 'test-app/data/concert'; +import { findBestFittingImage } from 'test-app/utils/components/widgets/widget-3'; interface WidgetsWidget3TourScheduleResponsiveImageComponentSignature { Args: { diff --git a/tests/fixtures/ember-container-query-typescript/output/test-app/app/modifiers/draw-stacked-chart.js b/tests/fixtures/ember-container-query-typescript/output/test-app/app/modifiers/draw-stacked-chart.js index 344c3284..c115e3da 100644 --- a/tests/fixtures/ember-container-query-typescript/output/test-app/app/modifiers/draw-stacked-chart.js +++ b/tests/fixtures/ember-container-query-typescript/output/test-app/app/modifiers/draw-stacked-chart.js @@ -11,7 +11,7 @@ import Modifier from 'ember-modifier'; import { COLOR_PALETTE, formatRevenue, -} from '../utils/components/widgets/widget-2'; +} from 'test-app/utils/components/widgets/widget-2'; const musicFormats = Object.keys(COLOR_PALETTE); const paletteColors = Object.values(COLOR_PALETTE); diff --git a/tests/fixtures/ember-container-query-typescript/output/test-app/app/routes/album.ts b/tests/fixtures/ember-container-query-typescript/output/test-app/app/routes/album.ts index 8756c059..ffed5dcc 100644 --- a/tests/fixtures/ember-container-query-typescript/output/test-app/app/routes/album.ts +++ b/tests/fixtures/ember-container-query-typescript/output/test-app/app/routes/album.ts @@ -1,8 +1,8 @@ import Route from '@ember/routing/route'; -import type { Album } from '../data/album'; -import albumData from '../data/album'; -import type { ModelFrom } from '../utils/routes'; +import type { Album } from 'test-app/data/album'; +import albumData from 'test-app/data/album'; +import type { ModelFrom } from 'test-app/utils/routes'; export default class AlbumRoute extends Route { model(): Album { diff --git a/tests/fixtures/ember-container-query-typescript/output/test-app/app/utils/components/widgets/widget-2.ts b/tests/fixtures/ember-container-query-typescript/output/test-app/app/utils/components/widgets/widget-2.ts index 83844733..b6e9961a 100644 --- a/tests/fixtures/ember-container-query-typescript/output/test-app/app/utils/components/widgets/widget-2.ts +++ b/tests/fixtures/ember-container-query-typescript/output/test-app/app/utils/components/widgets/widget-2.ts @@ -1,4 +1,4 @@ -import type { Revenue } from '../../../data/music-revenue'; +import type { Revenue } from 'test-app/data/music-revenue'; export type Data = { musicFormat: string; diff --git a/tests/fixtures/ember-container-query-typescript/output/test-app/app/utils/components/widgets/widget-3.ts b/tests/fixtures/ember-container-query-typescript/output/test-app/app/utils/components/widgets/widget-3.ts index 822cb8d6..602dc643 100644 --- a/tests/fixtures/ember-container-query-typescript/output/test-app/app/utils/components/widgets/widget-3.ts +++ b/tests/fixtures/ember-container-query-typescript/output/test-app/app/utils/components/widgets/widget-3.ts @@ -1,4 +1,4 @@ -import type { Image } from '../../../data/concert'; +import type { Image } from 'test-app/data/concert'; export type ContainerDimensions = { aspectRatio: number; diff --git a/tests/fixtures/new-v1-addon-customizations/output/demo-app/app/app.ts b/tests/fixtures/new-v1-addon-customizations/output/demo-app/app/app.ts index d8e2088b..07544e19 100644 --- a/tests/fixtures/new-v1-addon-customizations/output/demo-app/app/app.ts +++ b/tests/fixtures/new-v1-addon-customizations/output/demo-app/app/app.ts @@ -1,7 +1,7 @@ import Application from '@ember/application'; import Resolver from 'ember-resolver'; import loadInitializers from 'ember-load-initializers'; -import config from './config/environment'; +import config from 'demo-app-for-new-v1-addon/config/environment'; export default class App extends Application { modulePrefix = config.modulePrefix; diff --git a/tests/fixtures/new-v1-addon-customizations/output/demo-app/app/router.ts b/tests/fixtures/new-v1-addon-customizations/output/demo-app/app/router.ts index dc0d2ce8..919d9b03 100644 --- a/tests/fixtures/new-v1-addon-customizations/output/demo-app/app/router.ts +++ b/tests/fixtures/new-v1-addon-customizations/output/demo-app/app/router.ts @@ -1,5 +1,5 @@ import EmberRouter from '@ember/routing/router'; -import config from './config/environment'; +import config from 'demo-app-for-new-v1-addon/config/environment'; export default class Router extends EmberRouter { location = config.locationType; diff --git a/tests/fixtures/new-v1-addon-javascript/output/test-app/app/app.js b/tests/fixtures/new-v1-addon-javascript/output/test-app/app/app.js index d8e2088b..1ba93424 100644 --- a/tests/fixtures/new-v1-addon-javascript/output/test-app/app/app.js +++ b/tests/fixtures/new-v1-addon-javascript/output/test-app/app/app.js @@ -1,7 +1,7 @@ import Application from '@ember/application'; import Resolver from 'ember-resolver'; import loadInitializers from 'ember-load-initializers'; -import config from './config/environment'; +import config from 'test-app/config/environment'; export default class App extends Application { modulePrefix = config.modulePrefix; diff --git a/tests/fixtures/new-v1-addon-javascript/output/test-app/app/router.js b/tests/fixtures/new-v1-addon-javascript/output/test-app/app/router.js index 818c8d49..38a0b80a 100644 --- a/tests/fixtures/new-v1-addon-javascript/output/test-app/app/router.js +++ b/tests/fixtures/new-v1-addon-javascript/output/test-app/app/router.js @@ -1,5 +1,5 @@ import EmberRouter from '@ember/routing/router'; -import config from './config/environment'; +import config from 'test-app/config/environment'; export default class Router extends EmberRouter { location = config.locationType; diff --git a/tests/fixtures/new-v1-addon-npm/output/test-app/app/app.js b/tests/fixtures/new-v1-addon-npm/output/test-app/app/app.js index d8e2088b..1ba93424 100644 --- a/tests/fixtures/new-v1-addon-npm/output/test-app/app/app.js +++ b/tests/fixtures/new-v1-addon-npm/output/test-app/app/app.js @@ -1,7 +1,7 @@ import Application from '@ember/application'; import Resolver from 'ember-resolver'; import loadInitializers from 'ember-load-initializers'; -import config from './config/environment'; +import config from 'test-app/config/environment'; export default class App extends Application { modulePrefix = config.modulePrefix; diff --git a/tests/fixtures/new-v1-addon-npm/output/test-app/app/router.js b/tests/fixtures/new-v1-addon-npm/output/test-app/app/router.js index 818c8d49..38a0b80a 100644 --- a/tests/fixtures/new-v1-addon-npm/output/test-app/app/router.js +++ b/tests/fixtures/new-v1-addon-npm/output/test-app/app/router.js @@ -1,5 +1,5 @@ import EmberRouter from '@ember/routing/router'; -import config from './config/environment'; +import config from 'test-app/config/environment'; export default class Router extends EmberRouter { location = config.locationType; diff --git a/tests/fixtures/new-v1-addon-pnpm/output/test-app/app/app.js b/tests/fixtures/new-v1-addon-pnpm/output/test-app/app/app.js index d8e2088b..1ba93424 100644 --- a/tests/fixtures/new-v1-addon-pnpm/output/test-app/app/app.js +++ b/tests/fixtures/new-v1-addon-pnpm/output/test-app/app/app.js @@ -1,7 +1,7 @@ import Application from '@ember/application'; import Resolver from 'ember-resolver'; import loadInitializers from 'ember-load-initializers'; -import config from './config/environment'; +import config from 'test-app/config/environment'; export default class App extends Application { modulePrefix = config.modulePrefix; diff --git a/tests/fixtures/new-v1-addon-pnpm/output/test-app/app/router.js b/tests/fixtures/new-v1-addon-pnpm/output/test-app/app/router.js index 818c8d49..38a0b80a 100644 --- a/tests/fixtures/new-v1-addon-pnpm/output/test-app/app/router.js +++ b/tests/fixtures/new-v1-addon-pnpm/output/test-app/app/router.js @@ -1,5 +1,5 @@ import EmberRouter from '@ember/routing/router'; -import config from './config/environment'; +import config from 'test-app/config/environment'; export default class Router extends EmberRouter { location = config.locationType; diff --git a/tests/fixtures/new-v1-addon-typescript/output/test-app/app/app.ts b/tests/fixtures/new-v1-addon-typescript/output/test-app/app/app.ts index d8e2088b..1ba93424 100644 --- a/tests/fixtures/new-v1-addon-typescript/output/test-app/app/app.ts +++ b/tests/fixtures/new-v1-addon-typescript/output/test-app/app/app.ts @@ -1,7 +1,7 @@ import Application from '@ember/application'; import Resolver from 'ember-resolver'; import loadInitializers from 'ember-load-initializers'; -import config from './config/environment'; +import config from 'test-app/config/environment'; export default class App extends Application { modulePrefix = config.modulePrefix; diff --git a/tests/fixtures/new-v1-addon-typescript/output/test-app/app/router.ts b/tests/fixtures/new-v1-addon-typescript/output/test-app/app/router.ts index dc0d2ce8..c4a2c0ce 100644 --- a/tests/fixtures/new-v1-addon-typescript/output/test-app/app/router.ts +++ b/tests/fixtures/new-v1-addon-typescript/output/test-app/app/router.ts @@ -1,5 +1,5 @@ import EmberRouter from '@ember/routing/router'; -import config from './config/environment'; +import config from 'test-app/config/environment'; export default class Router extends EmberRouter { location = config.locationType; diff --git a/tests/fixtures/steps/use-relative-paths/customizations/input/addon/components/container-query.ts b/tests/fixtures/steps/use-relative-paths/customizations/input/addon/components/container-query.ts deleted file mode 100644 index c78e35d3..00000000 --- a/tests/fixtures/steps/use-relative-paths/customizations/input/addon/components/container-query.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; - -import type { - Dimensions, - Features, - IndexSignatureParameter, - QueryResults, -} from 'ember-container-query/modifiers/container-query'; - -interface ContainerQueryComponentSignature { - Args: { - dataAttributePrefix?: string; - debounce?: number; - features?: Features; - tagName?: string; - }; - Blocks: { - default: [ - { - dimensions?: Dimensions; - features?: QueryResults; - } - ]; - }; - Element: HTMLElement; -} - -export default class ContainerQueryComponent< - T extends IndexSignatureParameter -> extends Component> { - @tracked dimensions?: Dimensions; - @tracked queryResults?: QueryResults; - - // The dynamic tag is restricted to be immutable - tagName = this.args.tagName ?? 'div'; - - @action updateState({ - dimensions, - queryResults, - }: { - dimensions: Dimensions; - queryResults: QueryResults; - }): void { - this.dimensions = dimensions; - this.queryResults = queryResults; - } -} diff --git a/tests/fixtures/steps/use-relative-paths/customizations/input/tests/dummy/app/app.ts b/tests/fixtures/steps/use-relative-paths/customizations/input/tests/dummy/app/app.ts deleted file mode 100644 index 56497bd4..00000000 --- a/tests/fixtures/steps/use-relative-paths/customizations/input/tests/dummy/app/app.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Application from '@ember/application'; -import config from 'dummy/config/environment'; -import loadInitializers from 'ember-load-initializers'; -import Resolver from 'ember-resolver'; - -export default class App extends Application { - modulePrefix = config.modulePrefix; - podModulePrefix = config.podModulePrefix; - Resolver = Resolver; -} - -loadInitializers(App, config.modulePrefix); diff --git a/tests/fixtures/steps/use-relative-paths/customizations/input/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts b/tests/fixtures/steps/use-relative-paths/customizations/input/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts deleted file mode 100644 index 5c45314b..00000000 --- a/tests/fixtures/steps/use-relative-paths/customizations/input/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; -import type { Image } from 'dummy/data/concert'; -import { findBestFittingImage } from 'dummy/utils/components/widgets/widget-3'; -import type { Dimensions } from 'ember-container-query/modifiers/container-query'; - -interface WidgetsWidget3TourScheduleResponsiveImageComponentSignature { - Args: { - images: Array; - }; -} - -export default class WidgetsWidget3TourScheduleResponsiveImageComponent extends Component { - @tracked imageSource?: string; - - @action setImageSource({ dimensions }: { dimensions: Dimensions }): void { - const { images } = this.args; - - this.imageSource = findBestFittingImage(images, dimensions); - } -} - -declare module '@glint/environment-ember-loose/registry' { - export default interface Registry { - 'Widgets::Widget-3::TourSchedule::ResponsiveImage': typeof WidgetsWidget3TourScheduleResponsiveImageComponent; - } -} diff --git a/tests/fixtures/steps/use-relative-paths/customizations/output/addon/components/container-query.ts b/tests/fixtures/steps/use-relative-paths/customizations/output/addon/components/container-query.ts deleted file mode 100644 index 35bb9c14..00000000 --- a/tests/fixtures/steps/use-relative-paths/customizations/output/addon/components/container-query.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; - -import type { - Dimensions, - Features, - IndexSignatureParameter, - QueryResults, -} from '../modifiers/container-query'; - -interface ContainerQueryComponentSignature { - Args: { - dataAttributePrefix?: string; - debounce?: number; - features?: Features; - tagName?: string; - }; - Blocks: { - default: [ - { - dimensions?: Dimensions; - features?: QueryResults; - } - ]; - }; - Element: HTMLElement; -} - -export default class ContainerQueryComponent< - T extends IndexSignatureParameter -> extends Component> { - @tracked dimensions?: Dimensions; - @tracked queryResults?: QueryResults; - - // The dynamic tag is restricted to be immutable - tagName = this.args.tagName ?? 'div'; - - @action updateState({ - dimensions, - queryResults, - }: { - dimensions: Dimensions; - queryResults: QueryResults; - }): void { - this.dimensions = dimensions; - this.queryResults = queryResults; - } -} diff --git a/tests/fixtures/steps/use-relative-paths/customizations/output/tests/dummy/app/app.ts b/tests/fixtures/steps/use-relative-paths/customizations/output/tests/dummy/app/app.ts deleted file mode 100644 index 6f447f54..00000000 --- a/tests/fixtures/steps/use-relative-paths/customizations/output/tests/dummy/app/app.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Application from '@ember/application'; -import config from './config/environment'; -import loadInitializers from 'ember-load-initializers'; -import Resolver from 'ember-resolver'; - -export default class App extends Application { - modulePrefix = config.modulePrefix; - podModulePrefix = config.podModulePrefix; - Resolver = Resolver; -} - -loadInitializers(App, config.modulePrefix); diff --git a/tests/fixtures/steps/use-relative-paths/customizations/output/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts b/tests/fixtures/steps/use-relative-paths/customizations/output/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts deleted file mode 100644 index 969fe729..00000000 --- a/tests/fixtures/steps/use-relative-paths/customizations/output/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; -import type { Image } from '../../../../data/concert'; -import { findBestFittingImage } from '../../../../utils/components/widgets/widget-3'; -import type { Dimensions } from 'ember-container-query/modifiers/container-query'; - -interface WidgetsWidget3TourScheduleResponsiveImageComponentSignature { - Args: { - images: Array; - }; -} - -export default class WidgetsWidget3TourScheduleResponsiveImageComponent extends Component { - @tracked imageSource?: string; - - @action setImageSource({ dimensions }: { dimensions: Dimensions }): void { - const { images } = this.args; - - this.imageSource = findBestFittingImage(images, dimensions); - } -} - -declare module '@glint/environment-ember-loose/registry' { - export default interface Registry { - 'Widgets::Widget-3::TourSchedule::ResponsiveImage': typeof WidgetsWidget3TourScheduleResponsiveImageComponent; - } -} diff --git a/tests/fixtures/steps/use-relative-paths/javascript/input/addon/components/container-query.js b/tests/fixtures/steps/use-relative-paths/javascript/input/addon/components/container-query.js deleted file mode 100644 index af8ba4fc..00000000 --- a/tests/fixtures/steps/use-relative-paths/javascript/input/addon/components/container-query.js +++ /dev/null @@ -1,16 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; - -export default class ContainerQueryComponent extends Component { - @tracked dimensions; - @tracked queryResults; - - // The dynamic tag is restricted to be immutable - tagName = this.args.tagName ?? 'div'; - - @action updateState({ dimensions, queryResults }) { - this.dimensions = dimensions; - this.queryResults = queryResults; - } -} diff --git a/tests/fixtures/steps/use-relative-paths/javascript/input/tests/dummy/app/app.js b/tests/fixtures/steps/use-relative-paths/javascript/input/tests/dummy/app/app.js deleted file mode 100644 index 56497bd4..00000000 --- a/tests/fixtures/steps/use-relative-paths/javascript/input/tests/dummy/app/app.js +++ /dev/null @@ -1,12 +0,0 @@ -import Application from '@ember/application'; -import config from 'dummy/config/environment'; -import loadInitializers from 'ember-load-initializers'; -import Resolver from 'ember-resolver'; - -export default class App extends Application { - modulePrefix = config.modulePrefix; - podModulePrefix = config.podModulePrefix; - Resolver = Resolver; -} - -loadInitializers(App, config.modulePrefix); diff --git a/tests/fixtures/steps/use-relative-paths/javascript/input/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.js b/tests/fixtures/steps/use-relative-paths/javascript/input/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.js deleted file mode 100644 index fe4bedba..00000000 --- a/tests/fixtures/steps/use-relative-paths/javascript/input/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.js +++ /dev/null @@ -1,14 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; -import { findBestFittingImage } from 'dummy/utils/components/widgets/widget-3'; - -export default class WidgetsWidget3TourScheduleResponsiveImageComponent extends Component { - @tracked imageSource; - - @action setImageSource({ dimensions }) { - const { images } = this.args; - - this.imageSource = findBestFittingImage(images, dimensions); - } -} diff --git a/tests/fixtures/steps/use-relative-paths/javascript/output/addon/components/container-query.js b/tests/fixtures/steps/use-relative-paths/javascript/output/addon/components/container-query.js deleted file mode 100644 index af8ba4fc..00000000 --- a/tests/fixtures/steps/use-relative-paths/javascript/output/addon/components/container-query.js +++ /dev/null @@ -1,16 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; - -export default class ContainerQueryComponent extends Component { - @tracked dimensions; - @tracked queryResults; - - // The dynamic tag is restricted to be immutable - tagName = this.args.tagName ?? 'div'; - - @action updateState({ dimensions, queryResults }) { - this.dimensions = dimensions; - this.queryResults = queryResults; - } -} diff --git a/tests/fixtures/steps/use-relative-paths/javascript/output/tests/dummy/app/app.js b/tests/fixtures/steps/use-relative-paths/javascript/output/tests/dummy/app/app.js deleted file mode 100644 index 6f447f54..00000000 --- a/tests/fixtures/steps/use-relative-paths/javascript/output/tests/dummy/app/app.js +++ /dev/null @@ -1,12 +0,0 @@ -import Application from '@ember/application'; -import config from './config/environment'; -import loadInitializers from 'ember-load-initializers'; -import Resolver from 'ember-resolver'; - -export default class App extends Application { - modulePrefix = config.modulePrefix; - podModulePrefix = config.podModulePrefix; - Resolver = Resolver; -} - -loadInitializers(App, config.modulePrefix); diff --git a/tests/fixtures/steps/use-relative-paths/javascript/output/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.js b/tests/fixtures/steps/use-relative-paths/javascript/output/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.js deleted file mode 100644 index 28c65b9b..00000000 --- a/tests/fixtures/steps/use-relative-paths/javascript/output/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.js +++ /dev/null @@ -1,14 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; -import { findBestFittingImage } from '../../../../utils/components/widgets/widget-3'; - -export default class WidgetsWidget3TourScheduleResponsiveImageComponent extends Component { - @tracked imageSource; - - @action setImageSource({ dimensions }) { - const { images } = this.args; - - this.imageSource = findBestFittingImage(images, dimensions); - } -} diff --git a/tests/fixtures/steps/use-relative-paths/scoped/input/addon/components/container-query.ts b/tests/fixtures/steps/use-relative-paths/scoped/input/addon/components/container-query.ts deleted file mode 100644 index 1d0de29f..00000000 --- a/tests/fixtures/steps/use-relative-paths/scoped/input/addon/components/container-query.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; - -import type { - Dimensions, - Features, - IndexSignatureParameter, - QueryResults, -} from '@ijlee2/ember-container-query/modifiers/container-query'; - -interface ContainerQueryComponentSignature { - Args: { - dataAttributePrefix?: string; - debounce?: number; - features?: Features; - tagName?: string; - }; - Blocks: { - default: [ - { - dimensions?: Dimensions; - features?: QueryResults; - } - ]; - }; - Element: HTMLElement; -} - -export default class ContainerQueryComponent< - T extends IndexSignatureParameter -> extends Component> { - @tracked dimensions?: Dimensions; - @tracked queryResults?: QueryResults; - - // The dynamic tag is restricted to be immutable - tagName = this.args.tagName ?? 'div'; - - @action updateState({ - dimensions, - queryResults, - }: { - dimensions: Dimensions; - queryResults: QueryResults; - }): void { - this.dimensions = dimensions; - this.queryResults = queryResults; - } -} diff --git a/tests/fixtures/steps/use-relative-paths/scoped/input/tests/dummy/app/app.ts b/tests/fixtures/steps/use-relative-paths/scoped/input/tests/dummy/app/app.ts deleted file mode 100644 index 56497bd4..00000000 --- a/tests/fixtures/steps/use-relative-paths/scoped/input/tests/dummy/app/app.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Application from '@ember/application'; -import config from 'dummy/config/environment'; -import loadInitializers from 'ember-load-initializers'; -import Resolver from 'ember-resolver'; - -export default class App extends Application { - modulePrefix = config.modulePrefix; - podModulePrefix = config.podModulePrefix; - Resolver = Resolver; -} - -loadInitializers(App, config.modulePrefix); diff --git a/tests/fixtures/steps/use-relative-paths/scoped/input/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts b/tests/fixtures/steps/use-relative-paths/scoped/input/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts deleted file mode 100644 index 796a6ebc..00000000 --- a/tests/fixtures/steps/use-relative-paths/scoped/input/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; -import type { Image } from 'dummy/data/concert'; -import { findBestFittingImage } from 'dummy/utils/components/widgets/widget-3'; -import type { Dimensions } from '@ijlee2/ember-container-query/modifiers/container-query'; - -interface WidgetsWidget3TourScheduleResponsiveImageComponentSignature { - Args: { - images: Array; - }; -} - -export default class WidgetsWidget3TourScheduleResponsiveImageComponent extends Component { - @tracked imageSource?: string; - - @action setImageSource({ dimensions }: { dimensions: Dimensions }): void { - const { images } = this.args; - - this.imageSource = findBestFittingImage(images, dimensions); - } -} - -declare module '@glint/environment-ember-loose/registry' { - export default interface Registry { - 'Widgets::Widget-3::TourSchedule::ResponsiveImage': typeof WidgetsWidget3TourScheduleResponsiveImageComponent; - } -} diff --git a/tests/fixtures/steps/use-relative-paths/scoped/output/addon/components/container-query.ts b/tests/fixtures/steps/use-relative-paths/scoped/output/addon/components/container-query.ts deleted file mode 100644 index 35bb9c14..00000000 --- a/tests/fixtures/steps/use-relative-paths/scoped/output/addon/components/container-query.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; - -import type { - Dimensions, - Features, - IndexSignatureParameter, - QueryResults, -} from '../modifiers/container-query'; - -interface ContainerQueryComponentSignature { - Args: { - dataAttributePrefix?: string; - debounce?: number; - features?: Features; - tagName?: string; - }; - Blocks: { - default: [ - { - dimensions?: Dimensions; - features?: QueryResults; - } - ]; - }; - Element: HTMLElement; -} - -export default class ContainerQueryComponent< - T extends IndexSignatureParameter -> extends Component> { - @tracked dimensions?: Dimensions; - @tracked queryResults?: QueryResults; - - // The dynamic tag is restricted to be immutable - tagName = this.args.tagName ?? 'div'; - - @action updateState({ - dimensions, - queryResults, - }: { - dimensions: Dimensions; - queryResults: QueryResults; - }): void { - this.dimensions = dimensions; - this.queryResults = queryResults; - } -} diff --git a/tests/fixtures/steps/use-relative-paths/scoped/output/tests/dummy/app/app.ts b/tests/fixtures/steps/use-relative-paths/scoped/output/tests/dummy/app/app.ts deleted file mode 100644 index 6f447f54..00000000 --- a/tests/fixtures/steps/use-relative-paths/scoped/output/tests/dummy/app/app.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Application from '@ember/application'; -import config from './config/environment'; -import loadInitializers from 'ember-load-initializers'; -import Resolver from 'ember-resolver'; - -export default class App extends Application { - modulePrefix = config.modulePrefix; - podModulePrefix = config.podModulePrefix; - Resolver = Resolver; -} - -loadInitializers(App, config.modulePrefix); diff --git a/tests/fixtures/steps/use-relative-paths/scoped/output/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts b/tests/fixtures/steps/use-relative-paths/scoped/output/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts deleted file mode 100644 index e1ad2b52..00000000 --- a/tests/fixtures/steps/use-relative-paths/scoped/output/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; -import type { Image } from '../../../../data/concert'; -import { findBestFittingImage } from '../../../../utils/components/widgets/widget-3'; -import type { Dimensions } from '@ijlee2/ember-container-query/modifiers/container-query'; - -interface WidgetsWidget3TourScheduleResponsiveImageComponentSignature { - Args: { - images: Array; - }; -} - -export default class WidgetsWidget3TourScheduleResponsiveImageComponent extends Component { - @tracked imageSource?: string; - - @action setImageSource({ dimensions }: { dimensions: Dimensions }): void { - const { images } = this.args; - - this.imageSource = findBestFittingImage(images, dimensions); - } -} - -declare module '@glint/environment-ember-loose/registry' { - export default interface Registry { - 'Widgets::Widget-3::TourSchedule::ResponsiveImage': typeof WidgetsWidget3TourScheduleResponsiveImageComponent; - } -} diff --git a/tests/fixtures/steps/use-relative-paths/typescript/input/addon/components/container-query.ts b/tests/fixtures/steps/use-relative-paths/typescript/input/addon/components/container-query.ts deleted file mode 100644 index c78e35d3..00000000 --- a/tests/fixtures/steps/use-relative-paths/typescript/input/addon/components/container-query.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; - -import type { - Dimensions, - Features, - IndexSignatureParameter, - QueryResults, -} from 'ember-container-query/modifiers/container-query'; - -interface ContainerQueryComponentSignature { - Args: { - dataAttributePrefix?: string; - debounce?: number; - features?: Features; - tagName?: string; - }; - Blocks: { - default: [ - { - dimensions?: Dimensions; - features?: QueryResults; - } - ]; - }; - Element: HTMLElement; -} - -export default class ContainerQueryComponent< - T extends IndexSignatureParameter -> extends Component> { - @tracked dimensions?: Dimensions; - @tracked queryResults?: QueryResults; - - // The dynamic tag is restricted to be immutable - tagName = this.args.tagName ?? 'div'; - - @action updateState({ - dimensions, - queryResults, - }: { - dimensions: Dimensions; - queryResults: QueryResults; - }): void { - this.dimensions = dimensions; - this.queryResults = queryResults; - } -} diff --git a/tests/fixtures/steps/use-relative-paths/typescript/input/tests/dummy/app/app.ts b/tests/fixtures/steps/use-relative-paths/typescript/input/tests/dummy/app/app.ts deleted file mode 100644 index 56497bd4..00000000 --- a/tests/fixtures/steps/use-relative-paths/typescript/input/tests/dummy/app/app.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Application from '@ember/application'; -import config from 'dummy/config/environment'; -import loadInitializers from 'ember-load-initializers'; -import Resolver from 'ember-resolver'; - -export default class App extends Application { - modulePrefix = config.modulePrefix; - podModulePrefix = config.podModulePrefix; - Resolver = Resolver; -} - -loadInitializers(App, config.modulePrefix); diff --git a/tests/fixtures/steps/use-relative-paths/typescript/input/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts b/tests/fixtures/steps/use-relative-paths/typescript/input/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts deleted file mode 100644 index 5c45314b..00000000 --- a/tests/fixtures/steps/use-relative-paths/typescript/input/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; -import type { Image } from 'dummy/data/concert'; -import { findBestFittingImage } from 'dummy/utils/components/widgets/widget-3'; -import type { Dimensions } from 'ember-container-query/modifiers/container-query'; - -interface WidgetsWidget3TourScheduleResponsiveImageComponentSignature { - Args: { - images: Array; - }; -} - -export default class WidgetsWidget3TourScheduleResponsiveImageComponent extends Component { - @tracked imageSource?: string; - - @action setImageSource({ dimensions }: { dimensions: Dimensions }): void { - const { images } = this.args; - - this.imageSource = findBestFittingImage(images, dimensions); - } -} - -declare module '@glint/environment-ember-loose/registry' { - export default interface Registry { - 'Widgets::Widget-3::TourSchedule::ResponsiveImage': typeof WidgetsWidget3TourScheduleResponsiveImageComponent; - } -} diff --git a/tests/fixtures/steps/use-relative-paths/typescript/output/addon/components/container-query.ts b/tests/fixtures/steps/use-relative-paths/typescript/output/addon/components/container-query.ts deleted file mode 100644 index 35bb9c14..00000000 --- a/tests/fixtures/steps/use-relative-paths/typescript/output/addon/components/container-query.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; - -import type { - Dimensions, - Features, - IndexSignatureParameter, - QueryResults, -} from '../modifiers/container-query'; - -interface ContainerQueryComponentSignature { - Args: { - dataAttributePrefix?: string; - debounce?: number; - features?: Features; - tagName?: string; - }; - Blocks: { - default: [ - { - dimensions?: Dimensions; - features?: QueryResults; - } - ]; - }; - Element: HTMLElement; -} - -export default class ContainerQueryComponent< - T extends IndexSignatureParameter -> extends Component> { - @tracked dimensions?: Dimensions; - @tracked queryResults?: QueryResults; - - // The dynamic tag is restricted to be immutable - tagName = this.args.tagName ?? 'div'; - - @action updateState({ - dimensions, - queryResults, - }: { - dimensions: Dimensions; - queryResults: QueryResults; - }): void { - this.dimensions = dimensions; - this.queryResults = queryResults; - } -} diff --git a/tests/fixtures/steps/use-relative-paths/typescript/output/tests/dummy/app/app.ts b/tests/fixtures/steps/use-relative-paths/typescript/output/tests/dummy/app/app.ts deleted file mode 100644 index 6f447f54..00000000 --- a/tests/fixtures/steps/use-relative-paths/typescript/output/tests/dummy/app/app.ts +++ /dev/null @@ -1,12 +0,0 @@ -import Application from '@ember/application'; -import config from './config/environment'; -import loadInitializers from 'ember-load-initializers'; -import Resolver from 'ember-resolver'; - -export default class App extends Application { - modulePrefix = config.modulePrefix; - podModulePrefix = config.podModulePrefix; - Resolver = Resolver; -} - -loadInitializers(App, config.modulePrefix); diff --git a/tests/fixtures/steps/use-relative-paths/typescript/output/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts b/tests/fixtures/steps/use-relative-paths/typescript/output/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts deleted file mode 100644 index 969fe729..00000000 --- a/tests/fixtures/steps/use-relative-paths/typescript/output/tests/dummy/app/components/widgets/widget-3/tour-schedule/responsive-image.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { action } from '@ember/object'; -import Component from '@glimmer/component'; -import { tracked } from '@glimmer/tracking'; -import type { Image } from '../../../../data/concert'; -import { findBestFittingImage } from '../../../../utils/components/widgets/widget-3'; -import type { Dimensions } from 'ember-container-query/modifiers/container-query'; - -interface WidgetsWidget3TourScheduleResponsiveImageComponentSignature { - Args: { - images: Array; - }; -} - -export default class WidgetsWidget3TourScheduleResponsiveImageComponent extends Component { - @tracked imageSource?: string; - - @action setImageSource({ dimensions }: { dimensions: Dimensions }): void { - const { images } = this.args; - - this.imageSource = findBestFittingImage(images, dimensions); - } -} - -declare module '@glint/environment-ember-loose/registry' { - export default interface Registry { - 'Widgets::Widget-3::TourSchedule::ResponsiveImage': typeof WidgetsWidget3TourScheduleResponsiveImageComponent; - } -} diff --git a/tests/migration/ember-addon/steps/use-relative-paths/customizations.test.js b/tests/migration/ember-addon/steps/use-relative-paths/customizations.test.js deleted file mode 100644 index 4538655f..00000000 --- a/tests/migration/ember-addon/steps/use-relative-paths/customizations.test.js +++ /dev/null @@ -1,27 +0,0 @@ -import { useRelativePaths } from '../../../../../src/migration/ember-addon/steps/index.js'; -import { - codemodOptions, - options, -} from '../../../../helpers/shared-test-setups/customizations.js'; -import { - assertFixture, - convertFixtureToJson, - loadFixture, - test, -} from '../../../../helpers/testing.js'; - -test('migration | ember-addon | steps | use-relative-paths > customizations', function () { - const inputProject = convertFixtureToJson( - 'steps/use-relative-paths/customizations/input' - ); - - const outputProject = convertFixtureToJson( - 'steps/use-relative-paths/customizations/output' - ); - - loadFixture(inputProject, codemodOptions); - - useRelativePaths(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/tests/migration/ember-addon/steps/use-relative-paths/edge-case-folders-are-missing.test.js b/tests/migration/ember-addon/steps/use-relative-paths/edge-case-folders-are-missing.test.js deleted file mode 100644 index dbdafe86..00000000 --- a/tests/migration/ember-addon/steps/use-relative-paths/edge-case-folders-are-missing.test.js +++ /dev/null @@ -1,22 +0,0 @@ -import { useRelativePaths } from '../../../../../src/migration/ember-addon/steps/index.js'; -import { - codemodOptions, - options, -} from '../../../../helpers/shared-test-setups/customizations.js'; -import { - assertFixture, - loadFixture, - test, -} from '../../../../helpers/testing.js'; - -test('migration | ember-addon | steps | use-relative-paths > edge case (folders are missing)', function () { - const inputProject = {}; - - const outputProject = {}; - - loadFixture(inputProject, codemodOptions); - - useRelativePaths(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/tests/migration/ember-addon/steps/use-relative-paths/idempotency.test.js b/tests/migration/ember-addon/steps/use-relative-paths/idempotency.test.js deleted file mode 100644 index 1bb19fcc..00000000 --- a/tests/migration/ember-addon/steps/use-relative-paths/idempotency.test.js +++ /dev/null @@ -1,27 +0,0 @@ -import { useRelativePaths } from '../../../../../src/migration/ember-addon/steps/index.js'; -import { - codemodOptions, - options, -} from '../../../../helpers/shared-test-setups/typescript.js'; -import { - assertFixture, - convertFixtureToJson, - loadFixture, - test, -} from '../../../../helpers/testing.js'; - -test('migration | ember-addon | steps | use-relative-paths > idempotency', function () { - const inputProject = convertFixtureToJson( - 'steps/use-relative-paths/typescript/output' - ); - - const outputProject = convertFixtureToJson( - 'steps/use-relative-paths/typescript/output' - ); - - loadFixture(inputProject, codemodOptions); - - useRelativePaths(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/tests/migration/ember-addon/steps/use-relative-paths/javascript.test.js b/tests/migration/ember-addon/steps/use-relative-paths/javascript.test.js deleted file mode 100644 index 3e277abf..00000000 --- a/tests/migration/ember-addon/steps/use-relative-paths/javascript.test.js +++ /dev/null @@ -1,27 +0,0 @@ -import { useRelativePaths } from '../../../../../src/migration/ember-addon/steps/index.js'; -import { - codemodOptions, - options, -} from '../../../../helpers/shared-test-setups/javascript.js'; -import { - assertFixture, - convertFixtureToJson, - loadFixture, - test, -} from '../../../../helpers/testing.js'; - -test('migration | ember-addon | steps | use-relative-paths > javascript', function () { - const inputProject = convertFixtureToJson( - 'steps/use-relative-paths/javascript/input' - ); - - const outputProject = convertFixtureToJson( - 'steps/use-relative-paths/javascript/output' - ); - - loadFixture(inputProject, codemodOptions); - - useRelativePaths(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/tests/migration/ember-addon/steps/use-relative-paths/scoped.test.js b/tests/migration/ember-addon/steps/use-relative-paths/scoped.test.js deleted file mode 100644 index 1602f8eb..00000000 --- a/tests/migration/ember-addon/steps/use-relative-paths/scoped.test.js +++ /dev/null @@ -1,27 +0,0 @@ -import { useRelativePaths } from '../../../../../src/migration/ember-addon/steps/index.js'; -import { - codemodOptions, - options, -} from '../../../../helpers/shared-test-setups/scoped.js'; -import { - assertFixture, - convertFixtureToJson, - loadFixture, - test, -} from '../../../../helpers/testing.js'; - -test('migration | ember-addon | steps | use-relative-paths > scoped', function () { - const inputProject = convertFixtureToJson( - 'steps/use-relative-paths/scoped/input' - ); - - const outputProject = convertFixtureToJson( - 'steps/use-relative-paths/scoped/output' - ); - - loadFixture(inputProject, codemodOptions); - - useRelativePaths(options); - - assertFixture(outputProject, codemodOptions); -}); diff --git a/tests/migration/ember-addon/steps/use-relative-paths/typescript.test.js b/tests/migration/ember-addon/steps/use-relative-paths/typescript.test.js deleted file mode 100644 index 12e9c729..00000000 --- a/tests/migration/ember-addon/steps/use-relative-paths/typescript.test.js +++ /dev/null @@ -1,27 +0,0 @@ -import { useRelativePaths } from '../../../../../src/migration/ember-addon/steps/index.js'; -import { - codemodOptions, - options, -} from '../../../../helpers/shared-test-setups/typescript.js'; -import { - assertFixture, - convertFixtureToJson, - loadFixture, - test, -} from '../../../../helpers/testing.js'; - -test('migration | ember-addon | steps | use-relative-paths > typescript', function () { - const inputProject = convertFixtureToJson( - 'steps/use-relative-paths/typescript/input' - ); - - const outputProject = convertFixtureToJson( - 'steps/use-relative-paths/typescript/output' - ); - - loadFixture(inputProject, codemodOptions); - - useRelativePaths(options); - - assertFixture(outputProject, codemodOptions); -});