From c43d32846a046b2096c1565a0f3d3dc6b799fa33 Mon Sep 17 00:00:00 2001 From: xwchris Date: Mon, 9 Dec 2024 16:01:47 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mona-service-commands/src/publish/index.ts | 1 - .../mona-service-target-lynx/package.json | 5 ----- .../mona-service-target-lynx/src/target/max/index.ts | 3 ++- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/packages/mona-manager-plugins/mona-service-commands/src/publish/index.ts b/packages/mona-manager-plugins/mona-service-commands/src/publish/index.ts index 1eb38995..18372da8 100644 --- a/packages/mona-manager-plugins/mona-service-commands/src/publish/index.ts +++ b/packages/mona-manager-plugins/mona-service-commands/src/publish/index.ts @@ -3,7 +3,6 @@ import chalk from 'chalk'; import { AppSceneTypeEnum, requestBeforeCheck } from '../common'; import inquirer from 'inquirer'; import fs from 'fs'; -import path from 'path'; import { upload } from './utils'; import { compressDir } from '../compress/utils'; import { generateRequestFromOpen } from '../common'; diff --git a/packages/mona-manager-plugins/mona-service-targets/mona-service-target-lynx/package.json b/packages/mona-manager-plugins/mona-service-targets/mona-service-target-lynx/package.json index 8d73368e..d6900ded 100644 --- a/packages/mona-manager-plugins/mona-service-targets/mona-service-target-lynx/package.json +++ b/packages/mona-manager-plugins/mona-service-targets/mona-service-target-lynx/package.json @@ -29,11 +29,6 @@ "@bytedance/mona-speedy": "0.0.37", "@bytedance/mona-speedy-components": "0.0.37", "@bytedance/mona-speedy-runtime": "0.0.37", - "@byted-lynx/react-rsbuild-plugin": "0.3.0", - "@byted-lynx/rspeedy": "0.5.2", - "@byted-lynx/react": "0.99.8", - "@rspack/core": "^1.1.4", - "@rsbuild/plugin-less": "^1.1.0", "axios": "^1.6.5", "babel-loader": "^8.2.2", "chalk": "^4.1.2", diff --git a/packages/mona-manager-plugins/mona-service-targets/mona-service-target-lynx/src/target/max/index.ts b/packages/mona-manager-plugins/mona-service-targets/mona-service-target-lynx/src/target/max/index.ts index e0f81c99..3da9369b 100644 --- a/packages/mona-manager-plugins/mona-service-targets/mona-service-target-lynx/src/target/max/index.ts +++ b/packages/mona-manager-plugins/mona-service-targets/mona-service-target-lynx/src/target/max/index.ts @@ -50,7 +50,8 @@ const max: IPlugin = async ctx => { .concat([cmd, '--config', path.join(tempLynxDir, 'lynx.config.js'), '--config-name', name]); speedy.run(); - if (name === 'component') { + const isPipelineEnv = process.env.CI_PIPELINE; + if (name === 'component' && isPipelineEnv) { console.log('start build ReactLynx3!') try { child_process.execSync(`rspeedy build --config ${path.join(tempLynxDir, 'lynx-3.config.mjs')}`, { encoding: 'utf-8' });