Skip to content

Commit 6a098ce

Browse files
414 - Adds baseUrl and path alias to the wfo-ui and wfo-ui-surf and fixes the imports for _app.tsx
1 parent 2bda4c9 commit 6a098ce

File tree

5 files changed

+17
-9
lines changed

5 files changed

+17
-9
lines changed

.prettierrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"trailingComma": "all",
44
"bracketSpacing": true,
55
"importOrder": [
6-
"^react", "^react-native", "^[a-zA-Z]", "^@?\\w", "^[./]"
6+
"^react", "^react-native", "^[a-zA-Z]", "^@?\\w", "^@/?\\w", "^[./]"
77
],
88
"importOrderSeparation": true,
99
"importOrderSortSpecifiers": true,

apps/wfo-ui-surf/pages/_app.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ import {
2525
defaultOrchestratorTheme,
2626
} from '@orchestrator-ui/orchestrator-ui-components';
2727

28-
import { getAppLogo } from '../components/AppLogo/AppLogo';
28+
import { getAppLogo } from '@/components/AppLogo/AppLogo';
2929
import {
3030
getInitialOrchestratorConfig,
3131
getInitialSurfConfig,
32-
} from '../configuration';
33-
import { PATH_SERVICE_TICKETS } from '../constants-surf';
34-
import { SurfConfig, SurfConfigProvider } from '../contexts/surfConfigContext';
35-
import { TranslationsProvider } from '../translations/translationsProvider';
32+
} from '@/configuration';
33+
import { PATH_SERVICE_TICKETS } from '@/constants-surf';
34+
import { SurfConfig, SurfConfigProvider } from '@/contexts/surfConfigContext';
35+
import { TranslationsProvider } from '@/translations/translationsProvider';
3636

3737
type AppOwnProps = {
3838
orchestratorConfig: OrchestratorConfig;

apps/wfo-ui-surf/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"extends": "@orchestrator-ui/tsconfig/nextjs.json",
33
"compilerOptions": {
4+
"baseUrl": ".",
5+
"paths": {
6+
"@/*": ["./*"]
7+
},
48
"plugins": [
59
{
610
"name": "next"

apps/wfo-ui/pages/_app.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ import {
2424
defaultOrchestratorTheme,
2525
} from '@orchestrator-ui/orchestrator-ui-components';
2626

27-
import { getAppLogo } from '../components/AppLogo/AppLogo';
28-
import { getInitialOrchestratorConfig } from '../configuration';
29-
import { TranslationsProvider } from '../translations/translationsProvider';
27+
import { getAppLogo } from '@/components/AppLogo/AppLogo';
28+
import { getInitialOrchestratorConfig } from '@/configuration';
29+
import { TranslationsProvider } from '@/translations/translationsProvider';
3030

3131
type AppOwnProps = { orchestratorConfig: OrchestratorConfig };
3232

apps/wfo-ui/tsconfig.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
{
22
"extends": "@orchestrator-ui/tsconfig/nextjs.json",
33
"compilerOptions": {
4+
"baseUrl": ".",
5+
"paths": {
6+
"@/*": ["./*"]
7+
},
48
"plugins": [
59
{
610
"name": "next"

0 commit comments

Comments
 (0)