Skip to content

Commit

Permalink
🔨 Fix tomlWriter to ensure recursive checks are made
Browse files Browse the repository at this point in the history
  • Loading branch information
kinngh committed Jan 7, 2025
1 parent 1cf1989 commit 9aa5163
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _developer/tomlWriter.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ try {
config.client_id = process.env.SHOPIFY_API_KEY;
config.application_url = appUrl;
config.embedded = true;
config.extension_directories = ["../extension/extensions/*"];
config.extension_directories = ["../extension/extensions/**"];

// Auth
config.auth = {};
Expand Down Expand Up @@ -106,13 +106,13 @@ try {

const extensionsDir = path.join("..", "extension");

config.extension_directories = ["./extensions/*"];
config.extension_directories = ["./extensions/**"];
let extensionStr = toml.stringify(config);
extensionStr =
"# Avoid writing to toml directly. Use your .env file instead\n\n" +
extensionStr;

config.extension_directories = ["extension/extensions/*"];
config.extension_directories = ["extension/extensions/**"];
let globalStr = toml.stringify(config);
globalStr =
"# Avoid writing to toml directly. Use your .env file instead\n\n" +
Expand Down

1 comment on commit 9aa5163

@kinngh
Copy link
Owner Author

@kinngh kinngh commented on 9aa5163 Jan 7, 2025

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.