Putting in some temporary workarounds regarding the typesystem

Without these changes we can't build the app using `yarn build-pkg harvester` because it complains about missing modules in @rancher/shell imports. I believe this will be resolved by https://github.com/rancher/dashboard/issues/11797#issue-2502509655 and we should remove this change once that occurs.
This commit is contained in:
Cody Jackson
2024-10-23 17:00:57 +02:00
committed by Francesco Torchia
parent d761b88ba0
commit 2d2615128c
9 changed files with 48 additions and 39 deletions
+1
View File
@@ -1,3 +1,4 @@
//@ts-nocheck
import { importTypes } from '@rancher/auto-import'; import { importTypes } from '@rancher/auto-import';
import { IPlugin } from '@shell/core/types'; import { IPlugin } from '@shell/core/types';
import extensionRoutes from './routing/harvester-routing'; import extensionRoutes from './routing/harvester-routing';
+1
View File
@@ -1,3 +1,4 @@
//@ts-nocheck
import { import {
NODE, NODE,
CONFIG_MAP, CONFIG_MAP,
@@ -1,3 +1,4 @@
//@ts-nocheck
import { ClusterNotFoundError } from '@shell/utils/error'; import { ClusterNotFoundError } from '@shell/utils/error';
import { SETTING } from '@shell/config/settings'; import { SETTING } from '@shell/config/settings';
import { COUNT, NAMESPACE, MANAGEMENT } from '@shell/config/types'; import { COUNT, NAMESPACE, MANAGEMENT } from '@shell/config/types';
@@ -1,3 +1,4 @@
//@ts-nocheck
import { import {
NAMESPACE_FILTER_KINDS, NAMESPACE_FILTER_KINDS,
NAMESPACE_FILTER_ALL as ALL, NAMESPACE_FILTER_ALL as ALL,
@@ -1,3 +1,4 @@
//@ts-nocheck
import { CoreStoreSpecifics, CoreStoreConfig } from '@shell/core/types'; import { CoreStoreSpecifics, CoreStoreConfig } from '@shell/core/types';
import { SteveFactory, steveStoreInit } from '@shell/plugins/steve/index'; import { SteveFactory, steveStoreInit } from '@shell/plugins/steve/index';
@@ -1,3 +1,4 @@
//@ts-nocheck
import { _MERGE } from '@shell/plugins/dashboard-store/actions'; import { _MERGE } from '@shell/plugins/dashboard-store/actions';
import PollerSequential from '@shell/utils/poller-sequential'; import PollerSequential from '@shell/utils/poller-sequential';
+5 -3
View File
@@ -34,7 +34,7 @@
], ],
"paths": { "paths": {
"@shell/*": [ "@shell/*": [
"../../node_modules/@rancher/shell/*" "@rancher/shell/*"
], ],
"@components/*": [ "@components/*": [
"@rancher/components/*" "@rancher/components/*"
@@ -45,9 +45,11 @@
"**/*.ts", "**/*.ts",
"**/*.d.ts", "**/*.d.ts",
"**/*.tsx", "**/*.tsx",
"**/*.vue" "**/*.vue",
"./index.d.ts"
], ],
"exclude": [ "exclude": [
"../../node_modules" "../../node_modules",
"**/*.test.ts"
] ]
} }
+2 -1
View File
@@ -37,6 +37,7 @@
] ]
}, },
"exclude": [ "exclude": [
"node_modules" "node_modules",
"**/*.test.ts"
] ]
} }
+3 -3
View File
@@ -13323,9 +13323,9 @@ type-fest@^0.8.0, type-fest@^0.8.1:
integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==
type-fest@^4.4.0: type-fest@^4.4.0:
version "4.26.0" version "4.26.1"
resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.26.0.tgz#703f263af10c093cd6277d079e26b9e17d517c4b" resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-4.26.1.tgz#a4a17fa314f976dd3e6d6675ef6c775c16d7955e"
integrity sha512-OduNjVJsFbifKb57UqZ2EMP1i4u64Xwow3NYXUtBbD4vIwJdQd4+xl8YDou1dlm4DVrtwT/7Ky8z8WyCULVfxw== integrity sha512-yOGpmOAL7CkKe/91I5O3gPICmJNLJ1G4zFYVAsRHg7M64biSnPtRj0WNQt++bRkjYOqjWXrhnUw1utzmVErAdg==
type-is@~1.6.17, type-is@~1.6.18: type-is@~1.6.17, type-is@~1.6.18:
version "1.6.18" version "1.6.18"