@lexibase/rdx-core 1.0.0-beta.4 → 1.0.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -134,12 +134,12 @@ function resolveConfig(input) {
|
|
|
134
134
|
"navbar.actions.github.visible must be a boolean."
|
|
135
135
|
);
|
|
136
136
|
const url = text(github.url, "navbar.actions.github.url");
|
|
137
|
-
if (!/^https?:\/\//i.test(url))
|
|
137
|
+
if (url !== "#" && !/^https?:\/\//i.test(url))
|
|
138
138
|
throw new RdxConfigError(
|
|
139
|
-
|
|
139
|
+
'navbar.actions.github.url must use http or https, or "#" as a placeholder.'
|
|
140
140
|
);
|
|
141
141
|
try {
|
|
142
|
-
new URL(url);
|
|
142
|
+
if (url !== "#") new URL(url);
|
|
143
143
|
} catch {
|
|
144
144
|
throw new RdxConfigError(
|
|
145
145
|
"navbar.actions.github.url must be a valid URL."
|
|
@@ -198,7 +198,14 @@ async function createRdxProject(input, {
|
|
|
198
198
|
}
|
|
199
199
|
];
|
|
200
200
|
const commands = [];
|
|
201
|
-
const commandNames = /* @__PURE__ */ new Set([
|
|
201
|
+
const commandNames = /* @__PURE__ */ new Set([
|
|
202
|
+
"dev",
|
|
203
|
+
"build",
|
|
204
|
+
"start",
|
|
205
|
+
"prepare",
|
|
206
|
+
"help",
|
|
207
|
+
"add"
|
|
208
|
+
]);
|
|
202
209
|
for (const plugin of config.plugins) {
|
|
203
210
|
for (const value of plugin.commands ?? []) {
|
|
204
211
|
const entry = object(value, `plugin "${plugin.name}" command`);
|
package/dist/config/index.js
CHANGED
package/dist/index.js
CHANGED