@erdoai/cli 0.145.0 → 0.146.0
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.
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5828,14 +5828,15 @@ pagesCmd.command("update <id>").description(
|
|
|
5828
5828
|
}
|
|
5829
5829
|
}
|
|
5830
5830
|
);
|
|
5831
|
-
pagesCmd.command("validate").description("Validate page content without deploying").requiredOption("--html <htmlOr@file>", "HTML (or @path)").option("--js <jsOr@file>", "JS/JSX (or @path)").option("--css <cssOr@file>", "CSS (or @path)").option("--runtime <runtime>", "react-tailwind (default) or none").action(async (opts) => {
|
|
5831
|
+
pagesCmd.command("validate").description("Validate page content without deploying").requiredOption("--html <htmlOr@file>", "HTML (or @path)").option("--js <jsOr@file>", "JS/JSX (or @path)").option("--css <cssOr@file>", "CSS (or @path)").option("--runtime <runtime>", "react-tailwind (default) or none").option("--datasets <csv>", "read-dataset slugs referenced by this page (comma-separated)").action(async (opts) => {
|
|
5832
5832
|
try {
|
|
5833
5833
|
print(
|
|
5834
5834
|
await new ErdoClient().validatePage({
|
|
5835
5835
|
html: readMaybeFile(opts.html),
|
|
5836
5836
|
js: readMaybeFile(opts.js),
|
|
5837
5837
|
css: readMaybeFile(opts.css),
|
|
5838
|
-
runtime: opts.runtime
|
|
5838
|
+
runtime: opts.runtime,
|
|
5839
|
+
dataset_slugs: grantList(opts.datasets)
|
|
5839
5840
|
})
|
|
5840
5841
|
);
|
|
5841
5842
|
} catch (e) {
|