From 617a412ee0842a79443e56f31522ec8bda6b88e3 Mon Sep 17 00:00:00 2001 From: caohuilin Date: Sat, 12 Oct 2024 15:28:55 +0800 Subject: [PATCH] feat: revert i18n plugin change && update codesmith version --- package.json | 24 ++++++++++----------- packages/cli/plugin-i18n/package.json | 4 ++-- packages/cli/plugin-i18n/src/index.ts | 2 +- packages/cli/plugin-i18n/src/utils/index.ts | 2 +- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index 98e2325785a2..7459f859f01f 100644 --- a/package.json +++ b/package.json @@ -90,18 +90,18 @@ "@types/react": "^18", "@types/react-dom": "^18", "@modern-js/plugin-i18n":"workspace:*", - "@modern-js/codesmith-api-app":"0.0.0-canary-20240930083622", - "@modern-js/codesmith-api-ejs":"0.0.0-canary-20240930083622", - "@modern-js/codesmith-api-fs":"0.0.0-canary-20240930083622", - "@modern-js/codesmith-api-git":"0.0.0-canary-20240930083622", - "@modern-js/codesmith-api-handlebars":"0.0.0-canary-20240930083622", - "@modern-js/codesmith-api-json":"0.0.0-canary-20240930083622", - "@modern-js/codesmith-api-npm":"0.0.0-canary-20240930083622", - "@modern-js/codesmith-cli":"0.0.0-canary-20240930083622", - "@modern-js/codesmith-formily":"0.0.0-canary-20240930083622", - "@modern-js/codesmith":"0.0.0-canary-20240930083622", - "@modern-js/inquirer-types":"0.0.0-canary-20240930083622", - "@modern-js/codesmith-utils":"0.0.0-canary-20240930083622" + "@modern-js/codesmith-api-app":"0.0.0-canary-20241012064243", + "@modern-js/codesmith-api-ejs":"0.0.0-canary-20241012064243", + "@modern-js/codesmith-api-fs":"0.0.0-canary-20241012064243", + "@modern-js/codesmith-api-git":"0.0.0-canary-20241012064243", + "@modern-js/codesmith-api-handlebars":"0.0.0-canary-20241012064243", + "@modern-js/codesmith-api-json":"0.0.0-canary-20241012064243", + "@modern-js/codesmith-api-npm":"0.0.0-canary-20241012064243", + "@modern-js/codesmith-cli":"0.0.0-canary-20241012064243", + "@modern-js/codesmith-formily":"0.0.0-canary-20241012064243", + "@modern-js/codesmith":"0.0.0-canary-20241012064243", + "@modern-js/inquirer-types":"0.0.0-canary-20241012064243", + "@modern-js/codesmith-utils":"0.0.0-canary-20241012064243" }, "peerDependencyRules": { "allowedVersions": { diff --git a/packages/cli/plugin-i18n/package.json b/packages/cli/plugin-i18n/package.json index c412639197e7..1c937be7f57e 100644 --- a/packages/cli/plugin-i18n/package.json +++ b/packages/cli/plugin-i18n/package.json @@ -54,8 +54,8 @@ "test": "jest --passWithNoTests" }, "dependencies": { - "@swc/helpers": "0.5.13", - "@modern-js/codesmith-utils": "2.5.1" + "@modern-js/utils": "workspace:*", + "@swc/helpers": "0.5.13" }, "devDependencies": { "@scripts/build": "workspace:*", diff --git a/packages/cli/plugin-i18n/src/index.ts b/packages/cli/plugin-i18n/src/index.ts index 9b6e8c540b55..7a8ae3b37e12 100644 --- a/packages/cli/plugin-i18n/src/index.ts +++ b/packages/cli/plugin-i18n/src/index.ts @@ -1,4 +1,4 @@ -import { get } from '@modern-js/codesmith-utils/lodash'; +import { get } from '@modern-js/utils/lodash'; import { getObjKeyMap } from './utils'; type Language = string; diff --git a/packages/cli/plugin-i18n/src/utils/index.ts b/packages/cli/plugin-i18n/src/utils/index.ts index 1161e21eef06..384f5430771f 100644 --- a/packages/cli/plugin-i18n/src/utils/index.ts +++ b/packages/cli/plugin-i18n/src/utils/index.ts @@ -1,4 +1,4 @@ -import { isObject, isString } from '@modern-js/codesmith-utils/lodash'; +import { isObject, isString } from '@modern-js/utils/lodash'; interface ITem { [key: string]: string | ITem;