Skip to content

Commit

Permalink
fix: overwrite config option with parsed data
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRomaa committed Jun 11, 2024
1 parent ed51df5 commit 7187094
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ const commandWithOptions = (name: string) =>
await import(config.replace(/\\/g, "/"))
.then((module) => {
// Check config integrity
let result: MachConfig;
try {
result = MachConfigSchema.parse(module.default);
actionCommand.setOptionValue("config", MachConfigSchema.parse(module.default));
} catch (error) {
logger.error("Invalid config file", chalk.redBright(config));
logger.error(error);
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@synaptic-simulations/mach",
"version": "1.1.0-rc3",
"version": "1.1.0-rc4",
"description": "The last MSFS instrument bundler you'll ever need.",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit 7187094

Please sign in to comment.