Skip to content

Commit

Permalink
feat: add metaName (#6650)
Browse files Browse the repository at this point in the history
  • Loading branch information
clChenLiang authored Dec 20, 2024
1 parent 95b026d commit 0ac2af4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .changeset/tasty-cameras-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@modern-js/app-tools': patch
---

fix: run with metaName
fix: run 函数增加 metaName 参数
3 changes: 3 additions & 0 deletions packages/solutions/app-tools/src/run/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { loadInternalPlugins } from '../utils/loadPlugins';
export interface RunOptions {
cwd?: string;
configFile?: string;
metaName?: string;
packageJsonConfig?: string;
internalPlugins?: {
cli?: InternalPlugins;
Expand All @@ -22,6 +23,7 @@ export interface RunOptions {
export async function run({
cwd,
initialLog,
metaName,
version,
internalPlugins,
packageJsonConfig,
Expand Down Expand Up @@ -74,6 +76,7 @@ export async function run({
cwd,
initialLog: initialLog || `Modern.js Framework v${version}`,
configFile: finalConfigFile,
metaName,
packageJsonConfig: packageJsonConfig || PACKAGE_JSON_CONFIG_NAME,
internalPlugins: plugins,
handleSetupResult,
Expand Down

0 comments on commit 0ac2af4

Please sign in to comment.