Skip to content

Commit

Permalink
fix: fix the issue that the config does not exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 2, 2023
1 parent 9ef2499 commit c5e1b97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"@types/react-dev-utils": "~9.0.10",
"@types/semver": "~7.5.0",
"@types/testing-library__jest-dom": "^5.14.3",
"auto-config-loader": "^1.4.0",
"auto-config-loader": "^1.5.0",
"ajv": "^8.8.0",
"eslint-config-react-app": "^7.0.0",
"fs-extra": "~10.1.0",
Expand Down
1 change: 1 addition & 0 deletions core/src/scripts/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export default async function build(argvs: BuildArgs) {
* Specify the directory where the configuration is located.
*/
cwd: configOverrides ? path.resolve(process.cwd(), argvs['config-overrides']) : undefined,
ignoreLog: true,
});
const overridesHandle = kktrc.default || argvs.overridesWebpack;

Expand Down
1 change: 1 addition & 0 deletions core/src/scripts/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export default async function start(argvs: StartArgs) {
* Specify the directory where the configuration is located.
*/
cwd: configOverrides ? path.resolve(process.cwd(), argvs['config-overrides']) : undefined,
ignoreLog: true,
});
await overridesClearConsole(argvs);
await overridesOpenBrowser(argvs);
Expand Down

1 comment on commit c5e1b97

@jaywcjlove
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.