Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevoss committed Jul 24, 2024
1 parent ecddbff commit c59a76f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions dist/setup-wp-env/create-wp-env-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ async function main() {
themes,
mappings,
"config-dir": configDir,
"active-theme": activeTheme
"active-theme": activeTheme,
config1,
config2
} = getOptions({
wp: { type: "string", default: null },
php: { type: "string", default: null },
Expand All @@ -20,8 +22,11 @@ async function main() {
validate: (value) => typeof value === "string" && /^[a-z0-9-]+$/.test(value)
},
mappings: { type: "string", default: "" },
"config-dir": { type: "string", default: "./" }
"config-dir": { type: "string", default: "./" },
config1: { type: "string", default: "" },
config2: { type: "string", default: "" }
});
console.log(config1, config2);
const config = {
core: wp ? `WordPress/Wordpress#${wp}` : null,
phpVersion: php ? php : null,
Expand Down

0 comments on commit c59a76f

Please sign in to comment.