@dropthis/cli 0.14.0 → 0.15.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/cli.cjs +11 -7
- package/dist/cli.cjs.map +1 -1
- package/node_modules/@dropthis/node/dist/{drops-DephtJf-.d.cts → drops-C59ZhFES.d.cts} +16 -4
- package/node_modules/@dropthis/node/dist/{drops-DephtJf-.d.ts → drops-C59ZhFES.d.ts} +16 -4
- package/node_modules/@dropthis/node/dist/edge.cjs +4 -1
- package/node_modules/@dropthis/node/dist/edge.cjs.map +1 -1
- package/node_modules/@dropthis/node/dist/edge.d.cts +1 -1
- package/node_modules/@dropthis/node/dist/edge.d.ts +1 -1
- package/node_modules/@dropthis/node/dist/edge.mjs +4 -1
- package/node_modules/@dropthis/node/dist/edge.mjs.map +1 -1
- package/node_modules/@dropthis/node/dist/index.cjs +9 -1
- package/node_modules/@dropthis/node/dist/index.cjs.map +1 -1
- package/node_modules/@dropthis/node/dist/index.d.cts +2 -2
- package/node_modules/@dropthis/node/dist/index.d.ts +2 -2
- package/node_modules/@dropthis/node/dist/index.mjs +8 -1
- package/node_modules/@dropthis/node/dist/index.mjs.map +1 -1
- package/node_modules/@dropthis/node/package.json +1 -1
- package/package.json +2 -2
package/dist/cli.cjs
CHANGED
|
@@ -880,13 +880,13 @@ async function runDoctor(_input, deps) {
|
|
|
880
880
|
const authSource = credential?.source ?? "missing";
|
|
881
881
|
const storageBackend = stored?.storage ?? "none";
|
|
882
882
|
const pairs = [
|
|
883
|
-
["Version", "0.
|
|
883
|
+
["Version", "0.15.0"],
|
|
884
884
|
["Auth", authSource],
|
|
885
885
|
["Storage", storageBackend]
|
|
886
886
|
];
|
|
887
887
|
writeKv(deps, pairs, {
|
|
888
888
|
ok: true,
|
|
889
|
-
version: "0.
|
|
889
|
+
version: "0.15.0",
|
|
890
890
|
auth: { source: authSource },
|
|
891
891
|
storage: { backend: storageBackend }
|
|
892
892
|
});
|
|
@@ -2567,7 +2567,7 @@ function buildProgram(options = {}) {
|
|
|
2567
2567
|
` ${import_picocolors6.default.cyan("dropthis login")}`,
|
|
2568
2568
|
` ${import_picocolors6.default.cyan("dropthis publish ./dist")}`
|
|
2569
2569
|
].join("\n")
|
|
2570
|
-
).version("0.
|
|
2570
|
+
).version("0.15.0").configureHelp({
|
|
2571
2571
|
subcommandTerm(cmd) {
|
|
2572
2572
|
const args = cmd.registeredArguments.map((a) => {
|
|
2573
2573
|
const name = a.name();
|
|
@@ -2611,7 +2611,7 @@ ${lines.map((l) => ` ${l}`).join("\n")}
|
|
|
2611
2611
|
`Attach JSON key-value pairs, e.g. '{"source":"ci"}'`
|
|
2612
2612
|
).option("--metadata-file <path>", "Read metadata JSON from a file").option("--path <name>", "Set filename when publishing from stdin").option(
|
|
2613
2613
|
"--domain <hostname>",
|
|
2614
|
-
"Serve this drop under a connected custom domain (must be live \u2014 see: dropthis domains list). Path-mode: drop lives at https://domain/{slug}/. Dedicated: drop is at the root (409 if occupied). Omit to use the account's default path domain."
|
|
2614
|
+
"Serve this drop under a connected custom domain (must be live \u2014 see: dropthis domains list), or pass the literal 'shared' to publish to the shared pool even when the account has a default domain. Path-mode: drop lives at https://domain/{slug}/. Dedicated: drop is at the root (409 if occupied). Omit to use the account's default path domain."
|
|
2615
2615
|
).option(
|
|
2616
2616
|
"--slug <vanity-slug>",
|
|
2617
2617
|
"Vanity slug for path-mode custom domains (1\u201363 lowercase letters/digits/hyphens). Auto-suffixed if taken. Only valid with --domain on a path-mode domain."
|
|
@@ -2628,6 +2628,7 @@ ${lines.map((l) => ` ${l}`).join("\n")}
|
|
|
2628
2628
|
"dropthis publish ./dist --title 'Launch page'",
|
|
2629
2629
|
"cat report.md | dropthis publish - --content-type text/markdown --path report.md",
|
|
2630
2630
|
"dropthis publish ./dist --domain reports.example.com --slug launch",
|
|
2631
|
+
"dropthis publish ./report.html --domain shared # bypass the account default domain",
|
|
2631
2632
|
"URL=$(dropthis publish ./dist --url)"
|
|
2632
2633
|
])
|
|
2633
2634
|
).action(async (inputs, commandOptions) => {
|
|
@@ -2922,7 +2923,10 @@ ${lines.map((l) => ` ${l}`).join("\n")}
|
|
|
2922
2923
|
);
|
|
2923
2924
|
domains.command("update <hostname>").description(
|
|
2924
2925
|
"Update a domain \u2014 repoint to a different drop (dedicated mode) or set/clear as account default (path mode). At least one option required."
|
|
2925
|
-
).option("--drop <dropId>", "Repoint to a different drop (dedicated mode)").option("--default", "Set as account default publish domain (path mode)").option(
|
|
2926
|
+
).option("--drop <dropId>", "Repoint to a different drop (dedicated mode)").option("--default", "Set as account default publish domain (path mode)").option(
|
|
2927
|
+
"--no-default",
|
|
2928
|
+
"Clear the account default publish domain (defaultless publishes revert to the shared pool)"
|
|
2929
|
+
).option("--json", "Force JSON output").action(
|
|
2926
2930
|
async (hostname, commandOptions) => {
|
|
2927
2931
|
const deps = await commandDeps(program, options, store, commandOptions);
|
|
2928
2932
|
const result = await runDomainsUpdate(
|
|
@@ -3108,7 +3112,7 @@ ${lines.map((l) => ` ${l}`).join("\n")}
|
|
|
3108
3112
|
);
|
|
3109
3113
|
const result = await runUpgrade(commandOptions, {
|
|
3110
3114
|
...deps,
|
|
3111
|
-
currentVersion: "0.
|
|
3115
|
+
currentVersion: "0.15.0"
|
|
3112
3116
|
});
|
|
3113
3117
|
process.exitCode = result.exitCode;
|
|
3114
3118
|
});
|
|
@@ -3351,7 +3355,7 @@ var showNotice = shouldShowNotice({
|
|
|
3351
3355
|
if (showNotice) {
|
|
3352
3356
|
const notice = noticeFromCache({
|
|
3353
3357
|
cache: updateCache,
|
|
3354
|
-
currentVersion: "0.
|
|
3358
|
+
currentVersion: "0.15.0"
|
|
3355
3359
|
});
|
|
3356
3360
|
if (notice) {
|
|
3357
3361
|
process.stderr.write(`
|