Skip to content

Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.

chore(common): auto-discover ui locales and drop fs-extra (#7093)

白熱eb11acf87945
diff --git a/common/debugger/src/views/use-locale.ts b/common/debugger/src/views/use-locale.ts
index b96ae7e6df..4ac8fb2632 100644
--- a/common/debugger/src/views/use-locale.ts
+++ b/common/debugger/src/views/use-locale.ts
@@ -20,84 +20,27 @@ import { useDependency } from '@univerjs/ui';
import { useCallback, useEffect } from 'react';
import { DEBUGGER_PLUGIN_CONFIG_KEY } from '../config/config';
-const locales = [
- {
- label: 'English',
- value: LocaleType.EN_US,
- },
- {
- label: 'Français',
- value: LocaleType.FR_FR,
- },
- {
- label: 'Русский',
- value: LocaleType.RU_RU,
- },
- {
- label: 'Tiếng Việt',
- value: LocaleType.VI_VN,
- },
- {
- label: 'فارسی',
- value: LocaleType.FA_IR,
- },
- {
- label: 'Español',
- value: LocaleType.ES_ES,
- },
- {
- label: 'Català',
- value: LocaleType.CA_ES,
- },
- {
- label: 'Slovenčina',
- value: LocaleType.SK_SK,
- },
- {
- label: '简体中文',
- value: LocaleType.ZH_CN,
- },
- {
- label: '繁體中文(台灣)',
- value: LocaleType.ZH_TW,
- },
- {
- label: '繁體中文(香港)',
- value: LocaleType.ZH_HK,
- },
- {
- label: '日本語',
- value: LocaleType.JA_JP,
- },
- {
- label: '한국어',
- value: LocaleType.KO_KR,
- },
- {
- label: 'Português (Brasil)',
- value: LocaleType.PT_BR,
- },
- {
- label: 'Deutsch',
- value: LocaleType.DE_DE,
- },
- {
- label: 'Italiano',
- value: LocaleType.IT_IT,
- },
- {
- label: 'Bahasa Indonesia',
- value: LocaleType.ID_ID,
- },
- {
- label: 'Polski',
- value: LocaleType.PL_PL,
- },
- {
- label: 'العربية',
- value: LocaleType.AR_SA,
- },
-];
+const localeLabels: Record<LocaleType, string> = {
+ [LocaleType.AR_SA]: 'العربية',
+ [LocaleType.CA_ES]: 'Català',
+ [LocaleType.DE_DE]: 'Deutsch',
+ [LocaleType.EN_US]: 'English',
+ [LocaleType.ES_ES]: 'Español',
+ [LocaleType.FA_IR]: 'فارسی',
+ [LocaleType.FR_FR]: 'Français',
+ [LocaleType.ID_ID]: 'Bahasa Indonesia',
+ [LocaleType.IT_IT]: 'Italiano',
+ [LocaleType.JA_JP]: '日本語',
+ [LocaleType.KO_KR]: '한국어',
+ [LocaleType.PL_PL]: 'Polski',
+ [LocaleType.PT_BR]: 'Português (Brasil)',
+ [LocaleType.RU_RU]: 'Русский',
+ [LocaleType.SK_SK]: 'Slovenčina',
+ [LocaleType.VI_VN]: 'Tiếng Việt',
+ [LocaleType.ZH_CN]: '简体中文',
+ [LocaleType.ZH_HK]: '繁體中文(香港)',
+ [LocaleType.ZH_TW]: '繁體中文(台灣)',
+};
export function useLocale() {
const configService = useDependency(IConfigService);
@@ -138,12 +81,12 @@ export function useLocale() {
return {
type: 'subItem' as const,
children: '🌐 Languages',
- options: locales.map((lang) => ({
+ options: Object.values(LocaleType).map((locale) => ({
type: 'radio' as const,
value: localeService.getCurrentLocale(),
options: [{
- label: lang.label,
- value: lang.value,
+ label: localeLabels[locale],
+ value: locale,
}],
onSelect,
})),
diff --git a/common/mockdata/package.json b/common/mockdata/package.json
index bb71dfdd53..3408c162cd 100644
--- a/common/mockdata/package.json
+++ b/common/mockdata/package.json
@@ -75,7 +75,6 @@
},
"devDependencies": {
"@univerjs-infra/shared": "workspace:*",
- "fs-extra": "^11.3.5",
"typescript": "^6.0.3"
}
}
diff --git a/common/mockdata/scripts/generate-locales.mts b/common/mockdata/scripts/generate-locales.mts
index df515ed6a7..9a94d73db1 100644
--- a/common/mockdata/scripts/generate-locales.mts
+++ b/common/mockdata/scripts/generate-locales.mts
@@ -14,33 +14,25 @@
* limitations under the License.
*/
+import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
-import fs from 'fs-extra';
+import { discoverUniverUiLocales } from '@univerjs-infra/shared/locale';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
+const root = path.resolve(__dirname, '../../..');
-const locales = [
- 'en-US',
- 'fr-FR',
- 'ru-RU',
- 'zh-CN',
- 'zh-TW',
- 'zh-HK',
- 'vi-VN',
- 'fa-IR',
- 'ko-KR',
- 'ja-JP',
- 'es-ES',
- 'ca-ES',
- 'sk-SK',
- 'pt-BR',
- 'de-DE',
- 'it-IT',
- 'id-ID',
- 'pl-PL',
- 'ar-SA',
-];
+type MockdataPackageJson = Record<string, unknown> & {
+ dependencies: Record<string, string>;
+};
+
+function readJsonFileSync<T>(filePath: string): T {
+ return JSON.parse(fs.readFileSync(filePath, 'utf8')) as T;
+}
+
+function writeJsonFileSync(filePath: string, value: unknown) {
+ fs.writeFileSync(filePath, `${JSON.stringify(value, null, 4)}\n`);
+}
/**
* Generate locales files
@@ -48,7 +40,7 @@ const locales = [
async function generateLocales() {
const packageNames: string[] = [];
- const pkgJsonFile = fs.readJsonSync(path.resolve(__dirname, '../package.json'));
+ const pkgJsonFile = readJsonFileSync<MockdataPackageJson>(path.resolve(__dirname, '../package.json'));
const packagesRoot = path.resolve(__dirname, '../../../packages');
const packageEntries = fs.existsSync(packagesRoot)
@@ -67,15 +59,15 @@ async function generateLocales() {
if (!fs.existsSync(pkgJsonPath)) {
continue;
}
- const pkgJson = fs.readJSONSync(pkgJsonPath);
+ const pkgJson = readJsonFileSync<{ name: string }>(pkgJsonPath);
packageNames.push(pkgJson.name);
pkgJsonFile.dependencies[pkgJson.name] = 'workspace:*';
}
}
- fs.writeJsonSync(path.resolve(__dirname, '../package.json'), pkgJsonFile, { spaces: 4, EOL: '\n' });
+ writeJsonFileSync(path.resolve(__dirname, '../package.json'), pkgJsonFile);
- locales.forEach((locale) => {
+ discoverUniverUiLocales({ rootDir: root }).forEach((locale) => {
let statements = '/* eslint-disable */\n' + 'import { mergeLocales } from \'@univerjs/core\';\n\n';
packageNames.forEach((pkg) => {
@@ -92,7 +84,7 @@ async function generateLocales() {
statements += ');\n';
const outputPath = path.resolve(__dirname, `../src/locales/${locale}.ts`);
- fs.ensureDirSync(path.dirname(outputPath));
+ fs.mkdirSync(path.dirname(outputPath), { recursive: true });
fs.writeFileSync(outputPath, statements);
});
}
diff --git a/common/mockdata/tsconfig.json b/common/mockdata/tsconfig.json
index d4f9172636..a985c545f7 100644
--- a/common/mockdata/tsconfig.json
+++ b/common/mockdata/tsconfig.json
@@ -1,8 +1,8 @@
{
"extends": "@univerjs-infra/shared/tsconfigs/base",
"compilerOptions": {
- "rootDir": "src",
+ "rootDir": ".",
"outDir": "lib/types"
},
- "include": ["src"]
+ "include": ["src", "scripts"]
}
diff --git a/common/shared/esbuild/index.ts b/common/shared/esbuild/index.ts
index 6ab289daad..5418994c04 100644
--- a/common/shared/esbuild/index.ts
+++ b/common/shared/esbuild/index.ts
@@ -14,7 +14,7 @@
* limitations under the License.
*/
-import fs from 'fs-extra';
+import fs from 'node:fs';
interface IResolveArgs {
importer: string;
diff --git a/common/shared/locale/index.ts b/common/shared/locale/index.ts
new file mode 100644
index 0000000000..99f59d9d0d
--- /dev/null
+++ b/common/shared/locale/index.ts
@@ -0,0 +1,75 @@
+/**
+ * Copyright 2023-present DreamNum Co., Ltd.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+import { existsSync, readdirSync } from 'node:fs';
+import path from 'node:path';
+import process from 'node:process';
+
+export interface IDiscoverUniverUiLocalesOptions {
+ rootDir?: string;
+ uiPackageDir?: string;
+}
+
+function getCandidateUiPackageDirs(rootDir: string): string[] {
+ const dirs: string[] = [];
+ let current = path.resolve(rootDir);
+
+ while (true) {
+ dirs.push(
+ path.join(current, 'node_modules/@univerjs/ui'),
+ path.join(current, 'packages/ui'),
+ path.join(current, 'submodules/univer/packages/ui')
+ );
+
+ const parent = path.dirname(current);
+ if (parent === current) {
+ break;
+ }
+
+ current = parent;
+ }
+
+ return dirs;
+}
+
+function resolveUniverUiPackageDir(options: IDiscoverUniverUiLocalesOptions): string {
+ if (options.uiPackageDir) {
+ return path.resolve(options.uiPackageDir);
+ }
+
+ const rootDir = options.rootDir ?? process.cwd();
+ const uiPackageDir = getCandidateUiPackageDirs(rootDir).find((candidate) => existsSync(path.join(candidate, 'src/locale')));
+
+ if (!uiPackageDir) {
+ throw new Error(`Cannot find @univerjs/ui src/locale from ${path.resolve(rootDir)}`);
+ }
+
+ return uiPackageDir;
+}
+
+export function discoverUniverUiLocales(options: IDiscoverUniverUiLocalesOptions = {}): string[] {
+ const uiPackageDir = resolveUniverUiPackageDir(options);
+ const localeDir = path.join(uiPackageDir, 'src/locale');
+
+ if (!existsSync(localeDir)) {
+ throw new Error(`Cannot find @univerjs/ui locale directory: ${localeDir}`);
+ }
+
+ return readdirSync(localeDir, { withFileTypes: true })
+ .filter((entry) => entry.isFile() && entry.name.endsWith('.ts'))
+ .map((entry) => path.basename(entry.name, '.ts'))
+ .sort((left, right) => left.localeCompare(right));
+}
diff --git a/common/shared/package.json b/common/shared/package.json
index a07aa7ac45..5c90d85ab3 100644
--- a/common/shared/package.json
+++ b/common/shared/package.json
@@ -20,6 +20,7 @@
"./tailwind": "./tailwind/tailwind.config.ts",
"./postcss": "./postcss/postcss.config.mjs",
"./tsdown": "./tsdown/index.ts",
+ "./locale": "./locale/index.ts",
"./preset-build": "./preset-build/index.ts"
},
"main": "bin/index.ts",
@@ -38,7 +39,6 @@
"eslint-plugin-header": "^3.1.1",
"eslint-plugin-no-barrel-import": "^0.0.2",
"eslint-plugin-no-penetrating-import": "^0.0.1",
- "fs-extra": "^11.3.5",
"happy-dom": "20.10.1",
"javascript-obfuscator": "^5.4.3",
"postcss-preset-env": "^11.3.0",
@@ -51,7 +51,6 @@
"vitest": "^4.1.9"
},
"devDependencies": {
- "@types/fs-extra": "^11.0.4",
"@univerjs/icons": "1.12.0",
"@univerjs/icons-svg": "^1.12.0",
"@univerjs/protocol": "workspace:*",
diff --git a/common/shared/preset-build/constants.ts b/common/shared/preset-build/constants.ts
index 0878529263..fe4f762115 100644
--- a/common/shared/preset-build/constants.ts
+++ b/common/shared/preset-build/constants.ts
@@ -14,27 +14,5 @@
* limitations under the License.
*/
-export const PRESET_LOCALES = [
- 'ar-SA',
- 'ca-ES',
- 'de-DE',
- 'en-US',
- 'es-ES',
- 'fa-IR',
- 'fr-FR',
- 'id-ID',
- 'it-IT',
- 'ja-JP',
- 'ko-KR',
- 'pl-PL',
- 'pt-BR',
- 'ru-RU',
- 'sk-SK',
- 'vi-VN',
- 'zh-CN',
- 'zh-HK',
- 'zh-TW',
-] as const;
-
export const PRESET_LOCALE_SOURCE_DIR = 'src/locales';
export const PRESET_UMD_OUTPUT_DIR = 'lib/umd';
diff --git a/common/shared/preset-build/locale.ts b/common/shared/preset-build/locale.ts
index 062e62d803..ddf71fc0b6 100644
--- a/common/shared/preset-build/locale.ts
+++ b/common/shared/preset-build/locale.ts
@@ -17,7 +17,8 @@
import type { IGeneratePresetLocalesOptions, IPresetPackageJson } from './types';
import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs';
import path from 'node:path';
-import { PRESET_LOCALE_SOURCE_DIR, PRESET_LOCALES } from './constants';
+import { discoverUniverUiLocales } from '../locale';
+import { PRESET_LOCALE_SOURCE_DIR } from './constants';
function readPackageJson(packageDir: string): IPresetPackageJson {
return JSON.parse(readFileSync(path.join(packageDir, 'package.json'), 'utf8')) as IPresetPackageJson;
@@ -78,7 +79,7 @@ export function generatePresetLocales(options: IGeneratePresetLocalesOptions): s
const generated: string[] = [];
- for (const locale of PRESET_LOCALES) {
+ for (const locale of discoverUniverUiLocales({ rootDir: packageDir })) {
const dependenciesWithLocale = dependencyNames
.map((dependencyName) => ({
dependencyName,
diff --git a/common/shared/preset-build/umd.ts b/common/shared/preset-build/umd.ts
index adcdb8b65e..1b7d09f8e1 100644
--- a/common/shared/preset-build/umd.ts
+++ b/common/shared/preset-build/umd.ts
@@ -17,7 +17,8 @@
import type { IPrependPresetUmdOptions } from './types';
import { existsSync, readFileSync, writeFileSync } from 'node:fs';
import path from 'node:path';
-import { PRESET_LOCALES, PRESET_UMD_OUTPUT_DIR } from './constants';
+import { discoverUniverUiLocales } from '../locale';
+import { PRESET_UMD_OUTPUT_DIR } from './constants';
function readRequiredFile(filePath: string, label: string) {
if (!existsSync(filePath)) {
@@ -99,7 +100,12 @@ export function prependPresetUmd(options: IPrependPresetUmdOptions): void {
prependFile(rootOutput, [...rootChunks, ...rootFacadeChunks]);
- for (const locale of PRESET_LOCALES) {
+ const localeOutputDir = path.join(outputDir, 'locales');
+ if (!existsSync(localeOutputDir)) {
+ return;
+ }
+
+ for (const locale of discoverUniverUiLocales({ rootDir: packageDir })) {
const localeOutput = path.join(outputDir, 'locales', `${locale}.js`);
if (!existsSync(localeOutput)) {
diff --git a/common/shared/tsconfig.json b/common/shared/tsconfig.json
index 496521266e..8b40b9ca98 100644
--- a/common/shared/tsconfig.json
+++ b/common/shared/tsconfig.json
@@ -9,6 +9,7 @@
"esbuild/**/*.ts",
"eslint/**/*.ts",
"eslint/**/*.d.ts",
+ "locale/**/*.ts",
"tailwind/**/*.ts",
"tsdown/**/*.ts",
"vitest/**/*.ts"
diff --git a/common/shared/tsdown/utils/cleanup-pkg.ts b/common/shared/tsdown/utils/cleanup-pkg.ts
index af1b4056c9..d6ce72aeae 100644
--- a/common/shared/tsdown/utils/cleanup-pkg.ts
+++ b/common/shared/tsdown/utils/cleanup-pkg.ts
@@ -16,8 +16,8 @@
/* eslint-disable max-lines-per-function */
import type { IPackageJson } from '../types';
+import fs from 'node:fs';
import path from 'node:path';
-import fs from 'fs-extra';
import sortKeys from 'sort-keys';
import * as ts from 'typescript';
import { peerDepsMap } from '../data/peer-deps';
@@ -434,9 +434,17 @@ function assignPeerDependencies(pkg: CleanupPackageJson, peerDeps: StringMap) {
pkg.peerDependencies = merged;
}
+function readJsonFile<T>(filePath: string): T {
+ return JSON.parse(fs.readFileSync(filePath, 'utf8')) as T;
+}
+
+function writeJsonFile(filePath: string, value: unknown) {
+ fs.writeFileSync(filePath, `${JSON.stringify(value, null, 4)}\n`);
+}
+
export function cleanupPackageJson(packageDir: string, packageJson: IPackageJson) {
const pkgPath = path.resolve(packageDir, 'package.json');
- const pkg = fs.readJSONSync(pkgPath) as CleanupPackageJson;
+ const pkg = readJsonFile<CleanupPackageJson>(pkgPath);
const dependencyGroups = deriveDependencyGroups(packageDir, packageJson);
applyPublishManifest(pkg, packageDir);
@@ -446,5 +454,5 @@ export function cleanupPackageJson(packageDir: string, packageJson: IPackageJson
// This rewrite only owns @univerjs-managed entries; unrelated dev deps stay intact.
assignDependencyGroup(pkg, 'devDependencies', dependencyGroups.devDependencies);
- fs.writeJSONSync(pkgPath, pkg, { spaces: 4 });
+ writeJsonFile(pkgPath, pkg);
}
diff --git a/common/storybook/package.json b/common/storybook/package.json
index fa07ed6f5e..86422a96e0 100644
--- a/common/storybook/package.json
+++ b/common/storybook/package.json
@@ -37,9 +37,7 @@
"typescript": "^6.0.3"
},
"devDependencies": {
- "@types/fs-extra": "^11.0.4",
"@univerjs-infra/shared": "workspace:*",
- "fs-extra": "^11.3.5",
"postcss": "^8.5.15",
"tailwindcss": "3.4.18",
"tailwindcss-animate": "^1.0.7"
diff --git a/common/storybook/tailwind.config.ts b/common/storybook/tailwind.config.ts
index be8692a018..62915ae6bf 100644
--- a/common/storybook/tailwind.config.ts
+++ b/common/storybook/tailwind.config.ts
@@ -15,10 +15,10 @@
*/
import type { Config } from 'tailwindcss';
+import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import preset from '@univerjs-infra/shared/tailwind';
-import fs from 'fs-extra';
import animate from 'tailwindcss-animate';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
diff --git a/common/storybook/tsconfig.json b/common/storybook/tsconfig.json
index 4d363bfd74..02484b5c85 100644
--- a/common/storybook/tsconfig.json
+++ b/common/storybook/tsconfig.json
@@ -4,7 +4,6 @@
"useDefineForClassFields": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
- "baseUrl": ".",
"rootDir": ".",
"module": "esnext",
"moduleResolution": "bundler",
@@ -14,7 +13,8 @@
"allowSyntheticDefaultImports": true
},
"include": [
- ".storybook/**/*"
+ ".storybook/**/*",
+ "tailwind.config.ts"
],
"exclude": ["src/**/*.spec.ts", "src/**/*.test.ts"]
}
diff --git a/examples/package.json b/examples/package.json
index a5c663ef38..9779eecdc4 100644
--- a/examples/package.json
+++ b/examples/package.json
@@ -88,17 +88,15 @@
},
"devDependencies": {
"@clack/prompts": "^1.5.1",
- "@types/fs-extra": "^11.0.4",
"@types/minimist": "^1.2.5",
"@univerjs-infra/shared": "workspace:*",
"detect-port": "^2.1.0",
- "esbuild": "^0.28.0",
+ "esbuild": "^0.28.1",
"esbuild-plugin-alias": "^0.2.1",
"esbuild-plugin-clean": "^1.0.1",
"esbuild-plugin-copy": "^2.1.1",
"esbuild-plugin-vue3": "^0.5.1",
"esbuild-style-plugin": "^1.6.3",
- "fs-extra": "^11.3.5",
"minimist": "^1.2.8",
"postcss": "^8.5.15",
"tailwindcss": "3.4.18",
diff --git a/examples/scripts/select-entries.ts b/examples/scripts/select-entries.ts
index 54268e9c5d..b7f86107e1 100644
--- a/examples/scripts/select-entries.ts
+++ b/examples/scripts/select-entries.ts
@@ -14,12 +14,12 @@
* limitations under the License.
*/
-import type { DemoDefinition } from './sync-demos';
+import type { IDemoDefinition } from './sync-demos';
+import fs from 'node:fs';
import path from 'node:path';
import process from 'node:process';
import { fileURLToPath } from 'node:url';
-import * as p from '@clack/prompts';
-import fs from 'fs-extra';
+import { cancel, isCancel, multiselect } from '@clack/prompts';
import { discoverDemos, syncDemoArtifacts } from './sync-demos';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -47,23 +47,23 @@ export async function selectEntries(): Promise<ISelectionResult> {
};
}
- const saved = await readSelection();
+ const saved = readSelection();
const merged = mergeSelection(demos, saved);
const selectedDirs = await promptSelection(demos, merged);
- await writeSelection(selectedDirs, demos);
+ writeSelection(selectedDirs, demos);
const { entryPoints } = syncDemoArtifacts(selectedDirs);
return { entryPoints, selectedDirs };
}
-export async function readSelection(filePath = SELECTION_FILE): Promise<ISelectionFile | null> {
+function readSelection(filePath = SELECTION_FILE): ISelectionFile | null {
try {
- if (!await fs.pathExists(filePath)) {
+ if (!fs.existsSync(filePath)) {
return null;
}
- const content = await fs.readFile(filePath, 'utf-8');
+ const content = fs.readFileSync(filePath, 'utf-8');
const parsed = JSON.parse(content);
// Backward compat: old format was just an array of strings
if (Array.isArray(parsed)) {
@@ -81,7 +81,7 @@ export async function readSelection(filePath = SELECTION_FILE): Promise<ISelecti
}
}
-export function mergeSelection(demos: DemoDefinition[], saved: ISelectionFile | null): string[] {
+export function mergeSelection(demos: IDemoDefinition[], saved: ISelectionFile | null): string[] {
const currentDirs = new Set(demos.map((d) => d.dir));
if (!saved) {
return [...currentDirs].sort();
@@ -97,7 +97,7 @@ export function mergeSelection(demos: DemoDefinition[], saved: ISelectionFile |
return [...merged].sort();
}
-async function promptSelection(demos: DemoDefinition[], initial: string[]): Promise<string[]> {
+async function promptSelection(demos: IDemoDefinition[], initial: string[]): Promise<string[]> {
const options = demos.map((demo) => ({
value: demo.dir,
label: demo.title,
@@ -105,24 +105,24 @@ async function promptSelection(demos: DemoDefinition[], initial: string[]): Prom
const initialSet = new Set(initial);
- const result = await p.multiselect({
+ const result = await multiselect({
message: 'Select demo entries to start (a: toggle all, space: select, enter: confirm, esc: cancel)',
options,
initialValues: options.filter((opt) => initialSet.has(opt.value)).map((opt) => opt.value),
});
- if (p.isCancel(result)) {
- p.cancel('Operation cancelled');
+ if (isCancel(result)) {
+ cancel('Operation cancelled');
process.exit(0);
}
return result;
}
-async function writeSelection(selectedDirs: string[], demos: DemoDefinition[]): Promise<void> {
+function writeSelection(selectedDirs: string[], demos: IDemoDefinition[]) {
const file: ISelectionFile = {
selected: selectedDirs,
known: demos.map((d) => d.dir),
};
- await fs.writeFile(SELECTION_FILE, `${JSON.stringify(file, null, 4)}\n`);
+ fs.writeFileSync(SELECTION_FILE, `${JSON.stringify(file, null, 4)}\n`);
}
diff --git a/examples/scripts/sync-demos.ts b/examples/scripts/sync-demos.ts
index 75c75f7019..db1bdde1df 100644
--- a/examples/scripts/sync-demos.ts
+++ b/examples/scripts/sync-demos.ts
@@ -14,11 +14,10 @@
* limitations under the License.
*/
-/* eslint-disable node/prefer-global/process */
-
+import fs from 'node:fs';
import path from 'node:path';
+import process from 'node:process';
import { fileURLToPath } from 'node:url';
-import fs from 'fs-extra';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
@@ -70,7 +69,7 @@ const indexTemplate = `<!doctype html>
</html>
`;
-export interface DemoDefinition {
+export interface IDemoDefinition {
dir: string;
entryPoints: string[];
href: `./${string}/`;
@@ -118,7 +117,7 @@ function getDemoEntryFiles(exampleDir: string) {
export function discoverDemos() {
return fs.readdirSync(SRC_DIR)
.sort((left, right) => left.localeCompare(right))
- .map((dir): DemoDefinition | null => {
+ .map((dir): IDemoDefinition | null => {
const exampleDir = path.resolve(SRC_DIR, dir);
if (!fs.statSync(exampleDir).isDirectory()) {
@@ -138,15 +137,15 @@ export function discoverDemos() {
entryPoints: entryFiles.map((entryFile) => `./src/${dir}/${entryFile}`),
};
})
- .filter((demo): demo is DemoDefinition => demo !== null);
+ .filter((demo): demo is IDemoDefinition => demo !== null);
}
-function filterDemos(demos: DemoDefinition[], selectedDirs?: string[]): DemoDefinition[] {
+function filterDemos(demos: IDemoDefinition[], selectedDirs?: string[]): IDemoDefinition[] {
return selectedDirs ? demos.filter((demo) => selectedDirs.includes(demo.dir)) : demos;
}
-function syncDemoHtml(demos: DemoDefinition[]) {
- fs.ensureDirSync(PUBLIC_DIR);
+function syncDemoHtml(demos: IDemoDefinition[]) {
+ fs.mkdirSync(PUBLIC_DIR, { recursive: true });
const activeDemoDirs = new Set(demos.map((demo) => demo.dir));
@@ -166,18 +165,18 @@ function syncDemoHtml(demos: DemoDefinition[]) {
}
if (fs.existsSync(path.resolve(entryPath, 'index.html'))) {
- fs.removeSync(entryPath);
+ fs.rmSync(entryPath, { force: true, recursive: true });
}
});
demos.forEach((demo) => {
const targetDir = path.resolve(PUBLIC_DIR, demo.dir);
- fs.ensureDirSync(targetDir);
+ fs.mkdirSync(targetDir, { recursive: true });
fs.writeFileSync(path.resolve(targetDir, 'index.html'), indexTemplate);
});
}
-function syncDemosModule(demos: DemoDefinition[]) {
+function syncDemosModule(demos: IDemoDefinition[]) {
const demoImports = demos.map(({ dir, href, title }) => ({ dir, href, title }));
const content = `${[
diff --git a/examples/tailwind.config.ts b/examples/tailwind.config.ts
index 1730c01793..10f3dcbf46 100644
--- a/examples/tailwind.config.ts
+++ b/examples/tailwind.config.ts
@@ -15,10 +15,10 @@
*/
import type { Config } from 'tailwindcss';
+import fs from 'node:fs';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import preset from '@univerjs-infra/shared/tailwind';
-import fs from 'fs-extra';
import animate from 'tailwindcss-animate';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
diff --git a/examples/tsconfig.json b/examples/tsconfig.json
index a7e6aeac52..8842cc78e8 100644
--- a/examples/tsconfig.json
+++ b/examples/tsconfig.json
@@ -5,5 +5,5 @@
"allowArbitraryExtensions": true,
"outDir": "local"
},
- "include": ["src"]
+ "include": ["src", "scripts", "tailwind.config.ts"]
}
diff --git a/package.json b/package.json
index cb44c51bef..dcc5b0915b 100644
--- a/package.json
+++ b/package.json
@@ -65,7 +65,6 @@
"@playwright/test": "^1.57.0",
"@release-it-plugins/workspaces": "^5.0.3",
"@release-it/conventional-changelog": "^10.0.6",
- "@types/fs-extra": "^11.0.4",
"@types/node": "^25.9.3",
"@types/react": "19.2.17",
"@types/react-dom": "19.2.3",
@@ -76,7 +75,6 @@
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-react-hooks": "^7.1.1",
"eslint-plugin-react-refresh": "^0.5.2",
- "fs-extra": "^11.3.5",
"husky": "^9.1.7",
"lint-staged": "^17.0.7",
"posthog-node": "^5.37.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index f8c3965fac..261d40e77f 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -39,9 +39,6 @@ importers:
'@release-it/conventional-changelog':
specifier: ^10.0.6
- '@types/fs-extra':
- specifier: ^11.0.4
- version: 11.0.4
'@types/node':
specifier: ^25.9.3
version: 25.9.3
@@ -72,9 +69,6 @@ importers:
eslint-plugin-react-refresh:
specifier: ^0.5.2
- fs-extra:
- specifier: ^11.3.5
- version: 11.3.5
husky:
specifier: ^9.1.7
version: 9.1.7
@@ -110,7 +104,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
common/debugger:
dependencies:
@@ -311,9 +305,6 @@ importers:
'@univerjs-infra/shared':
specifier: workspace:*
version: link:../shared
- fs-extra:
- specifier: ^11.3.5
- version: 11.3.5
typescript:
specifier: ^6.0.3
version: 6.0.3
@@ -344,9 +335,6 @@ importers:
eslint-plugin-no-penetrating-import:
specifier: ^0.0.1
- fs-extra:
- specifier: ^11.3.5
- version: 11.3.5
happy-dom:
specifier: 20.10.1
version: 20.10.1
@@ -373,14 +361,11 @@ importers:
unplugin-vue:
specifier: ^7.2.0
vitest:
specifier: ^4.1.9
devDependencies:
- '@types/fs-extra':
- specifier: ^11.0.4
- version: 11.0.4
'@univerjs/icons':
specifier: 1.12.0
@@ -404,16 +389,16 @@ importers:
'@storybook/addon-docs':
specifier: ^10.3.6
'@storybook/addon-links':
specifier: ^10.3.6
'@storybook/addon-styling-webpack':
specifier: ^3.0.2
'@storybook/addon-webpack5-compiler-swc':
specifier: ^4.0.3
'@storybook/icons':
specifier: ^2.0.2
@@ -422,7 +407,7 @@ importers:
'@storybook/react-webpack5':
specifier: ^10.3.6
'@univerjs/core':
specifier: workspace:*
version: link:../../packages/core
@@ -437,19 +422,19 @@ importers:
version: link:../../packages/ui
css-loader:
specifier: ^7.1.4
postcss-loader:
specifier: ^8.2.1
storybook:
specifier: ^10.3.6
storybook-addon-swc:
specifier: ^1.2.0
style-loader:
specifier: ^4.0.0
tsconfig-paths-webpack-plugin:
specifier: ^4.2.0
version: 4.2.0
@@ -457,15 +442,9 @@ importers:
specifier: ^6.0.3
version: 6.0.3
devDependencies:
- '@types/fs-extra':
- specifier: ^11.0.4
- version: 11.0.4
'@univerjs-infra/shared':
specifier: workspace:*
version: link:../shared
- fs-extra:
- specifier: ^11.3.5
- version: 11.3.5
postcss:
specifier: ^8.5.15
version: 8.5.15
@@ -689,9 +668,6 @@ importers:
'@clack/prompts':
specifier: ^1.5.1
version: 1.5.1
- '@types/fs-extra':
- specifier: ^11.0.4
- version: 11.0.4
'@types/minimist':
specifier: ^1.2.5
version: 1.2.5
@@ -702,26 +678,23 @@ importers:
specifier: ^2.1.0
version: 2.1.0
esbuild:
- specifier: ^0.28.0
- version: 0.28.0
+ specifier: ^0.28.1
+ version: 0.28.1
esbuild-plugin-alias:
specifier: ^0.2.1
version: 0.2.1
esbuild-plugin-clean:
specifier: ^1.0.1
- version: 1.0.1([email protected])
+ version: 1.0.1([email protected])
esbuild-plugin-copy:
specifier: ^2.1.1
- version: 2.1.1([email protected])
+ version: 2.1.1([email protected])
esbuild-plugin-vue3:
specifier: ^0.5.1
esbuild-style-plugin:
specifier: ^1.6.3
version: 1.6.3
- fs-extra:
- specifier: ^11.3.5
- version: 11.3.5
minimist:
specifier: ^1.2.8
version: 1.2.8
@@ -779,7 +752,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/core:
dependencies:
@@ -837,7 +810,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/data-validation:
dependencies:
@@ -862,7 +835,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/design:
dependencies:
@@ -938,7 +911,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/docs:
dependencies:
@@ -960,7 +933,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/docs-drawing:
dependencies:
@@ -979,7 +952,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/docs-drawing-ui:
dependencies:
@@ -1031,7 +1004,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/docs-hyper-link:
dependencies:
@@ -1047,7 +1020,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/docs-hyper-link-ui:
dependencies:
@@ -1096,7 +1069,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/docs-mention-ui:
dependencies:
@@ -1139,7 +1112,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/docs-quick-insert-ui:
dependencies:
@@ -1197,7 +1170,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/docs-thread-comment-ui:
dependencies:
@@ -1246,7 +1219,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/docs-ui:
dependencies:
@@ -1301,7 +1274,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/drawing:
dependencies:
@@ -1323,7 +1296,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/drawing-ui:
dependencies:
@@ -1366,7 +1339,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/engine-formula:
dependencies:
@@ -1394,7 +1367,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/engine-render:
dependencies:
@@ -1440,7 +1413,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/find-replace:
dependencies:
@@ -1480,7 +1453,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/network:
dependencies:
@@ -1499,7 +1472,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/protocol:
dependencies:
@@ -1518,7 +1491,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/rpc:
dependencies:
@@ -1537,7 +1510,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/rpc-node:
dependencies:
@@ -1559,7 +1532,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets:
dependencies:
@@ -1593,7 +1566,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-conditional-formatting:
dependencies:
@@ -1627,7 +1600,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-conditional-formatting-ui:
dependencies:
@@ -1685,7 +1658,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-crosshair-highlight:
dependencies:
@@ -1731,7 +1704,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-data-validation:
dependencies:
@@ -1765,7 +1738,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-data-validation-ui:
dependencies:
@@ -1826,7 +1799,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-drawing:
dependencies:
@@ -1851,7 +1824,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-drawing-ui:
dependencies:
@@ -1909,7 +1882,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-filter:
dependencies:
@@ -1940,7 +1913,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-filter-ui:
dependencies:
@@ -1995,7 +1968,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-find-replace:
dependencies:
@@ -2026,7 +1999,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-formula:
dependencies:
@@ -2060,7 +2033,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-formula-ui:
dependencies:
@@ -2118,7 +2091,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-hyper-link:
dependencies:
@@ -2146,7 +2119,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-hyper-link-ui:
dependencies:
@@ -2210,7 +2183,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-note:
dependencies:
@@ -2241,7 +2214,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-note-ui:
dependencies:
@@ -2290,7 +2263,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-numfmt:
dependencies:
@@ -2315,7 +2288,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-numfmt-ui:
dependencies:
@@ -2367,7 +2340,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-sort:
dependencies:
@@ -2389,7 +2362,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-sort-ui:
dependencies:
@@ -2441,7 +2414,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-table:
dependencies:
@@ -2472,7 +2445,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-table-ui:
dependencies:
@@ -2530,7 +2503,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-thread-comment:
dependencies:
@@ -2558,7 +2531,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-thread-comment-ui:
dependencies:
@@ -2613,7 +2586,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/sheets-ui:
dependencies:
@@ -2674,7 +2647,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/slides:
dependencies:
@@ -2696,7 +2669,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/slides-ui:
dependencies:
@@ -2748,7 +2721,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/telemetry:
dependencies:
@@ -2764,7 +2737,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/themes:
devDependencies:
@@ -2789,7 +2762,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/thread-comment-ui:
dependencies:
@@ -2832,7 +2805,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/ui:
dependencies:
@@ -2884,7 +2857,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/ui-adapter-vue3:
dependencies:
@@ -2903,7 +2876,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
vue:
specifier: ^3.5.34
version: 3.5.34([email protected])
@@ -2925,7 +2898,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/uniscript:
dependencies:
@@ -2968,7 +2941,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages/watermark:
dependencies:
@@ -2990,7 +2963,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
presets:
dependencies:
@@ -3669,7 +3642,7 @@ importers:
version: 6.0.3
vitest:
specifier: ^4.1.9
packages:
@@ -4436,6 +4409,12 @@ packages:
cpu: [ppc64]
os: [aix]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ==}
+ engines: {node: '>=18'}
+ cpu: [ppc64]
+ os: [aix]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==}
engines: {node: '>=18'}
@@ -4448,6 +4427,12 @@ packages:
cpu: [arm64]
os: [android]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [android]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==}
engines: {node: '>=18'}
@@ -4460,6 +4445,12 @@ packages:
cpu: [arm]
os: [android]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ==}
+ engines: {node: '>=18'}
+ cpu: [arm]
+ os: [android]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==}
engines: {node: '>=18'}
@@ -4472,6 +4463,12 @@ packages:
cpu: [x64]
os: [android]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [android]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==}
engines: {node: '>=18'}
@@ -4484,6 +4481,12 @@ packages:
cpu: [arm64]
os: [darwin]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [darwin]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==}
engines: {node: '>=18'}
@@ -4496,6 +4499,12 @@ packages:
cpu: [x64]
os: [darwin]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [darwin]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==}
engines: {node: '>=18'}
@@ -4508,6 +4517,12 @@ packages:
cpu: [arm64]
os: [freebsd]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [freebsd]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==}
engines: {node: '>=18'}
@@ -4520,6 +4535,12 @@ packages:
cpu: [x64]
os: [freebsd]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [freebsd]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==}
engines: {node: '>=18'}
@@ -4532,6 +4553,12 @@ packages:
cpu: [arm64]
os: [linux]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [linux]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==}
engines: {node: '>=18'}
@@ -4544,6 +4571,12 @@ packages:
cpu: [arm]
os: [linux]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ==}
+ engines: {node: '>=18'}
+ cpu: [arm]
+ os: [linux]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==}
engines: {node: '>=18'}
@@ -4556,6 +4589,12 @@ packages:
cpu: [ia32]
os: [linux]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w==}
+ engines: {node: '>=18'}
+ cpu: [ia32]
+ os: [linux]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==}
engines: {node: '>=18'}
@@ -4568,6 +4607,12 @@ packages:
cpu: [loong64]
os: [linux]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg==}
+ engines: {node: '>=18'}
+ cpu: [loong64]
+ os: [linux]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==}
engines: {node: '>=18'}
@@ -4580,6 +4625,12 @@ packages:
cpu: [mips64el]
os: [linux]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ==}
+ engines: {node: '>=18'}
+ cpu: [mips64el]
+ os: [linux]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==}
engines: {node: '>=18'}
@@ -4592,6 +4643,12 @@ packages:
cpu: [ppc64]
os: [linux]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ==}
+ engines: {node: '>=18'}
+ cpu: [ppc64]
+ os: [linux]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==}
engines: {node: '>=18'}
@@ -4604,6 +4661,12 @@ packages:
cpu: [riscv64]
os: [linux]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ==}
+ engines: {node: '>=18'}
+ cpu: [riscv64]
+ os: [linux]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==}
engines: {node: '>=18'}
@@ -4616,6 +4679,12 @@ packages:
cpu: [s390x]
os: [linux]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag==}
+ engines: {node: '>=18'}
+ cpu: [s390x]
+ os: [linux]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==}
engines: {node: '>=18'}
@@ -4628,6 +4697,12 @@ packages:
cpu: [x64]
os: [linux]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [linux]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==}
engines: {node: '>=18'}
@@ -4640,6 +4715,12 @@ packages:
cpu: [arm64]
os: [netbsd]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [netbsd]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==}
engines: {node: '>=18'}
@@ -4652,6 +4733,12 @@ packages:
cpu: [x64]
os: [netbsd]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [netbsd]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==}
engines: {node: '>=18'}
@@ -4664,6 +4751,12 @@ packages:
cpu: [arm64]
os: [openbsd]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [openbsd]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==}
engines: {node: '>=18'}
@@ -4676,6 +4769,12 @@ packages:
cpu: [x64]
os: [openbsd]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [openbsd]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==}
engines: {node: '>=18'}
@@ -4688,6 +4787,12 @@ packages:
cpu: [arm64]
os: [openharmony]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-ge+Z7EXFNt2BO1oAMsVpiQ8EwndV9i1xXerAeTIK7AtPs3bKFXQM7nlRxDSIUIMeueR1CNXxqztLzdNeReKBJg==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [openharmony]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==}
engines: {node: '>=18'}
@@ -4700,6 +4805,12 @@ packages:
cpu: [x64]
os: [sunos]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [sunos]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==}
engines: {node: '>=18'}
@@ -4712,6 +4823,12 @@ packages:
cpu: [arm64]
os: [win32]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA==}
+ engines: {node: '>=18'}
+ cpu: [arm64]
+ os: [win32]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==}
engines: {node: '>=18'}
@@ -4724,6 +4841,12 @@ packages:
cpu: [ia32]
os: [win32]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg==}
+ engines: {node: '>=18'}
+ cpu: [ia32]
+ os: [win32]
+
'@esbuild/[email protected]':
resolution: {integrity: sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==}
engines: {node: '>=18'}
@@ -4736,6 +4859,12 @@ packages:
cpu: [x64]
os: [win32]
+ '@esbuild/[email protected]':
+ resolution: {integrity: sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A==}
+ engines: {node: '>=18'}
+ cpu: [x64]
+ os: [win32]
+
'@eslint-community/[email protected]':
resolution: {integrity: sha512-Ql2nJFwA8wUGpILYGOQaT1glPsmvEwE0d+a+l7AALLzQvInqdbXJdx7aSu0DpUX9dB1wMVBMhm99/++S3MdEtQ==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
@@ -6619,9 +6748,6 @@ packages:
resolution: {integrity: sha512-GhdPgy1el4/ImP05X05Uw4cw2/M93BCUmnEvWZNStlCzEKME4Fkk+YpoA5OiHNQmoS7Cafb8Xa3Pya8m1Qrzeg==}
- '@types/[email protected]':
- resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==}
-
resolution: {integrity: sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==}
@@ -6634,9 +6760,6 @@ packages:
resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==}
- '@types/[email protected]':
- resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==}
-
resolution: {integrity: sha512-trgaNyfU+Xh2Tc+ABIb44a5AYUpicB3uwirOioeOkNPPbmgRNtcWyDeeFRzjPZENO9Vq8gvVqfhaaXWLlevVwg==}
@@ -8254,6 +8377,11 @@ packages:
engines: {node: '>=18'}
hasBin: true
+ resolution: {integrity: sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw==}
+ engines: {node: '>=18'}
+ hasBin: true
+
resolution: {integrity: sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==}
engines: {node: '>=6'}
@@ -8744,10 +8872,6 @@ packages:
resolution: {integrity: sha512-oRXApq54ETRj4eMiFzGnHWGy+zo5raudjuxN0b8H7s/RU2oW0Wvsx9O0ACRN/kRq9E8Vu/ReskGB5o3ji+FzHQ==}
engines: {node: '>=12'}
- resolution: {integrity: sha512-eKpRKAovdpZtR1WopLHxlBWvAgPny3c4gX1G5Jhwmmw4XJj0ifSD5qB5TOo8hmA0wlRKDAOAhEE1yVPgs6Fgcg==}
- engines: {node: '>=14.14'}
-
resolution: {integrity: sha512-QMUezzXWII9EV5aTFXW1UBVUO77wYPpjqIF8/AviUCThNeSYZykpoTixUeaNNBwmCev0AMDWMAni+f8Hxb1IFw==}
@@ -13008,156 +13132,234 @@ snapshots:
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
'@esbuild/[email protected]':
optional: true
'@esbuild/[email protected]':
optional: true
+ '@esbuild/[email protected]':
+ optional: true
+
dependencies:
escape-string-regexp: 4.0.0
@@ -14464,10 +14666,10 @@ snapshots:
'@standard-schema/[email protected]': {}
dependencies:
'@mdx-js/react': 3.1.1(@types/[email protected])([email protected])
react: 19.2.7
@@ -14488,36 +14690,36 @@ snapshots:
optionalDependencies:
react: 19.2.7
dependencies:
- webpack: 5.106.2(@swc/[email protected])([email protected])
+ webpack: 5.106.2(@swc/[email protected])([email protected])
dependencies:
'@swc/core': 1.13.5
transitivePeerDependencies:
- '@swc/helpers'
- webpack
dependencies:
case-sensitive-paths-webpack-plugin: 2.4.0
cjs-module-lexer: 1.4.3
es-module-lexer: 1.7.0
- fork-ts-checker-webpack-plugin: 9.1.0([email protected])([email protected](@swc/[email protected])([email protected]))
- html-webpack-plugin: 5.6.7([email protected](@swc/[email protected])([email protected]))
+ fork-ts-checker-webpack-plugin: 9.1.0([email protected])([email protected](@swc/[email protected])([email protected]))
+ html-webpack-plugin: 5.6.7([email protected](@swc/[email protected])([email protected]))
magic-string: 0.30.21
ts-dedent: 2.2.0
- webpack: 5.106.2(@swc/[email protected])([email protected])
- webpack-dev-middleware: 6.1.3([email protected](@swc/[email protected])([email protected]))
+ webpack: 5.106.2(@swc/[email protected])([email protected])
+ webpack-dev-middleware: 6.1.3([email protected](@swc/[email protected])([email protected]))
webpack-hot-middleware: 2.26.1
webpack-virtual-modules: 0.6.2
optionalDependencies:
@@ -14534,15 +14736,15 @@ snapshots:
ts-dedent: 2.2.0
dependencies:
unplugin: 2.3.11
optionalDependencies:
- esbuild: 0.28.0
+ esbuild: 0.28.1
rollup: 4.55.1
- webpack: 5.106.2(@swc/[email protected])([email protected])
+ webpack: 5.106.2(@swc/[email protected])([email protected])
'@storybook/[email protected]': {}
@@ -14551,10 +14753,10 @@ snapshots:
react: 19.2.7
react-dom: 19.2.7([email protected])
dependencies:
- '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0([email protected])([email protected](@swc/[email protected])([email protected]))
+ '@storybook/react-docgen-typescript-plugin': 1.0.6--canary.9.0c3f3b7.0([email protected])([email protected](@swc/[email protected])([email protected]))
'@types/semver': 7.7.1
magic-string: 0.30.21
react: 19.2.7
@@ -14564,7 +14766,7 @@ snapshots:
semver: 7.7.4
tsconfig-paths: 4.2.0
- webpack: 5.106.2(@swc/[email protected])([email protected])
+ webpack: 5.106.2(@swc/[email protected])([email protected])
optionalDependencies:
typescript: 6.0.3
transitivePeerDependencies:
@@ -14574,7 +14776,7 @@ snapshots:
- uglify-js
- webpack-cli
dependencies:
debug: 4.4.3
endent: 2.1.0
@@ -14584,7 +14786,7 @@ snapshots:
react-docgen-typescript: 2.4.0([email protected])
tslib: 2.8.1
typescript: 6.0.3
- webpack: 5.106.2(@swc/[email protected])([email protected])
+ webpack: 5.106.2(@swc/[email protected])([email protected])
transitivePeerDependencies:
- supports-color
@@ -14594,10 +14796,10 @@ snapshots:
react-dom: 19.2.7([email protected])
dependencies:
react: 19.2.7
react-dom: 19.2.7([email protected])
@@ -14816,11 +15018,6 @@ snapshots:
'@types/[email protected]': {}
- '@types/[email protected]':
- dependencies:
- '@types/jsonfile': 6.1.4
- '@types/node': 25.9.3
-
dependencies:
'@types/unist': 3.0.3
@@ -14831,10 +15028,6 @@ snapshots:
'@types/[email protected]': {}
- '@types/[email protected]':
- dependencies:
- '@types/node': 25.9.3
-
'@types/[email protected]': {}
'@types/[email protected]': {}
@@ -14965,8 +15158,8 @@ snapshots:
'@typescript-eslint/[email protected]([email protected])':
dependencies:
- '@typescript-eslint/tsconfig-utils': 8.61.0([email protected])
- '@typescript-eslint/types': 8.61.0
+ '@typescript-eslint/tsconfig-utils': 8.56.1([email protected])
+ '@typescript-eslint/types': 8.56.1
debug: 4.4.3
typescript: 6.0.3
transitivePeerDependencies:
@@ -15225,7 +15418,7 @@ snapshots:
magicast: 0.5.3
obug: 2.1.3
tinyrainbow: 3.1.0
transitivePeerDependencies:
- supports-color
@@ -15237,7 +15430,7 @@ snapshots:
optionalDependencies:
typescript: 6.0.3
transitivePeerDependencies:
- supports-color
@@ -15258,13 +15451,13 @@ snapshots:
chai: 6.2.2
tinyrainbow: 3.1.0
dependencies:
'@vitest/spy': 4.1.9
estree-walker: 3.0.3
magic-string: 0.30.21
optionalDependencies:
'@vitest/[email protected]':
dependencies:
@@ -16225,7 +16418,7 @@ snapshots:
postcss-selector-parser: 7.1.1
postcss-value-parser: 4.2.0
dependencies:
icss-utils: 5.1.0([email protected])
postcss: 8.5.15
@@ -16236,7 +16429,7 @@ snapshots:
postcss-value-parser: 4.2.0
semver: 7.7.4
optionalDependencies:
- webpack: 5.106.2(@swc/[email protected])([email protected])
+ webpack: 5.106.2(@swc/[email protected])([email protected])
dependencies:
@@ -16627,17 +16820,17 @@ snapshots:
dependencies:
chalk: 4.1.2
del: 6.1.1
- esbuild: 0.28.0
+ esbuild: 0.28.1
dependencies:
chalk: 4.1.2
chokidar: 3.6.0
- esbuild: 0.28.0
+ esbuild: 0.28.1
fs-extra: 10.1.0
globby: 11.1.0
@@ -16715,6 +16908,35 @@ snapshots:
'@esbuild/win32-ia32': 0.28.0
'@esbuild/win32-x64': 0.28.0
+ optionalDependencies:
+ '@esbuild/aix-ppc64': 0.28.1
+ '@esbuild/android-arm': 0.28.1
+ '@esbuild/android-arm64': 0.28.1
+ '@esbuild/android-x64': 0.28.1
+ '@esbuild/darwin-arm64': 0.28.1
+ '@esbuild/darwin-x64': 0.28.1
+ '@esbuild/freebsd-arm64': 0.28.1
+ '@esbuild/freebsd-x64': 0.28.1
+ '@esbuild/linux-arm': 0.28.1
+ '@esbuild/linux-arm64': 0.28.1
+ '@esbuild/linux-ia32': 0.28.1
+ '@esbuild/linux-loong64': 0.28.1
+ '@esbuild/linux-mips64el': 0.28.1
+ '@esbuild/linux-ppc64': 0.28.1
+ '@esbuild/linux-riscv64': 0.28.1
+ '@esbuild/linux-s390x': 0.28.1
+ '@esbuild/linux-x64': 0.28.1
+ '@esbuild/netbsd-arm64': 0.28.1
+ '@esbuild/netbsd-x64': 0.28.1
+ '@esbuild/openbsd-arm64': 0.28.1
+ '@esbuild/openbsd-x64': 0.28.1
+ '@esbuild/openharmony-arm64': 0.28.1
+ '@esbuild/sunos-x64': 0.28.1
+ '@esbuild/win32-arm64': 0.28.1
+ '@esbuild/win32-ia32': 0.28.1
+ '@esbuild/win32-x64': 0.28.1
+
@@ -17341,7 +17563,7 @@ snapshots:
cross-spawn: 7.0.6
signal-exit: 4.1.0
dependencies:
'@babel/code-frame': 7.29.0
chalk: 4.1.2
@@ -17356,7 +17578,7 @@ snapshots:
semver: 7.7.4
tapable: 2.3.3
typescript: 6.0.3
- webpack: 5.106.2(@swc/[email protected])([email protected])
+ webpack: 5.106.2(@swc/[email protected])([email protected])
@@ -17372,12 +17594,6 @@ snapshots:
jsonfile: 6.2.1
universalify: 2.0.1
- dependencies:
- graceful-fs: 4.2.11
- jsonfile: 6.2.1
- universalify: 2.0.1
-
@@ -17631,7 +17847,7 @@ snapshots:
relateurl: 0.2.7
terser: 5.47.1
dependencies:
'@types/html-minifier-terser': 6.1.0
html-minifier-terser: 6.1.0
@@ -17639,7 +17855,7 @@ snapshots:
pretty-error: 4.0.0
tapable: 2.3.3
optionalDependencies:
- webpack: 5.106.2(@swc/[email protected])([email protected])
+ webpack: 5.106.2(@swc/[email protected])([email protected])
dependencies:
@@ -19270,14 +19486,14 @@ snapshots:
tsx: 4.22.4
yaml: 2.9.0
dependencies:
cosmiconfig: 9.0.0([email protected])
jiti: 2.6.1
postcss: 8.5.15
semver: 7.7.4
optionalDependencies:
- webpack: 5.106.2(@swc/[email protected])([email protected])
+ webpack: 5.106.2(@swc/[email protected])([email protected])
transitivePeerDependencies:
- typescript
@@ -20270,15 +20486,15 @@ snapshots:
dependencies:
'@babel/runtime': 7.27.1
'@swc/core': 1.13.5
deepmerge: 4.3.1
optionalDependencies:
- webpack: 5.106.2(@swc/[email protected])([email protected])
+ webpack: 5.106.2(@swc/[email protected])([email protected])
dependencies:
@@ -20418,9 +20634,9 @@ snapshots:
dependencies:
- webpack: 5.106.2(@swc/[email protected])([email protected])
+ webpack: 5.106.2(@swc/[email protected])([email protected])
dependencies:
@@ -20442,16 +20658,16 @@ snapshots:
dependencies:
'@swc/core': 1.13.5
- webpack: 5.106.2(@swc/[email protected])([email protected])
+ webpack: 5.106.2(@swc/[email protected])([email protected])
dependencies:
'@swc/core': 1.13.5
'@swc/counter': 0.1.3
- webpack: 5.106.2(@swc/[email protected])([email protected])
+ webpack: 5.106.2(@swc/[email protected])([email protected])
@@ -20502,16 +20718,16 @@ snapshots:
dependencies:
'@jridgewell/trace-mapping': 0.3.31
jest-worker: 27.5.1
schema-utils: 4.3.3
terser: 5.47.1
- webpack: 5.106.2(@swc/[email protected])([email protected])
+ webpack: 5.106.2(@swc/[email protected])([email protected])
optionalDependencies:
'@swc/core': 1.13.5
- esbuild: 0.28.0
+ esbuild: 0.28.1
dependencies:
@@ -20809,14 +21025,14 @@ snapshots:
dependencies:
'@jridgewell/gen-mapping': 0.3.13
'@jridgewell/trace-mapping': 0.3.31
'@vue/reactivity': 3.5.34
obug: 2.1.1
unplugin: 3.0.0
vue: 3.5.35([email protected])
transitivePeerDependencies:
- '@types/node'
@@ -20928,7 +21144,7 @@ snapshots:
dependencies:
lightningcss: 1.32.0
picomatch: 4.0.4
@@ -20937,7 +21153,7 @@ snapshots:
tinyglobby: 0.2.17
optionalDependencies:
'@types/node': 25.9.3
- esbuild: 0.28.0
+ esbuild: 0.28.1
fsevents: 2.3.3
jiti: 2.7.0
sass: 1.87.0
@@ -20945,10 +21161,10 @@ snapshots:
tsx: 4.22.4
yaml: 2.9.0
dependencies:
'@vitest/expect': 4.1.9
'@vitest/pretty-format': 4.1.9
'@vitest/runner': 4.1.9
'@vitest/snapshot': 4.1.9
@@ -20965,7 +21181,7 @@ snapshots:
tinyexec: 1.2.4
tinyglobby: 0.2.17
tinyrainbow: 3.1.0
why-is-node-running: 2.3.0
optionalDependencies:
'@types/node': 25.9.3
@@ -21042,7 +21258,7 @@ snapshots:
dependencies:
colorette: 2.0.20
memfs: 3.5.3
@@ -21050,7 +21266,7 @@ snapshots:
range-parser: 1.2.1
schema-utils: 4.3.3
optionalDependencies:
- webpack: 5.106.2(@swc/[email protected])([email protected])
+ webpack: 5.106.2(@swc/[email protected])([email protected])
dependencies:
@@ -21062,7 +21278,7 @@ snapshots:
dependencies:
'@types/eslint-scope': 3.7.7
'@types/estree': 1.0.9
@@ -21085,7 +21301,7 @@ snapshots:
neo-async: 2.6.2
schema-utils: 4.3.3
tapable: 2.3.3
watchpack: 2.5.1
webpack-sources: 3.4.1
transitivePeerDependencies:
diff --git a/scripts/build-analysis.ts b/scripts/build-analysis.ts
index 504642654c..d944a85fed 100644
--- a/scripts/build-analysis.ts
+++ b/scripts/build-analysis.ts
@@ -16,10 +16,10 @@
/* eslint-disable max-lines-per-function */
+import fs from 'node:fs';
import path from 'node:path';
import process from 'node:process';
import { brotliCompressSync, gzipSync } from 'node:zlib';
-import fs from 'fs-extra';
type OutputBucketKey = 'cjs' | 'es' | 'types' | 'umd';
@@ -161,7 +161,7 @@ function readWorkspacePackages(): IWorkspacePackage[] {
return {
dir,
- packageJson: fs.readJSONSync(packageJsonPath) as IPackageJson,
+ packageJson: JSON.parse(fs.readFileSync(packageJsonPath, 'utf8')) as IPackageJson,
};
})
.filter((pkg): pkg is IWorkspacePackage => Boolean(pkg))
@@ -400,11 +400,8 @@ function buildVisualizationHtml(report: ReturnType<typeof buildPackageSizesRepor
function main() {
const report = buildPackageSizesReport(readWorkspacePackages());
- fs.ensureDirSync(ARTIFACTS_DIR);
- fs.writeJSONSync(path.join(ARTIFACTS_DIR, 'package-sizes.json'), report, {
- EOL: '\n',
- spaces: 4,
- });
+ fs.mkdirSync(ARTIFACTS_DIR, { recursive: true });
+ fs.writeFileSync(path.join(ARTIFACTS_DIR, 'package-sizes.json'), `${JSON.stringify(report, null, 4)}\n`);
fs.writeFileSync(
path.join(ARTIFACTS_DIR, 'package-sizes.html'),
buildVisualizationHtml(report),
diff --git a/scripts/react-version-manager.ts b/scripts/react-version-manager.ts
index 9df8e0acf4..d1dc7d2a2e 100644
--- a/scripts/react-version-manager.ts
+++ b/scripts/react-version-manager.ts
@@ -15,17 +15,17 @@
*/
import { execSync } from 'node:child_process';
+import fs from 'node:fs';
import path from 'node:path';
import process from 'node:process';
import { fileURLToPath } from 'node:url';
-import fs from 'fs-extra';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
function main() {
const version = process.argv[2].replace('--react=', '');
const __pkg = path.resolve(__dirname, '../package.json');
- const pkg = fs.readJSONSync(__pkg);
+ const pkg = JSON.parse(fs.readFileSync(__pkg, 'utf8'));
pkg.resolutions = {
'@types/react': version,
@@ -34,7 +34,7 @@ function main() {
'react-dom': version,
};
- fs.writeJSONSync(__pkg, pkg, { spaces: 4, EOL: '\n' });
+ fs.writeFileSync(__pkg, `${JSON.stringify(pkg, null, 4)}\n`);
execSync('pnpm i --no-lockfile');
}