diff --git a/.npmrc b/.npmrc index 73c487f3b1..6776d2abf1 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,5 @@ +shamefully-hoist=true strict-peer-dependencies=false -auto-install-peers=false +auto-install-peers=true +side-effects-cache=false # Ensure the postinstall script of the lefthook package is executed and hooks are installed +manage-package-manager-versions=true diff --git a/packages/analytics/analytics-chart/vite.config.ts b/packages/analytics/analytics-chart/vite.config.ts index a0608ec243..758163de54 100644 --- a/packages/analytics/analytics-chart/vite.config.ts +++ b/packages/analytics/analytics-chart/vite.config.ts @@ -16,16 +16,6 @@ const config = mergeConfig(sharedViteConfig, defineConfig({ entry: resolve(__dirname, './src/index.ts'), fileName: (format) => `${sanitizedPackageName}.${format}.js`, }, - rollupOptions: { - // Make sure to externalize deps that shouldn't be bundled into your library - external: ['@kong-ui-public/i18n'], - output: { - // Provide global variables to use in the UMD build for externalized deps - globals: { - '@kong-ui-public/i18n': 'kong-ui-public-i18n', - }, - }, - }, }, server: { open: true, diff --git a/packages/analytics/analytics-geo-map/vite.config.ts b/packages/analytics/analytics-geo-map/vite.config.ts index 3f3fb9266e..38f9294358 100644 --- a/packages/analytics/analytics-geo-map/vite.config.ts +++ b/packages/analytics/analytics-geo-map/vite.config.ts @@ -18,11 +18,11 @@ const config = mergeConfig(sharedViteConfig, defineConfig({ }, rollupOptions: { // Make sure to externalize deps that shouldn't be bundled into your library - external: ['maplibre-gl', '@kong-ui-public/i18n'], + external: ['maplibre-gl'], output: { // Provide global variables to use in the UMD build for externalized deps globals: { - '@kong-ui-public/i18n': 'kong-ui-public-i18n', + 'maplibre-gl': 'maplibregl', }, }, }, diff --git a/packages/analytics/analytics-metric-provider/vite.config.ts b/packages/analytics/analytics-metric-provider/vite.config.ts index 9a7b3fd460..d7dc890adf 100644 --- a/packages/analytics/analytics-metric-provider/vite.config.ts +++ b/packages/analytics/analytics-metric-provider/vite.config.ts @@ -19,7 +19,6 @@ const config = mergeConfig(sharedViteConfig, defineConfig({ rollupOptions: { // Make sure to externalize deps that shouldn't be bundled into your library external: [ - '@kong-ui-public/i18n', '@kong-ui-public/analytics-config-store', '@kong-ui-public/analytics-utilities', '@kong-ui-public/metric-cards', @@ -28,9 +27,9 @@ const config = mergeConfig(sharedViteConfig, defineConfig({ output: { // Provide global variables to use in the UMD build for externalized deps globals: { - '@kong-ui-public/i18n': 'kong-ui-public-i18n', '@kong-ui-public/analytics-config-store': 'kong-ui-public-analytics-config-store', '@kong-ui-public/analytics-utilities': 'kong-ui-public-analytics-utilities', + '@kong-ui-public/metric-cards': 'kong-ui-public-metric-cards', pinia: 'pinia', }, }, diff --git a/packages/entities/entities-certificates/package.json b/packages/entities/entities-certificates/package.json index ae7d9c34b3..00bd2aa7c7 100644 --- a/packages/entities/entities-certificates/package.json +++ b/packages/entities/entities-certificates/package.json @@ -21,15 +21,19 @@ "access": "public" }, "peerDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", + "@kong/icons": "^1.15.1", "@kong/kongponents": "^9.4.1", "axios": "^1.6.8", "vue": ">= 3.3.13 < 4", "vue-router": "^4.3.3" }, "devDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", "@kong/design-tokens": "1.17.2", + "@kong/icons": "^1.15.1", "@kong/kongponents": "9.4.1", "axios": "^1.6.8", "vue": "^3.4.31", @@ -65,8 +69,6 @@ "extends": "../../../package.json" }, "dependencies": { - "@kong-ui-public/entities-shared": "workspace:^", - "@kong/icons": "^1.15.1", "@peculiar/x509": "^1.9.7" }, "distSizeChecker": { diff --git a/packages/entities/entities-consumer-credentials/package.json b/packages/entities/entities-consumer-credentials/package.json index 717c4dfa36..56ad1da338 100644 --- a/packages/entities/entities-consumer-credentials/package.json +++ b/packages/entities/entities-consumer-credentials/package.json @@ -21,15 +21,19 @@ "access": "public" }, "peerDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", + "@kong/icons": "^1.15.1", "@kong/kongponents": "^9.4.1", "axios": "^1.6.8", "vue": ">= 3.3.13 < 4", "vue-router": "^4.3.3" }, "devDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", "@kong/design-tokens": "1.17.2", + "@kong/icons": "^1.15.1", "@kong/kongponents": "9.4.1", "axios": "^1.6.8", "vue": "^3.4.31", @@ -66,9 +70,5 @@ }, "distSizeChecker": { "errorLimit": "300KB" - }, - "dependencies": { - "@kong-ui-public/entities-shared": "workspace:^", - "@kong/icons": "^1.15.1" } } diff --git a/packages/entities/entities-consumer-groups/package.json b/packages/entities/entities-consumer-groups/package.json index 841553e798..c159c919d0 100644 --- a/packages/entities/entities-consumer-groups/package.json +++ b/packages/entities/entities-consumer-groups/package.json @@ -21,15 +21,19 @@ "access": "public" }, "peerDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", + "@kong/icons": "^1.15.1", "@kong/kongponents": "^9.4.1", "axios": "^1.6.8", "vue": ">= 3.3.13 < 4", "vue-router": "^4.3.3" }, "devDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", "@kong/design-tokens": "1.17.2", + "@kong/icons": "^1.15.1", "@kong/kongponents": "9.4.1", "axios": "^1.6.8", "vue": "^3.4.31", @@ -66,9 +70,5 @@ }, "distSizeChecker": { "errorLimit": "500KB" - }, - "dependencies": { - "@kong-ui-public/entities-shared": "workspace:^", - "@kong/icons": "^1.15.1" } } diff --git a/packages/entities/entities-consumers/package.json b/packages/entities/entities-consumers/package.json index bb8c649573..68b5841923 100644 --- a/packages/entities/entities-consumers/package.json +++ b/packages/entities/entities-consumers/package.json @@ -21,15 +21,19 @@ "access": "public" }, "peerDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", + "@kong/icons": "^1.15.1", "@kong/kongponents": "^9.4.1", "axios": "^1.6.8", "vue": ">= 3.3.13 < 4", "vue-router": "^4.3.3" }, "devDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", "@kong/design-tokens": "1.17.2", + "@kong/icons": "^1.15.1", "@kong/kongponents": "9.4.1", "axios": "^1.6.8", "vue": "^3.4.31", @@ -66,9 +70,5 @@ }, "distSizeChecker": { "errorLimit": "500KB" - }, - "dependencies": { - "@kong-ui-public/entities-shared": "workspace:^", - "@kong/icons": "^1.15.1" } } diff --git a/packages/entities/entities-data-plane-nodes/package.json b/packages/entities/entities-data-plane-nodes/package.json index a89295f8e2..3f9ddfe89a 100644 --- a/packages/entities/entities-data-plane-nodes/package.json +++ b/packages/entities/entities-data-plane-nodes/package.json @@ -21,15 +21,19 @@ "access": "public" }, "peerDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", + "@kong/icons": "^1.15.1", "@kong/kongponents": "9.4.1", "axios": "^1.6.8", "vue": ">= 3.3.13 < 4", "vue-router": "^4.3.3" }, "devDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", "@kong/design-tokens": "1.17.2", + "@kong/icons": "^1.15.1", "@kong/kongponents": "9.4.1", "axios": "^1.6.8", "vue": "^3.4.31", @@ -66,9 +70,5 @@ }, "distSizeChecker": { "errorLimit": "500KB" - }, - "dependencies": { - "@kong-ui-public/entities-shared": "workspace:^", - "@kong/icons": "^1.15.1" } } diff --git a/packages/entities/entities-gateway-services/package.json b/packages/entities/entities-gateway-services/package.json index 2f66446442..2ad0648077 100644 --- a/packages/entities/entities-gateway-services/package.json +++ b/packages/entities/entities-gateway-services/package.json @@ -21,15 +21,19 @@ "access": "public" }, "peerDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", + "@kong/icons": "^1.15.1", "@kong/kongponents": "^9.4.1", "axios": "^1.6.8", "vue": ">= 3.3.13 < 4", "vue-router": "^4.3.3" }, "devDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", "@kong/design-tokens": "1.17.2", + "@kong/icons": "^1.15.1", "@kong/kongponents": "9.4.1", "axios": "^1.6.8", "vue": "^3.4.31", @@ -66,9 +70,5 @@ }, "distSizeChecker": { "errorLimit": "600KB" - }, - "dependencies": { - "@kong-ui-public/entities-shared": "workspace:^", - "@kong/icons": "^1.15.1" } } diff --git a/packages/entities/entities-key-sets/package.json b/packages/entities/entities-key-sets/package.json index 15900ff0cc..77409cf60c 100644 --- a/packages/entities/entities-key-sets/package.json +++ b/packages/entities/entities-key-sets/package.json @@ -21,14 +21,18 @@ "access": "public" }, "peerDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", + "@kong/icons": "^1.15.1", "@kong/kongponents": "^9.4.1", "axios": "^1.6.8", "vue": ">= 3.3.13 < 4", "vue-router": "^4.3.3" }, "devDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", + "@kong/icons": "^1.15.1", "@kong/kongponents": "9.4.1", "axios": "^1.6.8", "vue": "^3.4.31", @@ -65,9 +69,5 @@ }, "distSizeChecker": { "errorLimit": "500KB" - }, - "dependencies": { - "@kong-ui-public/entities-shared": "workspace:^", - "@kong/icons": "^1.15.1" } } diff --git a/packages/entities/entities-keys/package.json b/packages/entities/entities-keys/package.json index 86cec9adc3..dbc14988e1 100644 --- a/packages/entities/entities-keys/package.json +++ b/packages/entities/entities-keys/package.json @@ -21,15 +21,19 @@ "access": "public" }, "peerDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", + "@kong/icons": "^1.15.1", "@kong/kongponents": "^9.4.1", "axios": "^1.6.8", "vue": ">= 3.3.13 < 4", "vue-router": "^4.3.3" }, "devDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", "@kong/design-tokens": "1.17.2", + "@kong/icons": "^1.15.1", "@kong/kongponents": "9.4.1", "axios": "^1.6.8", "vue": "^3.4.31", @@ -66,9 +70,5 @@ }, "distSizeChecker": { "errorLimit": "486KB" - }, - "dependencies": { - "@kong-ui-public/entities-shared": "workspace:^", - "@kong/icons": "^1.15.1" } } diff --git a/packages/entities/entities-plugins/package.json b/packages/entities/entities-plugins/package.json index dc136acbeb..ecad6c3e0c 100644 --- a/packages/entities/entities-plugins/package.json +++ b/packages/entities/entities-plugins/package.json @@ -25,16 +25,20 @@ "access": "public" }, "peerDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", + "@kong/icons": "^1.15.1", "@kong/kongponents": "^9.4.1", "axios": "^1.6.8", "vue": ">= 3.3.13 < 4", "vue-router": "^4.3.3" }, "devDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/entities-vaults": "workspace:^", "@kong-ui-public/i18n": "workspace:^", "@kong/design-tokens": "1.17.2", + "@kong/icons": "^1.15.1", "@kong/kongponents": "9.4.1", "axios": "^1.6.8", "vue": "^3.4.31", @@ -78,9 +82,7 @@ "@kong-ui-public/entities-consumers": "workspace:^", "@kong-ui-public/entities-gateway-services": "workspace:^", "@kong-ui-public/entities-routes": "workspace:^", - "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/forms": "workspace:^", - "@kong/icons": "^1.15.1", "marked": "^12.0.2" } } diff --git a/packages/entities/entities-routes/package.json b/packages/entities/entities-routes/package.json index d6aa593d31..8f18712a2b 100644 --- a/packages/entities/entities-routes/package.json +++ b/packages/entities/entities-routes/package.json @@ -21,15 +21,19 @@ "access": "public" }, "peerDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", + "@kong/icons": "^1.15.1", "@kong/kongponents": "^9.4.1", "axios": "^1.6.8", "vue": ">= 3.3.13 < 4", "vue-router": "^4.3.3" }, "devDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", "@kong/design-tokens": "1.17.2", + "@kong/icons": "^1.15.1", "@kong/kongponents": "9.4.1", "@types/lodash.isequal": "^4.5.8", "axios": "^1.6.8", @@ -70,9 +74,7 @@ "errorLimit": "800KB" }, "dependencies": { - "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/expressions": "workspace:^", - "@kong/icons": "^1.15.1", "lodash.isequal": "^4.5.0" } } diff --git a/packages/entities/entities-routes/vite.config.ts b/packages/entities/entities-routes/vite.config.ts index 9f5cb464a0..2ed763c642 100644 --- a/packages/entities/entities-routes/vite.config.ts +++ b/packages/entities/entities-routes/vite.config.ts @@ -19,13 +19,15 @@ const config = mergeConfig(sharedViteConfig, defineConfig({ }, rollupOptions: { external: [ - '@kong-ui-public/entities-shared', - '@kong-ui-public/entities-shared/dist/style.css', '@kong-ui-public/expressions', - '@kong-ui-public/expressions/dist/style.css', - '@kong/icons', 'lodash.isequal', ], + output: { + // Provide global variables to use in the UMD build for externalized deps + globals: { + '@kong-ui-public/expressions': 'kong-ui-public-expressions', + }, + }, }, }, ...(process.env.USE_SANDBOX diff --git a/packages/entities/entities-shared/package.json b/packages/entities/entities-shared/package.json index 5e03ab6689..6d81531687 100644 --- a/packages/entities/entities-shared/package.json +++ b/packages/entities/entities-shared/package.json @@ -22,6 +22,7 @@ }, "peerDependencies": { "@kong-ui-public/i18n": "workspace:^", + "@kong/icons": "^1.15.1", "@kong/kongponents": "^9.4.1", "axios": "^1.6.8", "vue": ">= 3.3.13 < 4", @@ -30,6 +31,7 @@ "devDependencies": { "@kong-ui-public/i18n": "workspace:^", "@kong/design-tokens": "1.17.2", + "@kong/icons": "^1.15.1", "@kong/kongponents": "9.4.1", "axios": "^1.6.8", "vue": "^3.4.31", @@ -69,7 +71,6 @@ }, "dependencies": { "@kong-ui-public/core": "workspace:^", - "@kong/icons": "^1.15.1", "compare-versions": "^6.1.0" } } diff --git a/packages/entities/entities-snis/package.json b/packages/entities/entities-snis/package.json index 4ddf4543d7..a66c4b79ec 100644 --- a/packages/entities/entities-snis/package.json +++ b/packages/entities/entities-snis/package.json @@ -21,15 +21,19 @@ "access": "public" }, "peerDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", + "@kong/icons": "^1.15.1", "@kong/kongponents": "^9.4.1", "axios": "^1.6.8", "vue": ">= 3.3.13 < 4", "vue-router": "^4.3.3" }, "devDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", "@kong/design-tokens": "1.17.2", + "@kong/icons": "^1.15.1", "@kong/kongponents": "9.4.1", "axios": "^1.6.8", "vue": "^3.4.31", @@ -66,9 +70,5 @@ }, "distSizeChecker": { "errorLimit": "400KB" - }, - "dependencies": { - "@kong-ui-public/entities-shared": "workspace:^", - "@kong/icons": "^1.15.1" } } diff --git a/packages/entities/entities-upstreams-targets/package.json b/packages/entities/entities-upstreams-targets/package.json index 28af6b2fa8..3f511f9108 100644 --- a/packages/entities/entities-upstreams-targets/package.json +++ b/packages/entities/entities-upstreams-targets/package.json @@ -21,15 +21,19 @@ "access": "public" }, "peerDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", + "@kong/icons": "^1.15.1", "@kong/kongponents": "^9.4.1", "axios": "^1.6.8", "vue": ">= 3.3.13 < 4", "vue-router": "^4.3.3" }, "devDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", "@kong/design-tokens": "1.17.2", + "@kong/icons": "^1.15.1", "@kong/kongponents": "9.4.1", "axios": "^1.6.8", "vue": "^3.4.31", @@ -66,9 +70,5 @@ }, "distSizeChecker": { "errorLimit": "900KB" - }, - "dependencies": { - "@kong-ui-public/entities-shared": "workspace:^", - "@kong/icons": "^1.15.1" } } diff --git a/packages/entities/entities-vaults/package.json b/packages/entities/entities-vaults/package.json index d4d7265f9c..5d735a3860 100644 --- a/packages/entities/entities-vaults/package.json +++ b/packages/entities/entities-vaults/package.json @@ -21,13 +21,16 @@ "access": "public" }, "peerDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", + "@kong/icons": "^1.15.1", "@kong/kongponents": "^9.4.1", "axios": "^1.6.8", "vue": ">= 3.3.13 < 4", "vue-router": "^4.3.3" }, "devDependencies": { + "@kong-ui-public/entities-shared": "workspace:^", "@kong-ui-public/i18n": "workspace:^", "@kong/design-tokens": "1.17.2", "@kong/kongponents": "9.4.1", @@ -66,9 +69,5 @@ }, "distSizeChecker": { "errorLimit": "900KB" - }, - "dependencies": { - "@kong-ui-public/entities-shared": "workspace:^", - "@kong/icons": "^1.15.1" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6e74df7c49..98dafe4d0b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,7 +1,7 @@ lockfileVersion: '9.0' settings: - autoInstallPeers: false + autoInstallPeers: true excludeLinksFromLockfile: false overrides: @@ -489,6 +489,9 @@ importers: date-fns: specifier: ^2.30.0 version: 2.30.0 + vue: + specifier: ^3.4.31 + version: 3.4.31(typescript@5.3.3) devDependencies: '@kong/design-tokens': specifier: 1.17.2 @@ -597,6 +600,9 @@ importers: lodash-es: specifier: ^4.17.21 version: 4.17.21 + vue: + specifier: ^3.4.31 + version: 3.4.31(typescript@5.3.3) devDependencies: '@kong-ui-public/i18n': specifier: workspace:^ @@ -625,6 +631,9 @@ importers: intl-messageformat: specifier: ^10.5.14 version: 10.5.14 + vue: + specifier: '>= 3.3.13 < 4' + version: 3.4.31(typescript@5.3.3) packages/core/misc-widgets: devDependencies: @@ -659,22 +668,22 @@ importers: packages/entities/entities-certificates: dependencies: - '@kong-ui-public/entities-shared': - specifier: workspace:^ - version: link:../entities-shared - '@kong/icons': - specifier: ^1.15.1 - version: 1.15.1(vue@3.4.31(typescript@5.3.3)) '@peculiar/x509': specifier: ^1.9.7 version: 1.9.7 devDependencies: + '@kong-ui-public/entities-shared': + specifier: workspace:^ + version: link:../entities-shared '@kong-ui-public/i18n': specifier: workspace:^ version: link:../../core/i18n '@kong/design-tokens': specifier: 1.17.2 version: 1.17.2 + '@kong/icons': + specifier: ^1.15.1 + version: 1.15.1(vue@3.4.31(typescript@5.3.3)) '@kong/kongponents': specifier: 9.4.1 version: 9.4.1(axios@1.6.8)(vue-router@4.4.0(vue@3.4.31(typescript@5.3.3)))(vue@3.4.31(typescript@5.3.3)) @@ -689,20 +698,19 @@ importers: version: 4.4.0(vue@3.4.31(typescript@5.3.3)) packages/entities/entities-consumer-credentials: - dependencies: + devDependencies: '@kong-ui-public/entities-shared': specifier: workspace:^ version: link:../entities-shared - '@kong/icons': - specifier: ^1.15.1 - version: 1.15.1(vue@3.4.31(typescript@5.3.3)) - devDependencies: '@kong-ui-public/i18n': specifier: workspace:^ version: link:../../core/i18n '@kong/design-tokens': specifier: 1.17.2 version: 1.17.2 + '@kong/icons': + specifier: ^1.15.1 + version: 1.15.1(vue@3.4.31(typescript@5.3.3)) '@kong/kongponents': specifier: 9.4.1 version: 9.4.1(axios@1.6.8)(vue-router@4.4.0(vue@3.4.31(typescript@5.3.3)))(vue@3.4.31(typescript@5.3.3)) @@ -717,20 +725,19 @@ importers: version: 4.4.0(vue@3.4.31(typescript@5.3.3)) packages/entities/entities-consumer-groups: - dependencies: + devDependencies: '@kong-ui-public/entities-shared': specifier: workspace:^ version: link:../entities-shared - '@kong/icons': - specifier: ^1.15.1 - version: 1.15.1(vue@3.4.31(typescript@5.3.3)) - devDependencies: '@kong-ui-public/i18n': specifier: workspace:^ version: link:../../core/i18n '@kong/design-tokens': specifier: 1.17.2 version: 1.17.2 + '@kong/icons': + specifier: ^1.15.1 + version: 1.15.1(vue@3.4.31(typescript@5.3.3)) '@kong/kongponents': specifier: 9.4.1 version: 9.4.1(axios@1.6.8)(vue-router@4.4.0(vue@3.4.31(typescript@5.3.3)))(vue@3.4.31(typescript@5.3.3)) @@ -745,20 +752,19 @@ importers: version: 4.4.0(vue@3.4.31(typescript@5.3.3)) packages/entities/entities-consumers: - dependencies: + devDependencies: '@kong-ui-public/entities-shared': specifier: workspace:^ version: link:../entities-shared - '@kong/icons': - specifier: ^1.15.1 - version: 1.15.1(vue@3.4.31(typescript@5.3.3)) - devDependencies: '@kong-ui-public/i18n': specifier: workspace:^ version: link:../../core/i18n '@kong/design-tokens': specifier: 1.17.2 version: 1.17.2 + '@kong/icons': + specifier: ^1.15.1 + version: 1.15.1(vue@3.4.31(typescript@5.3.3)) '@kong/kongponents': specifier: 9.4.1 version: 9.4.1(axios@1.6.8)(vue-router@4.4.0(vue@3.4.31(typescript@5.3.3)))(vue@3.4.31(typescript@5.3.3)) @@ -773,20 +779,19 @@ importers: version: 4.4.0(vue@3.4.31(typescript@5.3.3)) packages/entities/entities-data-plane-nodes: - dependencies: + devDependencies: '@kong-ui-public/entities-shared': specifier: workspace:^ version: link:../entities-shared - '@kong/icons': - specifier: ^1.15.1 - version: 1.15.1(vue@3.4.31(typescript@5.3.3)) - devDependencies: '@kong-ui-public/i18n': specifier: workspace:^ version: link:../../core/i18n '@kong/design-tokens': specifier: 1.17.2 version: 1.17.2 + '@kong/icons': + specifier: ^1.15.1 + version: 1.15.1(vue@3.4.31(typescript@5.3.3)) '@kong/kongponents': specifier: 9.4.1 version: 9.4.1(axios@1.6.8)(vue-router@4.4.0(vue@3.4.31(typescript@5.3.3)))(vue@3.4.31(typescript@5.3.3)) @@ -801,20 +806,19 @@ importers: version: 4.4.0(vue@3.4.31(typescript@5.3.3)) packages/entities/entities-gateway-services: - dependencies: + devDependencies: '@kong-ui-public/entities-shared': specifier: workspace:^ version: link:../entities-shared - '@kong/icons': - specifier: ^1.15.1 - version: 1.15.1(vue@3.4.31(typescript@5.3.3)) - devDependencies: '@kong-ui-public/i18n': specifier: workspace:^ version: link:../../core/i18n '@kong/design-tokens': specifier: 1.17.2 version: 1.17.2 + '@kong/icons': + specifier: ^1.15.1 + version: 1.15.1(vue@3.4.31(typescript@5.3.3)) '@kong/kongponents': specifier: 9.4.1 version: 9.4.1(axios@1.6.8)(vue-router@4.4.0(vue@3.4.31(typescript@5.3.3)))(vue@3.4.31(typescript@5.3.3)) @@ -829,17 +833,16 @@ importers: version: 4.4.0(vue@3.4.31(typescript@5.3.3)) packages/entities/entities-key-sets: - dependencies: + devDependencies: '@kong-ui-public/entities-shared': specifier: workspace:^ version: link:../entities-shared - '@kong/icons': - specifier: ^1.15.1 - version: 1.15.1(vue@3.4.31(typescript@5.3.3)) - devDependencies: '@kong-ui-public/i18n': specifier: workspace:^ version: link:../../core/i18n + '@kong/icons': + specifier: ^1.15.1 + version: 1.15.1(vue@3.4.31(typescript@5.3.3)) '@kong/kongponents': specifier: 9.4.1 version: 9.4.1(axios@1.6.8)(vue-router@4.4.0(vue@3.4.31(typescript@5.3.3)))(vue@3.4.31(typescript@5.3.3)) @@ -854,20 +857,19 @@ importers: version: 4.4.0(vue@3.4.31(typescript@5.3.3)) packages/entities/entities-keys: - dependencies: + devDependencies: '@kong-ui-public/entities-shared': specifier: workspace:^ version: link:../entities-shared - '@kong/icons': - specifier: ^1.15.1 - version: 1.15.1(vue@3.4.31(typescript@5.3.3)) - devDependencies: '@kong-ui-public/i18n': specifier: workspace:^ version: link:../../core/i18n '@kong/design-tokens': specifier: 1.17.2 version: 1.17.2 + '@kong/icons': + specifier: ^1.15.1 + version: 1.15.1(vue@3.4.31(typescript@5.3.3)) '@kong/kongponents': specifier: 9.4.1 version: 9.4.1(axios@1.6.8)(vue-router@4.4.0(vue@3.4.31(typescript@5.3.3)))(vue@3.4.31(typescript@5.3.3)) @@ -895,19 +897,16 @@ importers: '@kong-ui-public/entities-routes': specifier: workspace:^ version: link:../entities-routes - '@kong-ui-public/entities-shared': - specifier: workspace:^ - version: link:../entities-shared '@kong-ui-public/forms': specifier: workspace:^ version: link:../../core/forms - '@kong/icons': - specifier: ^1.15.1 - version: 1.15.1(vue@3.4.31(typescript@5.3.3)) marked: specifier: ^12.0.2 version: 12.0.2 devDependencies: + '@kong-ui-public/entities-shared': + specifier: workspace:^ + version: link:../entities-shared '@kong-ui-public/entities-vaults': specifier: workspace:^ version: link:../entities-vaults @@ -917,6 +916,9 @@ importers: '@kong/design-tokens': specifier: 1.17.2 version: 1.17.2 + '@kong/icons': + specifier: ^1.15.1 + version: 1.15.1(vue@3.4.31(typescript@5.3.3)) '@kong/kongponents': specifier: 9.4.1 version: 9.4.1(axios@1.6.8)(vue-router@4.4.0(vue@3.4.31(typescript@5.3.3)))(vue@3.4.31(typescript@5.3.3)) @@ -932,25 +934,25 @@ importers: packages/entities/entities-routes: dependencies: - '@kong-ui-public/entities-shared': - specifier: workspace:^ - version: link:../entities-shared '@kong-ui-public/expressions': specifier: workspace:^ version: link:../../core/expressions - '@kong/icons': - specifier: ^1.15.1 - version: 1.15.1(vue@3.4.31(typescript@5.3.3)) lodash.isequal: specifier: ^4.5.0 version: 4.5.0 devDependencies: + '@kong-ui-public/entities-shared': + specifier: workspace:^ + version: link:../entities-shared '@kong-ui-public/i18n': specifier: workspace:^ version: link:../../core/i18n '@kong/design-tokens': specifier: 1.17.2 version: 1.17.2 + '@kong/icons': + specifier: ^1.15.1 + version: 1.15.1(vue@3.4.31(typescript@5.3.3)) '@kong/kongponents': specifier: 9.4.1 version: 9.4.1(axios@1.6.8)(vue-router@4.4.0(vue@3.4.31(typescript@5.3.3)))(vue@3.4.31(typescript@5.3.3)) @@ -975,9 +977,6 @@ importers: '@kong-ui-public/core': specifier: workspace:^ version: link:../../core/core - '@kong/icons': - specifier: ^1.15.1 - version: 1.15.1(vue@3.4.31(typescript@5.3.3)) compare-versions: specifier: ^6.1.0 version: 6.1.0 @@ -988,6 +987,9 @@ importers: '@kong/design-tokens': specifier: 1.17.2 version: 1.17.2 + '@kong/icons': + specifier: ^1.15.1 + version: 1.15.1(vue@3.4.31(typescript@5.3.3)) '@kong/kongponents': specifier: 9.4.1 version: 9.4.1(axios@1.6.8)(vue-router@4.4.0(vue@3.4.31(typescript@5.3.3)))(vue@3.4.31(typescript@5.3.3)) @@ -1002,20 +1004,19 @@ importers: version: 4.4.0(vue@3.4.31(typescript@5.3.3)) packages/entities/entities-snis: - dependencies: + devDependencies: '@kong-ui-public/entities-shared': specifier: workspace:^ version: link:../entities-shared - '@kong/icons': - specifier: ^1.15.1 - version: 1.15.1(vue@3.4.31(typescript@5.3.3)) - devDependencies: '@kong-ui-public/i18n': specifier: workspace:^ version: link:../../core/i18n '@kong/design-tokens': specifier: 1.17.2 version: 1.17.2 + '@kong/icons': + specifier: ^1.15.1 + version: 1.15.1(vue@3.4.31(typescript@5.3.3)) '@kong/kongponents': specifier: 9.4.1 version: 9.4.1(axios@1.6.8)(vue-router@4.4.0(vue@3.4.31(typescript@5.3.3)))(vue@3.4.31(typescript@5.3.3)) @@ -1030,20 +1031,19 @@ importers: version: 4.4.0(vue@3.4.31(typescript@5.3.3)) packages/entities/entities-upstreams-targets: - dependencies: + devDependencies: '@kong-ui-public/entities-shared': specifier: workspace:^ version: link:../entities-shared - '@kong/icons': - specifier: ^1.15.1 - version: 1.15.1(vue@3.4.31(typescript@5.3.3)) - devDependencies: '@kong-ui-public/i18n': specifier: workspace:^ version: link:../../core/i18n '@kong/design-tokens': specifier: 1.17.2 version: 1.17.2 + '@kong/icons': + specifier: ^1.15.1 + version: 1.15.1(vue@3.4.31(typescript@5.3.3)) '@kong/kongponents': specifier: 9.4.1 version: 9.4.1(axios@1.6.8)(vue-router@4.4.0(vue@3.4.31(typescript@5.3.3)))(vue@3.4.31(typescript@5.3.3)) @@ -1059,13 +1059,13 @@ importers: packages/entities/entities-vaults: dependencies: - '@kong-ui-public/entities-shared': - specifier: workspace:^ - version: link:../entities-shared '@kong/icons': specifier: ^1.15.1 version: 1.15.1(vue@3.4.31(typescript@5.3.3)) devDependencies: + '@kong-ui-public/entities-shared': + specifier: workspace:^ + version: link:../entities-shared '@kong-ui-public/i18n': specifier: workspace:^ version: link:../../core/i18n @@ -3209,6 +3209,11 @@ packages: ajv-formats@2.1.1: resolution: {integrity: sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==} + peerDependencies: + ajv: ^8.0.0 + peerDependenciesMeta: + ajv: + optional: true ajv-keywords@3.5.2: resolution: {integrity: sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==} @@ -11940,8 +11945,8 @@ snapshots: clean-stack: 2.2.0 indent-string: 4.0.0 - ajv-formats@2.1.1: - dependencies: + ajv-formats@2.1.1(ajv@8.12.0): + optionalDependencies: ajv: 8.12.0 ajv-keywords@3.5.2(ajv@6.12.6): @@ -16911,7 +16916,7 @@ snapshots: dependencies: '@types/json-schema': 7.0.12 ajv: 8.12.0 - ajv-formats: 2.1.1 + ajv-formats: 2.1.1(ajv@8.12.0) ajv-keywords: 5.1.0(ajv@8.12.0) scule@1.3.0: {} diff --git a/vite.config.shared.ts b/vite.config.shared.ts index 61ed31e299..773b103e71 100644 --- a/vite.config.shared.ts +++ b/vite.config.shared.ts @@ -70,7 +70,15 @@ export default defineConfig({ rollupOptions: { // Make sure to externalize deps that shouldn't be bundled into your library // If config.build.rollupOptions.external is also set at the package level, the arrays will be merged - external: ['vue', 'vue-router', '@kong/kongponents', '@kong-ui-public/i18n', 'axios'], + external: [ + 'vue', + 'vue-router', + '@kong/kongponents', + '@kong/icons', + '@kong-ui-public/i18n', + '@kong-ui-public/entities-shared', + 'axios', + ], output: { // Provide global variables to use in the UMD build for externalized deps globals: { @@ -78,6 +86,8 @@ export default defineConfig({ 'vue-router': 'VueRouter', '@kong-ui-public/i18n': 'kong-ui-public-i18n', '@kong/kongponents': 'Kongponents', + '@kong/icons': 'KongIcons', + '@kong-ui-public/entities-shared': 'kong-ui-public-entities-shared', axios: 'axios', }, exports: 'named',