diff --git a/packages/foundations/assets/fonts/generate-eu-fonts.ts b/packages/foundations/assets/fonts/generate-eu-fonts.ts index 0e7dcc644868..d48424702649 100644 --- a/packages/foundations/assets/fonts/generate-eu-fonts.ts +++ b/packages/foundations/assets/fonts/generate-eu-fonts.ts @@ -2,8 +2,8 @@ import { glob } from 'glob'; import { execFile } from 'node:child_process'; import { promisify } from 'node:util'; -import { dirname } from 'path'; -import { fileURLToPath } from 'url'; +import { dirname } from 'node:path'; +import { fileURLToPath } from 'node:url'; const __filename = fileURLToPath(import.meta.url); const __dirname = dirname(__filename).replaceAll('\\', '/'); @@ -27,7 +27,7 @@ const generateFonts = async () => { try { const files = await glob(`${__dirname}/*.ttf`); - for (const file of files.map(f=> f.replaceAll('\\', '/'))) { + for (const file of files.map((f) => f.replaceAll('\\', '/'))) { // Security: Validate that the file is within the expected directory // and has the expected extension to prevent path traversal attacks if (!file.startsWith(__dirname) || !file.endsWith('.ttf')) { diff --git a/storybooks/_storybook/.storybook/main.ts b/storybooks/_storybook/.storybook/main.ts index 692fdd33de6f..c418d843547f 100644 --- a/storybooks/_storybook/.storybook/main.ts +++ b/storybooks/_storybook/.storybook/main.ts @@ -1,6 +1,6 @@ import type { StorybookConfig } from '@storybook/react-vite'; -import { dirname, join } from 'path'; +import { dirname, join } from 'node:path'; /** * This function is used to resolve the absolute path of a package. @@ -22,7 +22,6 @@ const config: StorybookConfig = { async viteFinal(config) { const { mergeConfig } = await import('vite'); - return mergeConfig(config, { // TODO: Remove `/storybook` after removing patternhub base: `${baseUrl}/composition-storybook` diff --git a/storybooks/angular-storybook/.storybook/main.ts b/storybooks/angular-storybook/.storybook/main.ts index 240d92e123d9..4d1be32d7c19 100644 --- a/storybooks/angular-storybook/.storybook/main.ts +++ b/storybooks/angular-storybook/.storybook/main.ts @@ -1,6 +1,6 @@ import { StorybookConfig } from '@storybook/angular'; -import { dirname, join } from 'path'; +import { dirname, join } from 'node:path'; /** * This function is used to resolve the absolute path of a package. diff --git a/storybooks/react-storybook/.storybook/main.ts b/storybooks/react-storybook/.storybook/main.ts index bb127197729b..92c2005638f1 100644 --- a/storybooks/react-storybook/.storybook/main.ts +++ b/storybooks/react-storybook/.storybook/main.ts @@ -1,6 +1,6 @@ import type { StorybookConfig } from '@storybook/react-vite'; -import { dirname, join } from 'path'; +import { dirname, join } from 'node:path'; /** * This function is used to resolve the absolute path of a package. diff --git a/storybooks/vue-storybook/.storybook/main.ts b/storybooks/vue-storybook/.storybook/main.ts index a20a058f52ac..fba28f66842f 100644 --- a/storybooks/vue-storybook/.storybook/main.ts +++ b/storybooks/vue-storybook/.storybook/main.ts @@ -1,5 +1,5 @@ import type { StorybookConfig } from '@storybook/vue3-vite'; -import { dirname, join } from 'path'; +import { dirname, join } from 'node:path'; /** * This function is used to resolve the absolute path of a package.