Skip to content

Commit 82f47e8

Browse files
authored
Merge pull request #341 from commercelayer/update-tsconfig
Update app-elements and tsconfig (moduleResolution)
2 parents 5797f8e + a90ce76 commit 82f47e8

109 files changed

Lines changed: 225 additions & 200 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/bundles/i18n.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import type en from '@commercelayer/app-elements/dist/locales/en'
1+
import type { Translation } from "@commercelayer/app-elements"
22

33
declare module 'i18next' {
44
interface CustomTypeOptions {
55
defaultNS: 'translation'
66
resources: {
7-
translation: typeof en
7+
translation: Translation
88
}
99
}
1010
}

apps/bundles/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"test:watch": "vitest --passWithNoTests"
1515
},
1616
"dependencies": {
17-
"@commercelayer/app-elements": "6.2.0",
17+
"@commercelayer/app-elements": "6.2.2",
1818
"@commercelayer/sdk": "6.46.0",
1919
"@hookform/resolvers": "^3.10.0",
2020
"dashboard-apps-common": "workspace:*",

apps/bundles/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"strict": true,
1919
"forceConsistentCasingInFileNames": true,
2020
"module": "ESNext",
21-
"moduleResolution": "Node",
21+
"moduleResolution": "bundler",
2222
"resolveJsonModule": true,
2323
"noEmit": true,
2424
"noUncheckedIndexedAccess": true,

apps/bundles/tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"composite": true,
44
"module": "ESNext",
5-
"moduleResolution": "Node",
5+
"moduleResolution": "bundler",
66
"allowSyntheticDefaultImports": true
77
},
88
"include": [

apps/customers/i18n.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import type en from '@commercelayer/app-elements/dist/locales/en'
1+
import type { Translation } from '@commercelayer/app-elements'
22

33
declare module 'i18next' {
44
interface CustomTypeOptions {
55
defaultNS: 'translation'
66
resources: {
7-
translation: typeof en
7+
translation: Translation
88
}
99
}
1010
}

apps/customers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"test:watch": "vitest --passWithNoTests"
1515
},
1616
"dependencies": {
17-
"@commercelayer/app-elements": "6.2.0",
17+
"@commercelayer/app-elements": "6.2.2",
1818
"@commercelayer/sdk": "6.46.0",
1919
"@hookform/resolvers": "^3.10.0",
2020
"lodash-es": "^4.17.21",

apps/customers/src/data/lists.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { FormFullValues } from '@commercelayer/app-elements/dist/ui/resources/useResourceFilters/types'
1+
import type { FormFullValues } from '@commercelayer/app-elements'
22

33
export type ListType = 'all'
44

apps/customers/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"strict": true,
1919
"forceConsistentCasingInFileNames": true,
2020
"module": "ESNext",
21-
"moduleResolution": "Node",
21+
"moduleResolution": "bundler",
2222
"resolveJsonModule": true,
2323
"noEmit": true,
2424
"noUncheckedIndexedAccess": true,

apps/customers/tsconfig.node.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"compilerOptions": {
33
"composite": true,
44
"module": "ESNext",
5-
"moduleResolution": "Node",
5+
"moduleResolution": "bundler",
66
"allowSyntheticDefaultImports": true
77
},
88
"include": [

apps/exports/i18n.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import type en from '@commercelayer/app-elements/dist/locales/en'
1+
import type { Translation } from "@commercelayer/app-elements"
22

33
declare module 'i18next' {
44
interface CustomTypeOptions {
55
defaultNS: 'translation'
66
resources: {
7-
translation: typeof en
7+
translation: Translation
88
}
99
}
1010
}

0 commit comments

Comments
 (0)