gutterpress 0.10.10-alpha.1 → 0.10.10-alpha.2
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/api/index.js +2 -2
- package/dist/{audit-ek36tf4q.js → audit-wcmbgh39.js} +4 -4
- package/dist/{build-bxavfz3j.js → build-c1w6kqpv.js} +4 -4
- package/dist/{cli-12epgrva.js → cli-2rswy18t.js} +1 -1
- package/dist/{cli-vje8g3w8.js → cli-4mtf9ajw.js} +44 -5
- package/dist/{cli-5fqr02je.js → cli-n0vgey6x.js} +4 -4
- package/dist/{cli-tvpq2ht9.js → cli-scqp638v.js} +1 -1
- package/dist/cli.js +14 -14
- package/dist/{doctor-tgmedr7g.js → doctor-drv36btj.js} +2 -2
- package/dist/{ext-jjzmafve.js → ext-xqx26xvy.js} +4 -4
- package/dist/{index-d4wrww4b.js → index-1he93sjd.js} +4 -4
- package/dist/{index-f833dtg9.js → index-y01v2fe0.js} +44 -5
- package/dist/index.js +2 -2
- package/dist/lib/source-provider.d.ts +17 -4
- package/dist/{lint-5vbq6yjb.js → lint-ejzmx14j.js} +4 -4
- package/dist/{new-qws45t02.js → new-g3q3h4s5.js} +4 -4
- package/dist/{preflight-4ywt3399.js → preflight-w5z2vfhx.js} +4 -4
- package/dist/{preview-4c3tcsn4.js → preview-9s22dq77.js} +4 -4
- package/dist/{publish-m6bme9a8.js → publish-mt22ewpk.js} +4 -4
- package/dist/{source-provider-2cnc5hry.js → source-provider-51g6mt6y.js} +1 -1
- package/dist/{source-provider-y1kscr1h.js → source-provider-jkppq9fc.js} +1 -1
- package/dist/{validate-avtb9drn.js → validate-kkn8rmy5.js} +4 -4
- package/package.json +1 -1
package/dist/api/index.js
CHANGED
|
@@ -123,7 +123,7 @@ import {
|
|
|
123
123
|
syncProject,
|
|
124
124
|
testRemoteAccess,
|
|
125
125
|
validateProjectExtensions
|
|
126
|
-
} from "../index-
|
|
126
|
+
} from "../index-1he93sjd.js";
|
|
127
127
|
import {
|
|
128
128
|
BuildError,
|
|
129
129
|
DEFAULT_PRINT_OPTS,
|
|
@@ -140,7 +140,7 @@ import {
|
|
|
140
140
|
resolveLogger,
|
|
141
141
|
restoreVersionWithBackup,
|
|
142
142
|
switchBranch
|
|
143
|
-
} from "../index-
|
|
143
|
+
} from "../index-y01v2fe0.js";
|
|
144
144
|
import {
|
|
145
145
|
capabilitiesFor,
|
|
146
146
|
detectProjectSource,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAndReport
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-n0vgey6x.js";
|
|
4
4
|
import {
|
|
5
5
|
log
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-2rswy18t.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError,
|
|
9
9
|
rejectExtraPositionals,
|
|
10
10
|
rejectUnknownFlags
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-scqp638v.js";
|
|
12
12
|
import"./cli-k8f9eb12.js";
|
|
13
13
|
import"./cli-c41yr7he.js";
|
|
14
14
|
import {
|
|
15
15
|
EXIT_CODES
|
|
16
16
|
} from "./cli-46ycxe6r.js";
|
|
17
|
-
import"./cli-
|
|
17
|
+
import"./cli-4mtf9ajw.js";
|
|
18
18
|
import"./cli-v5mp7a6q.js";
|
|
19
19
|
import"./cli-37x76zdn.js";
|
|
20
20
|
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runBuild,
|
|
3
3
|
splitOutPath
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-n0vgey6x.js";
|
|
5
5
|
import {
|
|
6
6
|
log
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-2rswy18t.js";
|
|
8
8
|
import {
|
|
9
9
|
UsageError,
|
|
10
10
|
parseFormat,
|
|
11
11
|
parsePdfxFlavor,
|
|
12
12
|
rejectExtraPositionals,
|
|
13
13
|
rejectUnknownFlags
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-scqp638v.js";
|
|
15
15
|
import"./cli-k8f9eb12.js";
|
|
16
16
|
import"./cli-c41yr7he.js";
|
|
17
17
|
import {
|
|
18
18
|
BuildError
|
|
19
19
|
} from "./cli-46ycxe6r.js";
|
|
20
|
-
import"./cli-
|
|
20
|
+
import"./cli-4mtf9ajw.js";
|
|
21
21
|
import"./cli-v5mp7a6q.js";
|
|
22
22
|
import"./cli-37x76zdn.js";
|
|
23
23
|
|
|
@@ -509,13 +509,45 @@ async function listLocalBranches(dir) {
|
|
|
509
509
|
if (source.type !== "local-git-folder")
|
|
510
510
|
return null;
|
|
511
511
|
const repoDir = gitScopeFor(source);
|
|
512
|
-
const [
|
|
512
|
+
const [local, current, remotes] = await Promise.all([
|
|
513
513
|
git.listBranches({ fs: gitFs, dir: repoDir }),
|
|
514
514
|
git.currentBranch({ fs: gitFs, dir: repoDir, fullname: false }).catch(() => {
|
|
515
515
|
return;
|
|
516
|
-
})
|
|
516
|
+
}),
|
|
517
|
+
git.listRemotes({ fs: gitFs, dir: repoDir }).catch(() => [])
|
|
517
518
|
]);
|
|
518
|
-
|
|
519
|
+
const localNames = new Set(local);
|
|
520
|
+
const remoteOnly = new Set;
|
|
521
|
+
for (const { remote } of remotes) {
|
|
522
|
+
const names = await git.listBranches({ fs: gitFs, dir: repoDir, remote }).catch(() => []);
|
|
523
|
+
for (const name of names) {
|
|
524
|
+
if (name === "HEAD")
|
|
525
|
+
continue;
|
|
526
|
+
if (!localNames.has(name))
|
|
527
|
+
remoteOnly.add(name);
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
return {
|
|
531
|
+
current: current ?? null,
|
|
532
|
+
branches: [...localNames, ...remoteOnly].sort(),
|
|
533
|
+
remoteOnly: [...remoteOnly].sort()
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
async function resolveCopy(repoDir, branch) {
|
|
537
|
+
const local = await git.resolveRef({ fs: gitFs, dir: repoDir, ref: `refs/heads/${branch}` }).catch(() => {
|
|
538
|
+
return;
|
|
539
|
+
});
|
|
540
|
+
if (local)
|
|
541
|
+
return { oid: local };
|
|
542
|
+
const remotes = await git.listRemotes({ fs: gitFs, dir: repoDir }).catch(() => []);
|
|
543
|
+
for (const { remote } of remotes) {
|
|
544
|
+
const oid = await git.resolveRef({ fs: gitFs, dir: repoDir, ref: `refs/remotes/${remote}/${branch}` }).catch(() => {
|
|
545
|
+
return;
|
|
546
|
+
});
|
|
547
|
+
if (oid)
|
|
548
|
+
return { oid, remote };
|
|
549
|
+
}
|
|
550
|
+
throw new Error(`Couldn't find a copy named "${branch}" — it may have been renamed or deleted.`);
|
|
519
551
|
}
|
|
520
552
|
function isCheckoutConflictError(e) {
|
|
521
553
|
return e?.code === "CheckoutConflictError";
|
|
@@ -574,9 +606,16 @@ async function switchBranch(options) {
|
|
|
574
606
|
const fromOid = await git.resolveRef({ fs: gitFs, dir: repoDir, ref: "HEAD" }).catch(() => {
|
|
575
607
|
return;
|
|
576
608
|
});
|
|
577
|
-
const toOid = await
|
|
609
|
+
const { oid: toOid, remote } = await resolveCopy(repoDir, branch);
|
|
578
610
|
try {
|
|
579
|
-
await git.checkout({
|
|
611
|
+
await git.checkout({
|
|
612
|
+
fs: gitFs,
|
|
613
|
+
dir: repoDir,
|
|
614
|
+
cache,
|
|
615
|
+
ref: branch,
|
|
616
|
+
force: false,
|
|
617
|
+
...remote ? { remote } : {}
|
|
618
|
+
});
|
|
580
619
|
} catch (e) {
|
|
581
620
|
if (isCheckoutConflictError(e)) {
|
|
582
621
|
throw new Error("Couldn't switch copies — some files changed on disk right as the switch " + "started. Try again.", { cause: e });
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
stampCreator,
|
|
14
14
|
stripAnnotations,
|
|
15
15
|
warn
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-2rswy18t.js";
|
|
17
17
|
import {
|
|
18
18
|
DEBOUNCE,
|
|
19
19
|
UsageError,
|
|
20
20
|
resolvePort
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-scqp638v.js";
|
|
22
22
|
import {
|
|
23
23
|
MARGIN_BOX_IGNORED_PROPERTIES,
|
|
24
24
|
RENDER_TIMEOUT_MS,
|
|
@@ -42,7 +42,7 @@ import {
|
|
|
42
42
|
} from "./cli-46ycxe6r.js";
|
|
43
43
|
import {
|
|
44
44
|
hasUncommittedChanges
|
|
45
|
-
} from "./cli-
|
|
45
|
+
} from "./cli-4mtf9ajw.js";
|
|
46
46
|
import {
|
|
47
47
|
detectProjectSource
|
|
48
48
|
} from "./cli-v5mp7a6q.js";
|
|
@@ -11421,7 +11421,7 @@ async function scaffoldProject(options) {
|
|
|
11421
11421
|
let versionHistoryError;
|
|
11422
11422
|
if (requested === "local-git") {
|
|
11423
11423
|
try {
|
|
11424
|
-
const { providerFor } = await import("./source-provider-
|
|
11424
|
+
const { providerFor } = await import("./source-provider-51g6mt6y.js");
|
|
11425
11425
|
const provider = providerFor({ type: "local-folder", path: projectDir });
|
|
11426
11426
|
await provider.initVersionHistory({
|
|
11427
11427
|
projectDir,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "gutterpress",
|
|
7
|
-
version: "0.10.10-alpha.
|
|
7
|
+
version: "0.10.10-alpha.2",
|
|
8
8
|
description: "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
|
|
9
9
|
author: "itlackey",
|
|
10
10
|
license: "MPL-2.0",
|
package/dist/cli.js
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
UsageError,
|
|
7
7
|
package_default,
|
|
8
8
|
rejectUnknownFlags
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-scqp638v.js";
|
|
10
10
|
import {
|
|
11
11
|
EXIT_CODES
|
|
12
12
|
} from "./cli-46ycxe6r.js";
|
|
@@ -18,16 +18,16 @@ import {
|
|
|
18
18
|
import { defineCommand, parseArgs, runMain } from "citty";
|
|
19
19
|
import { statSync } from "node:fs";
|
|
20
20
|
var SUBCOMMANDS = {
|
|
21
|
-
new: () => import("./new-
|
|
22
|
-
preview: () => import("./preview-
|
|
23
|
-
build: () => import("./build-
|
|
24
|
-
publish: () => import("./publish-
|
|
25
|
-
lint: () => import("./lint-
|
|
26
|
-
validate: () => import("./validate-
|
|
27
|
-
audit: () => import("./audit-
|
|
28
|
-
preflight: () => import("./preflight-
|
|
29
|
-
doctor: () => import("./doctor-
|
|
30
|
-
ext: () => import("./ext-
|
|
21
|
+
new: () => import("./new-g3q3h4s5.js").then((m) => m.default),
|
|
22
|
+
preview: () => import("./preview-9s22dq77.js").then((m) => m.default),
|
|
23
|
+
build: () => import("./build-c1w6kqpv.js").then((m) => m.default),
|
|
24
|
+
publish: () => import("./publish-mt22ewpk.js").then((m) => m.default),
|
|
25
|
+
lint: () => import("./lint-ejzmx14j.js").then((m) => m.default),
|
|
26
|
+
validate: () => import("./validate-kkn8rmy5.js").then((m) => m.default),
|
|
27
|
+
audit: () => import("./audit-wcmbgh39.js").then((m) => m.default),
|
|
28
|
+
preflight: () => import("./preflight-w5z2vfhx.js").then((m) => m.default),
|
|
29
|
+
doctor: () => import("./doctor-drv36btj.js").then((m) => m.default),
|
|
30
|
+
ext: () => import("./ext-xqx26xvy.js").then((m) => m.default)
|
|
31
31
|
};
|
|
32
32
|
var VERSION = package_default.version;
|
|
33
33
|
var main = defineCommand({
|
|
@@ -52,7 +52,7 @@ async function preflightRequiredInvocations(rawArgs) {
|
|
|
52
52
|
const [command, ...commandArgs] = rawArgs;
|
|
53
53
|
try {
|
|
54
54
|
if (command === "new") {
|
|
55
|
-
const { newArgs } = await import("./new-
|
|
55
|
+
const { newArgs } = await import("./new-g3q3h4s5.js");
|
|
56
56
|
rejectUnknownFlags(commandArgs, newArgs, "new");
|
|
57
57
|
const parsed = parseArgs(commandArgs, {
|
|
58
58
|
...newArgs,
|
|
@@ -64,7 +64,7 @@ async function preflightRequiredInvocations(rawArgs) {
|
|
|
64
64
|
return;
|
|
65
65
|
}
|
|
66
66
|
if (command === "preflight") {
|
|
67
|
-
const { preflightArgs } = await import("./preflight-
|
|
67
|
+
const { preflightArgs } = await import("./preflight-w5z2vfhx.js");
|
|
68
68
|
rejectUnknownFlags(commandArgs, preflightArgs, "preflight");
|
|
69
69
|
const parsed = parseArgs(commandArgs, {
|
|
70
70
|
...preflightArgs,
|
|
@@ -84,7 +84,7 @@ async function preflightRequiredInvocations(rawArgs) {
|
|
|
84
84
|
}
|
|
85
85
|
if (subcommand.startsWith("-"))
|
|
86
86
|
return;
|
|
87
|
-
const { EXT_SUBCOMMANDS, extAddArgs, extRemoveArgs, extEnableArgs, extDisableArgs } = await import("./ext-
|
|
87
|
+
const { EXT_SUBCOMMANDS, extAddArgs, extRemoveArgs, extEnableArgs, extDisableArgs } = await import("./ext-xqx26xvy.js");
|
|
88
88
|
if (!EXT_SUBCOMMANDS.includes(subcommand)) {
|
|
89
89
|
throw new UsageError(`gutterpress ext: unknown command "${subcommand}"`);
|
|
90
90
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getSystemDiagnostics,
|
|
3
3
|
log
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-2rswy18t.js";
|
|
5
5
|
import {
|
|
6
6
|
UsageError,
|
|
7
7
|
rejectExtraPositionals,
|
|
8
8
|
rejectUnknownFlags
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-scqp638v.js";
|
|
10
10
|
import"./cli-c41yr7he.js";
|
|
11
11
|
import"./cli-46ycxe6r.js";
|
|
12
12
|
import"./cli-37x76zdn.js";
|
|
@@ -10,21 +10,21 @@ import {
|
|
|
10
10
|
removeExtension,
|
|
11
11
|
searchNpmExtensions,
|
|
12
12
|
setExtensionEnabled
|
|
13
|
-
} from "./cli-
|
|
14
|
-
import"./cli-
|
|
13
|
+
} from "./cli-n0vgey6x.js";
|
|
14
|
+
import"./cli-2rswy18t.js";
|
|
15
15
|
import {
|
|
16
16
|
UsageError,
|
|
17
17
|
exitForUsage,
|
|
18
18
|
rejectExtraPositionals,
|
|
19
19
|
rejectUnknownFlags,
|
|
20
20
|
resolveProjectDir
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-scqp638v.js";
|
|
22
22
|
import"./cli-k8f9eb12.js";
|
|
23
23
|
import"./cli-c41yr7he.js";
|
|
24
24
|
import {
|
|
25
25
|
EXIT_CODES
|
|
26
26
|
} from "./cli-46ycxe6r.js";
|
|
27
|
-
import"./cli-
|
|
27
|
+
import"./cli-4mtf9ajw.js";
|
|
28
28
|
import"./cli-v5mp7a6q.js";
|
|
29
29
|
import"./cli-37x76zdn.js";
|
|
30
30
|
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
snapshotStagingMarkerPath,
|
|
30
30
|
snapshotWorkingTreeUnlocked,
|
|
31
31
|
withRepoLock
|
|
32
|
-
} from "./index-
|
|
32
|
+
} from "./index-y01v2fe0.js";
|
|
33
33
|
import {
|
|
34
34
|
detectProjectSource,
|
|
35
35
|
syncRemoteFor
|
|
@@ -4839,7 +4839,7 @@ import git from "isomorphic-git";
|
|
|
4839
4839
|
// package.json
|
|
4840
4840
|
var package_default = {
|
|
4841
4841
|
name: "gutterpress",
|
|
4842
|
-
version: "0.10.10-alpha.
|
|
4842
|
+
version: "0.10.10-alpha.2",
|
|
4843
4843
|
description: "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
|
|
4844
4844
|
author: "itlackey",
|
|
4845
4845
|
license: "MPL-2.0",
|
|
@@ -12237,7 +12237,7 @@ async function scaffoldProject(options) {
|
|
|
12237
12237
|
let versionHistoryError;
|
|
12238
12238
|
if (requested === "local-git") {
|
|
12239
12239
|
try {
|
|
12240
|
-
const { providerFor } = await import("./source-provider-
|
|
12240
|
+
const { providerFor } = await import("./source-provider-jkppq9fc.js");
|
|
12241
12241
|
const provider = providerFor({ type: "local-folder", path: projectDir });
|
|
12242
12242
|
await provider.initVersionHistory({
|
|
12243
12243
|
projectDir,
|
|
@@ -12334,7 +12334,7 @@ styles:
|
|
|
12334
12334
|
let versionHistoryError;
|
|
12335
12335
|
if (requested === "local-git") {
|
|
12336
12336
|
try {
|
|
12337
|
-
const { providerFor } = await import("./source-provider-
|
|
12337
|
+
const { providerFor } = await import("./source-provider-jkppq9fc.js");
|
|
12338
12338
|
const provider = providerFor({ type: "local-folder", path: dir });
|
|
12339
12339
|
await provider.initVersionHistory({
|
|
12340
12340
|
projectDir: dir,
|
|
@@ -514,13 +514,45 @@ async function listLocalBranches(dir) {
|
|
|
514
514
|
if (source.type !== "local-git-folder")
|
|
515
515
|
return null;
|
|
516
516
|
const repoDir = gitScopeFor(source);
|
|
517
|
-
const [
|
|
517
|
+
const [local, current, remotes] = await Promise.all([
|
|
518
518
|
git.listBranches({ fs: gitFs, dir: repoDir }),
|
|
519
519
|
git.currentBranch({ fs: gitFs, dir: repoDir, fullname: false }).catch(() => {
|
|
520
520
|
return;
|
|
521
|
-
})
|
|
521
|
+
}),
|
|
522
|
+
git.listRemotes({ fs: gitFs, dir: repoDir }).catch(() => [])
|
|
522
523
|
]);
|
|
523
|
-
|
|
524
|
+
const localNames = new Set(local);
|
|
525
|
+
const remoteOnly = new Set;
|
|
526
|
+
for (const { remote } of remotes) {
|
|
527
|
+
const names = await git.listBranches({ fs: gitFs, dir: repoDir, remote }).catch(() => []);
|
|
528
|
+
for (const name of names) {
|
|
529
|
+
if (name === "HEAD")
|
|
530
|
+
continue;
|
|
531
|
+
if (!localNames.has(name))
|
|
532
|
+
remoteOnly.add(name);
|
|
533
|
+
}
|
|
534
|
+
}
|
|
535
|
+
return {
|
|
536
|
+
current: current ?? null,
|
|
537
|
+
branches: [...localNames, ...remoteOnly].sort(),
|
|
538
|
+
remoteOnly: [...remoteOnly].sort()
|
|
539
|
+
};
|
|
540
|
+
}
|
|
541
|
+
async function resolveCopy(repoDir, branch) {
|
|
542
|
+
const local = await git.resolveRef({ fs: gitFs, dir: repoDir, ref: `refs/heads/${branch}` }).catch(() => {
|
|
543
|
+
return;
|
|
544
|
+
});
|
|
545
|
+
if (local)
|
|
546
|
+
return { oid: local };
|
|
547
|
+
const remotes = await git.listRemotes({ fs: gitFs, dir: repoDir }).catch(() => []);
|
|
548
|
+
for (const { remote } of remotes) {
|
|
549
|
+
const oid = await git.resolveRef({ fs: gitFs, dir: repoDir, ref: `refs/remotes/${remote}/${branch}` }).catch(() => {
|
|
550
|
+
return;
|
|
551
|
+
});
|
|
552
|
+
if (oid)
|
|
553
|
+
return { oid, remote };
|
|
554
|
+
}
|
|
555
|
+
throw new Error(`Couldn't find a copy named "${branch}" — it may have been renamed or deleted.`);
|
|
524
556
|
}
|
|
525
557
|
function isCheckoutConflictError(e) {
|
|
526
558
|
return e?.code === "CheckoutConflictError";
|
|
@@ -579,9 +611,16 @@ async function switchBranch(options) {
|
|
|
579
611
|
const fromOid = await git.resolveRef({ fs: gitFs, dir: repoDir, ref: "HEAD" }).catch(() => {
|
|
580
612
|
return;
|
|
581
613
|
});
|
|
582
|
-
const toOid = await
|
|
614
|
+
const { oid: toOid, remote } = await resolveCopy(repoDir, branch);
|
|
583
615
|
try {
|
|
584
|
-
await git.checkout({
|
|
616
|
+
await git.checkout({
|
|
617
|
+
fs: gitFs,
|
|
618
|
+
dir: repoDir,
|
|
619
|
+
cache,
|
|
620
|
+
ref: branch,
|
|
621
|
+
force: false,
|
|
622
|
+
...remote ? { remote } : {}
|
|
623
|
+
});
|
|
585
624
|
} catch (e) {
|
|
586
625
|
if (isCheckoutConflictError(e)) {
|
|
587
626
|
throw new Error("Couldn't switch copies — some files changed on disk right as the switch " + "started. Try again.", { cause: e });
|
package/dist/index.js
CHANGED
|
@@ -142,7 +142,7 @@ import {
|
|
|
142
142
|
syncProject,
|
|
143
143
|
testRemoteAccess,
|
|
144
144
|
validateProjectExtensions
|
|
145
|
-
} from "./index-
|
|
145
|
+
} from "./index-1he93sjd.js";
|
|
146
146
|
import {
|
|
147
147
|
BUILD_DIAGNOSTIC_CODES
|
|
148
148
|
} from "./index-a0e2253t.js";
|
|
@@ -162,7 +162,7 @@ import {
|
|
|
162
162
|
resolveLogger,
|
|
163
163
|
restoreVersionWithBackup,
|
|
164
164
|
switchBranch
|
|
165
|
-
} from "./index-
|
|
165
|
+
} from "./index-y01v2fe0.js";
|
|
166
166
|
import {
|
|
167
167
|
capabilitiesFor,
|
|
168
168
|
detectProjectSource,
|
|
@@ -239,17 +239,26 @@ export declare const AUTO_SNAPSHOT_MESSAGE = "Automatic snapshot";
|
|
|
239
239
|
* folder has no version history.
|
|
240
240
|
*/
|
|
241
241
|
export declare function restoreVersionWithBackup(options: RestoreVersionOptions): Promise<RestoreVersionResult>;
|
|
242
|
-
/** The project's
|
|
242
|
+
/** The project's copies (git branches) and which one is currently open. */
|
|
243
243
|
export interface LocalBranches {
|
|
244
244
|
/** Name of the branch HEAD points to, or `null` on a detached/unborn HEAD. */
|
|
245
245
|
current: string | null;
|
|
246
|
-
/**
|
|
246
|
+
/**
|
|
247
|
+
* Every copy the project can switch to, sorted: local branches
|
|
248
|
+
* (`refs/heads/*`) plus copies that so far exist only on a remote.
|
|
249
|
+
*/
|
|
247
250
|
branches: string[];
|
|
251
|
+
/**
|
|
252
|
+
* The subset of {@link branches} with no local ref yet. Switching to one of
|
|
253
|
+
* these creates the local copy from the remote and tracks it; the UI uses
|
|
254
|
+
* this only to say so before it happens.
|
|
255
|
+
*/
|
|
256
|
+
remoteOnly: string[];
|
|
248
257
|
}
|
|
249
258
|
/** Inputs for {@link switchBranch}. */
|
|
250
259
|
export interface SwitchBranchOptions {
|
|
251
260
|
projectDir: string;
|
|
252
|
-
/**
|
|
261
|
+
/** Branch name to check out — local, or one that so far exists only on a remote. */
|
|
253
262
|
branch: string;
|
|
254
263
|
/** Identity recorded on the automatic pre-switch safety snapshot, if one is taken. */
|
|
255
264
|
authorName?: string;
|
|
@@ -272,10 +281,14 @@ export interface SwitchBranchResult {
|
|
|
272
281
|
/** Snapshot message for the safety snapshot {@link switchBranch} takes before checking out, when the working tree has changes. */
|
|
273
282
|
export declare const SWITCH_BRANCH_SNAPSHOT_MESSAGE = "Saved before switching copy";
|
|
274
283
|
/**
|
|
275
|
-
* List the project's
|
|
284
|
+
* List the project's copies (git branches) and which one is open, for a
|
|
276
285
|
* `local-git-folder` project. Returns `null` for any other source type —
|
|
277
286
|
* there is nothing to switch between, and the caller (the Saving settings row)
|
|
278
287
|
* hides the whole control on `null` rather than showing an error.
|
|
288
|
+
*
|
|
289
|
+
* Copies that exist only on a remote are included: they are as real to the
|
|
290
|
+
* author as the local ones, and {@link switchBranch} creates the local branch
|
|
291
|
+
* on the way in.
|
|
279
292
|
*/
|
|
280
293
|
export declare function listLocalBranches(dir: string): Promise<LocalBranches | null>;
|
|
281
294
|
/**
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANIFEST_FILENAMES,
|
|
3
3
|
runLint
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-n0vgey6x.js";
|
|
5
5
|
import {
|
|
6
6
|
log
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-2rswy18t.js";
|
|
8
8
|
import {
|
|
9
9
|
UsageError,
|
|
10
10
|
rejectExtraPositionals,
|
|
11
11
|
rejectUnknownFlags
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-scqp638v.js";
|
|
13
13
|
import"./cli-k8f9eb12.js";
|
|
14
14
|
import"./cli-c41yr7he.js";
|
|
15
15
|
import {
|
|
16
16
|
EXIT_CODES
|
|
17
17
|
} from "./cli-46ycxe6r.js";
|
|
18
|
-
import"./cli-
|
|
18
|
+
import"./cli-4mtf9ajw.js";
|
|
19
19
|
import"./cli-v5mp7a6q.js";
|
|
20
20
|
import"./cli-37x76zdn.js";
|
|
21
21
|
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
TARGET_IDS,
|
|
8
8
|
scaffoldExtension,
|
|
9
9
|
scaffoldProject
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-n0vgey6x.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveGhostscript
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-2rswy18t.js";
|
|
14
14
|
import {
|
|
15
15
|
UsageError,
|
|
16
16
|
rejectExtraPositionals,
|
|
17
17
|
rejectUnknownFlags
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-scqp638v.js";
|
|
19
19
|
import"./cli-k8f9eb12.js";
|
|
20
20
|
import {
|
|
21
21
|
isToolAvailable
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
EXIT_CODES
|
|
25
25
|
} from "./cli-46ycxe6r.js";
|
|
26
|
-
import"./cli-
|
|
26
|
+
import"./cli-4mtf9ajw.js";
|
|
27
27
|
import"./cli-v5mp7a6q.js";
|
|
28
28
|
import"./cli-37x76zdn.js";
|
|
29
29
|
|
|
@@ -2,21 +2,21 @@ import {
|
|
|
2
2
|
executeValidation,
|
|
3
3
|
publishTargetFor,
|
|
4
4
|
reportMissingTools
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-n0vgey6x.js";
|
|
6
6
|
import {
|
|
7
7
|
log
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-2rswy18t.js";
|
|
9
9
|
import {
|
|
10
10
|
UsageError,
|
|
11
11
|
rejectExtraPositionals,
|
|
12
12
|
rejectUnknownFlags
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-scqp638v.js";
|
|
14
14
|
import"./cli-k8f9eb12.js";
|
|
15
15
|
import"./cli-c41yr7he.js";
|
|
16
16
|
import {
|
|
17
17
|
EXIT_CODES
|
|
18
18
|
} from "./cli-46ycxe6r.js";
|
|
19
|
-
import"./cli-
|
|
19
|
+
import"./cli-4mtf9ajw.js";
|
|
20
20
|
import"./cli-v5mp7a6q.js";
|
|
21
21
|
import"./cli-37x76zdn.js";
|
|
22
22
|
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
runBuild,
|
|
7
7
|
splitOutPath,
|
|
8
8
|
startPreviewServer
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-n0vgey6x.js";
|
|
10
10
|
import {
|
|
11
11
|
log
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-2rswy18t.js";
|
|
13
13
|
import {
|
|
14
14
|
UsageError,
|
|
15
15
|
parseFormat,
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
rejectExtraPositionals,
|
|
18
18
|
rejectUnknownFlags,
|
|
19
19
|
resolvePort
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-scqp638v.js";
|
|
21
21
|
import"./cli-k8f9eb12.js";
|
|
22
22
|
import"./cli-c41yr7he.js";
|
|
23
23
|
import {
|
|
24
24
|
BuildError
|
|
25
25
|
} from "./cli-46ycxe6r.js";
|
|
26
|
-
import"./cli-
|
|
26
|
+
import"./cli-4mtf9ajw.js";
|
|
27
27
|
import"./cli-v5mp7a6q.js";
|
|
28
28
|
import"./cli-37x76zdn.js";
|
|
29
29
|
|
|
@@ -11,22 +11,22 @@ import {
|
|
|
11
11
|
publishProviderFor,
|
|
12
12
|
resolvePublishFormat,
|
|
13
13
|
runPublish
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-n0vgey6x.js";
|
|
15
15
|
import {
|
|
16
16
|
FileTokenStore,
|
|
17
17
|
log
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-2rswy18t.js";
|
|
19
19
|
import {
|
|
20
20
|
UsageError,
|
|
21
21
|
rejectExtraPositionals,
|
|
22
22
|
rejectUnknownFlags
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-scqp638v.js";
|
|
24
24
|
import"./cli-k8f9eb12.js";
|
|
25
25
|
import"./cli-c41yr7he.js";
|
|
26
26
|
import {
|
|
27
27
|
EXIT_CODES
|
|
28
28
|
} from "./cli-46ycxe6r.js";
|
|
29
|
-
import"./cli-
|
|
29
|
+
import"./cli-4mtf9ajw.js";
|
|
30
30
|
import"./cli-v5mp7a6q.js";
|
|
31
31
|
import"./cli-37x76zdn.js";
|
|
32
32
|
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAndReport
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-n0vgey6x.js";
|
|
4
4
|
import {
|
|
5
5
|
log
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-2rswy18t.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError,
|
|
9
9
|
rejectExtraPositionals,
|
|
10
10
|
rejectUnknownFlags
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-scqp638v.js";
|
|
12
12
|
import"./cli-k8f9eb12.js";
|
|
13
13
|
import"./cli-c41yr7he.js";
|
|
14
14
|
import {
|
|
15
15
|
EXIT_CODES
|
|
16
16
|
} from "./cli-46ycxe6r.js";
|
|
17
|
-
import"./cli-
|
|
17
|
+
import"./cli-4mtf9ajw.js";
|
|
18
18
|
import"./cli-v5mp7a6q.js";
|
|
19
19
|
import"./cli-37x76zdn.js";
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gutterpress",
|
|
3
|
-
"version": "0.10.10-alpha.
|
|
3
|
+
"version": "0.10.10-alpha.2",
|
|
4
4
|
"description": "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
|
|
5
5
|
"author": "itlackey",
|
|
6
6
|
"license": "MPL-2.0",
|