Skip to content

Commit

Permalink
chore: Update relative references to internal packages to @packages r…
Browse files Browse the repository at this point in the history
…eferences (#30984)

* Update relative references to frontend-shared to packages/frontend-shared

* fix typo

* Let's not reference our own package...
  • Loading branch information
jennifer-shehane authored Feb 3, 2025
1 parent 239f3d0 commit fdb58d4
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion packages/app/cypress/component/support/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference path="../../../../frontend-shared/cypress/support/component.ts" />
import '../../../../frontend-shared/cypress/support/component.ts'
import '@packages/frontend-shared/cypress/support/component.ts'
import { registerMountFn } from '@packages/frontend-shared/cypress/support/common'

import { createRouter } from '../../../src/router/router'
Expand Down
6 changes: 3 additions & 3 deletions packages/app/src/components/SpecPatternModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
>
<SpecPatterns
:gql="props.gql"
class="border-px rounded border-gray-100"
class="border-gray-100 rounded border-px"
/>
</div>
<StandardModalFooter
Expand Down Expand Up @@ -52,8 +52,8 @@ import { useI18n } from '@cy/i18n'
import type { SpecPatternModalFragment } from '../generated/graphql'
import { gql } from '@urql/core'
import StandardModalFooter from '@cy/components/StandardModalFooter.vue'
import Button from '../../../frontend-shared/src/components/Button.vue'
import OpenConfigFileInIDE from '../../../frontend-shared/src/gql-components/OpenConfigFileInIDE.vue'
import Button from '@packages/frontend-shared/src/components/Button.vue'
import OpenConfigFileInIDE from '@packages/frontend-shared/src/gql-components/OpenConfigFileInIDE.vue'
gql`
fragment SpecPatternModal on CurrentProject {
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/runner/automation/AutomationMissing.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ import type { AutomationMissingFragment } from '../../generated/graphql'
import SpecRunnerDropdown from '../SpecRunnerDropdown.vue'
import { ref } from 'vue'
import { allBrowsersIcons } from '@packages/frontend-shared/src/assets/browserLogos'
import Alert from '../../../../frontend-shared/src/components/Alert.vue'
import Alert from '@packages/frontend-shared/src/components/Alert.vue'
import ErrorOutlineIcon from '~icons/cy/status-errored-outline_x16.svg'
const { t } = useI18n()
Expand Down
8 changes: 4 additions & 4 deletions packages/app/src/runner/studio/StudioSaveModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{{ t('runner.studio.saveTest') }}
</template>

<div class="max-w-sm w-sm py-5 px-5">
<div class="max-w-sm px-5 py-5 w-sm">
<form
class="flex items-center justify-evenly"
@submit="submit"
Expand All @@ -32,10 +32,10 @@
:disabled="!testName"
>
<div class="rounded-md flex bg-indigo-500 py-1.5 px-1 align-center hover:bg-indigo-400">
<div class="ml-2 pt-1">
<div class="pt-1 ml-2">
<i-cy-circle-check_x16 class="fill-gray-200 stroke-gray-1000" />
</div>
<div class="font-medium mx-2 text-white">
<div class="mx-2 font-medium text-white">
{{ t('runner.studio.saveTestButton') }}
</div>
</div>
Expand All @@ -50,7 +50,7 @@
import { useI18n } from '@cy/i18n'
import StandardModal from '@packages/frontend-shared/src/components/StandardModal.vue'
import { ref } from 'vue'
import Input from '../../../../frontend-shared/src/components/Input.vue'
import Input from '@packages/frontend-shared/src/components/Input.vue'
import { useStudioStore } from '../../store/studio-store'
const { t } = useI18n()
Expand Down
4 changes: 2 additions & 2 deletions packages/app/src/runs/RunsErrorRenderer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
>
<CodeTag
bg
class="bg-purple-50 text-purple-500"
class="text-purple-500 bg-purple-50"
>
projectId: "{{ currentProject?.projectId }}"
</CodeTag>
Expand Down Expand Up @@ -69,7 +69,7 @@ import type { RunsErrorRendererFragment } from '../generated/graphql'
import ConnectIcon from '~icons/cy/chain-link_x16.svg'
import SendIcon from '~icons/cy/paper-airplane_x16.svg'
import { useI18n } from '@cy/i18n'
import CodeTag from '../../../frontend-shared/src/components/CodeTag.vue'
import CodeTag from '@packages/frontend-shared/src/components/CodeTag.vue'
import ExternalLink from '@cy/gql-components/ExternalLink.vue'
import { useUserProjectStatusStore } from '@packages/frontend-shared/src/store/user-project-status-store'
Expand Down
2 changes: 1 addition & 1 deletion packages/app/src/settings/project/Experiments.cy.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ExperimentsFragmentDoc } from '../../generated/graphql-test'
import config from '../../../../frontend-shared/cypress/fixtures/config.json'
import config from '@packages/frontend-shared/cypress/fixtures/config.json'
import Experiments from './Experiments.vue'
import { defaultMessages } from '@cy/i18n'

Expand Down
2 changes: 1 addition & 1 deletion packages/app/vite.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { makeConfig } from '../frontend-shared/vite.config.mjs'
import { makeConfig } from '@packages/frontend-shared/vite.config.mjs'
import Layouts from 'vite-plugin-vue-layouts'
import Pages from 'vite-plugin-pages'
import Copy from 'rollup-plugin-copy'
Expand Down
2 changes: 1 addition & 1 deletion packages/launchpad/cypress/component/support/commands.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
/// <reference path="../../../../frontend-shared/cypress/support/component.ts" />
import '../../../../frontend-shared/cypress/support/component.ts'
import '@packages/frontend-shared/cypress/support/component.ts'
2 changes: 1 addition & 1 deletion packages/launchpad/cypress/e2e/scaffold-project.cy.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { SnapshotScaffoldTestResult } from '@packages/launchpad/cypress/tasks/snapshotsScaffold'
import type { SnapshotScaffoldTestResult } from '../tasks/snapshotsScaffold'

// The tests in this file take an existing project without Cypress Configured
// and add Cypress using the launchpad setup wizard.
Expand Down
2 changes: 1 addition & 1 deletion packages/launchpad/cypress/e2e/support/e2eSupport.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// <reference path="../../../../frontend-shared/cypress/support/e2e.ts" />
require('../../../../frontend-shared/cypress/support/e2e')
require('@packages/frontend-shared/cypress/support/e2e')

require('./dropFileWithPath')
require('./containsPath')
Expand Down
2 changes: 1 addition & 1 deletion packages/launchpad/src/migration/ConvertConfigFile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
import { computed } from 'vue'
import CodeTag from '@cy/components/CodeTag.vue'
import BeforeAfter from './fragments/BeforeAfter.vue'
import ShikiHighlight from '../../../frontend-shared/src/components/ShikiHighlight.vue'
import ShikiHighlight from '@packages/frontend-shared/src/components/ShikiHighlight.vue'
import MigrationList from './fragments/MigrationList.vue'
import MigrationTitle from './fragments/MigrationTitle.vue'
import { useI18n } from '@cy/i18n'
Expand Down
2 changes: 1 addition & 1 deletion packages/launchpad/vite.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import ViteConfig from '../frontend-shared/vite.config.mjs'
import ViteConfig from '@packages/frontend-shared/vite.config.mjs'

export default ViteConfig

5 comments on commit fdb58d4

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on fdb58d4 Feb 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/14.0.2/linux-x64/develop-fdb58d43f15f63b72ca565242108aa332b1f904e/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on fdb58d4 Feb 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/14.0.2/linux-arm64/develop-fdb58d43f15f63b72ca565242108aa332b1f904e/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on fdb58d4 Feb 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the win32 x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/14.0.2/win32-x64/develop-fdb58d43f15f63b72ca565242108aa332b1f904e/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on fdb58d4 Feb 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin arm64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/14.0.2/darwin-arm64/develop-fdb58d43f15f63b72ca565242108aa332b1f904e/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on fdb58d4 Feb 3, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release build at https://on.cypress.io/advanced-installation#Install-pre-release-version

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/14.0.2/darwin-x64/develop-fdb58d43f15f63b72ca565242108aa332b1f904e/cypress.tgz

Please sign in to comment.