gutterpress 0.11.0 → 0.11.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 +1 -1
- package/dist/{audit-xcreaxvj.js → audit-qvs2gf85.js} +3 -3
- package/dist/{build-j433exnc.js → build-9k3qee1e.js} +3 -3
- package/dist/{cli-xa9y4np2.js → cli-59cxxeb5.js} +20 -3
- package/dist/{cli-r0ycvdr9.js → cli-asree94f.js} +1 -1
- package/dist/{cli-9a60c9wn.js → cli-kr7f2kj5.js} +1 -1
- package/dist/cli.js +14 -14
- package/dist/{doctor-mmgg0p64.js → doctor-qt76awxj.js} +2 -2
- package/dist/{ext-2vjqcmsh.js → ext-h5srcx5p.js} +3 -3
- package/dist/{index-g6t4qdzm.js → index-pge2jxjm.js} +19 -2
- package/dist/index.js +1 -1
- package/dist/{lint-485wgyn0.js → lint-00z3aqcy.js} +3 -3
- package/dist/{new-nayk48pr.js → new-01p2pbv7.js} +3 -3
- package/dist/{preflight-wf4j4vs6.js → preflight-w7wpraxp.js} +3 -3
- package/dist/preview/file-watcher.d.ts +4 -0
- package/dist/{preview-ke5fyhtt.js → preview-48zhqser.js} +3 -3
- package/dist/{publish-prnv6hf1.js → publish-pmwvj7qf.js} +3 -3
- package/dist/{validate-98fk1yqg.js → validate-bthhscqf.js} +3 -3
- package/package.json +1 -1
package/dist/api/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAndReport
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-59cxxeb5.js";
|
|
4
4
|
import {
|
|
5
5
|
log
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-asree94f.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError,
|
|
9
9
|
rejectExtraPositionals,
|
|
10
10
|
rejectUnknownFlags
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-kr7f2kj5.js";
|
|
12
12
|
import"./cli-sekhwex4.js";
|
|
13
13
|
import"./cli-c41yr7he.js";
|
|
14
14
|
import {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runBuild,
|
|
3
3
|
splitOutPath
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-59cxxeb5.js";
|
|
5
5
|
import {
|
|
6
6
|
log
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-asree94f.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-kr7f2kj5.js";
|
|
15
15
|
import"./cli-sekhwex4.js";
|
|
16
16
|
import"./cli-c41yr7he.js";
|
|
17
17
|
import {
|
|
@@ -13,12 +13,12 @@ import {
|
|
|
13
13
|
stampCreator,
|
|
14
14
|
stripAnnotations,
|
|
15
15
|
warn
|
|
16
|
-
} from "./cli-
|
|
16
|
+
} from "./cli-asree94f.js";
|
|
17
17
|
import {
|
|
18
18
|
DEBOUNCE,
|
|
19
19
|
UsageError,
|
|
20
20
|
resolvePort
|
|
21
|
-
} from "./cli-
|
|
21
|
+
} from "./cli-kr7f2kj5.js";
|
|
22
22
|
import {
|
|
23
23
|
MARGIN_BOX_IGNORED_PROPERTIES,
|
|
24
24
|
RENDER_TIMEOUT_MS,
|
|
@@ -9079,6 +9079,21 @@ async function externalWatchRoots(targets) {
|
|
|
9079
9079
|
}
|
|
9080
9080
|
return [...roots];
|
|
9081
9081
|
}
|
|
9082
|
+
async function extensionFolderFiles(dir) {
|
|
9083
|
+
try {
|
|
9084
|
+
if (!(await fsp3.stat(dir)).isDirectory())
|
|
9085
|
+
return [];
|
|
9086
|
+
} catch {
|
|
9087
|
+
return [];
|
|
9088
|
+
}
|
|
9089
|
+
const meta = await readExtensionMeta(dir);
|
|
9090
|
+
const entry = extensionEntry(meta);
|
|
9091
|
+
return [
|
|
9092
|
+
path10.join(dir, EXTENSION_MANIFEST_FILENAME),
|
|
9093
|
+
...entry ? [path10.resolve(dir, entry)] : [],
|
|
9094
|
+
...await collectStyleDependencies(dir, extensionStyleList(meta))
|
|
9095
|
+
];
|
|
9096
|
+
}
|
|
9082
9097
|
async function externalWatchTargets(projectDir, config) {
|
|
9083
9098
|
const root = path10.resolve(projectDir);
|
|
9084
9099
|
let canonicalRoot = root;
|
|
@@ -9086,9 +9101,11 @@ async function externalWatchTargets(projectDir, config) {
|
|
|
9086
9101
|
canonicalRoot = await fsp3.realpath(root);
|
|
9087
9102
|
} catch {}
|
|
9088
9103
|
const styles = await resolveActiveStyles(root, config.styles);
|
|
9104
|
+
const extensionPaths = (config.extensions ?? []).map((p) => p.path).filter((p) => !!p).map((p) => path10.resolve(root, p));
|
|
9089
9105
|
const candidates = [
|
|
9090
9106
|
...await collectStyleDependencies(root, styles),
|
|
9091
|
-
...
|
|
9107
|
+
...extensionPaths,
|
|
9108
|
+
...(await Promise.all(extensionPaths.map(extensionFolderFiles))).flat()
|
|
9092
9109
|
];
|
|
9093
9110
|
const external = new Set;
|
|
9094
9111
|
for (const abs of candidates) {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
// package.json
|
|
5
5
|
var package_default = {
|
|
6
6
|
name: "gutterpress",
|
|
7
|
-
version: "0.11.
|
|
7
|
+
version: "0.11.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-kr7f2kj5.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-01p2pbv7.js").then((m) => m.default),
|
|
22
|
+
preview: () => import("./preview-48zhqser.js").then((m) => m.default),
|
|
23
|
+
build: () => import("./build-9k3qee1e.js").then((m) => m.default),
|
|
24
|
+
publish: () => import("./publish-pmwvj7qf.js").then((m) => m.default),
|
|
25
|
+
lint: () => import("./lint-00z3aqcy.js").then((m) => m.default),
|
|
26
|
+
validate: () => import("./validate-bthhscqf.js").then((m) => m.default),
|
|
27
|
+
audit: () => import("./audit-qvs2gf85.js").then((m) => m.default),
|
|
28
|
+
preflight: () => import("./preflight-w7wpraxp.js").then((m) => m.default),
|
|
29
|
+
doctor: () => import("./doctor-qt76awxj.js").then((m) => m.default),
|
|
30
|
+
ext: () => import("./ext-h5srcx5p.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-01p2pbv7.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-w7wpraxp.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-h5srcx5p.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-asree94f.js";
|
|
5
5
|
import {
|
|
6
6
|
UsageError,
|
|
7
7
|
rejectExtraPositionals,
|
|
8
8
|
rejectUnknownFlags
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-kr7f2kj5.js";
|
|
10
10
|
import"./cli-c41yr7he.js";
|
|
11
11
|
import"./cli-46ycxe6r.js";
|
|
12
12
|
import"./cli-37x76zdn.js";
|
|
@@ -10,15 +10,15 @@ import {
|
|
|
10
10
|
removeExtension,
|
|
11
11
|
searchNpmExtensions,
|
|
12
12
|
setExtensionEnabled
|
|
13
|
-
} from "./cli-
|
|
14
|
-
import"./cli-
|
|
13
|
+
} from "./cli-59cxxeb5.js";
|
|
14
|
+
import"./cli-asree94f.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-kr7f2kj5.js";
|
|
22
22
|
import"./cli-sekhwex4.js";
|
|
23
23
|
import"./cli-c41yr7he.js";
|
|
24
24
|
import {
|
|
@@ -4874,7 +4874,7 @@ import git from "isomorphic-git";
|
|
|
4874
4874
|
// package.json
|
|
4875
4875
|
var package_default = {
|
|
4876
4876
|
name: "gutterpress",
|
|
4877
|
-
version: "0.11.
|
|
4877
|
+
version: "0.11.2",
|
|
4878
4878
|
description: "Markdown-to-PDF converter for professional print layout using a native Chromium print engine and Ghostscript.",
|
|
4879
4879
|
author: "itlackey",
|
|
4880
4880
|
license: "MPL-2.0",
|
|
@@ -9539,6 +9539,21 @@ async function externalWatchRoots(targets) {
|
|
|
9539
9539
|
}
|
|
9540
9540
|
return [...roots];
|
|
9541
9541
|
}
|
|
9542
|
+
async function extensionFolderFiles(dir) {
|
|
9543
|
+
try {
|
|
9544
|
+
if (!(await fsp3.stat(dir)).isDirectory())
|
|
9545
|
+
return [];
|
|
9546
|
+
} catch {
|
|
9547
|
+
return [];
|
|
9548
|
+
}
|
|
9549
|
+
const meta = await readExtensionMeta(dir);
|
|
9550
|
+
const entry = extensionEntry(meta);
|
|
9551
|
+
return [
|
|
9552
|
+
path10.join(dir, EXTENSION_MANIFEST_FILENAME),
|
|
9553
|
+
...entry ? [path10.resolve(dir, entry)] : [],
|
|
9554
|
+
...await collectStyleDependencies(dir, extensionStyleList(meta))
|
|
9555
|
+
];
|
|
9556
|
+
}
|
|
9542
9557
|
async function externalWatchTargets(projectDir, config) {
|
|
9543
9558
|
const root = path10.resolve(projectDir);
|
|
9544
9559
|
let canonicalRoot = root;
|
|
@@ -9546,9 +9561,11 @@ async function externalWatchTargets(projectDir, config) {
|
|
|
9546
9561
|
canonicalRoot = await fsp3.realpath(root);
|
|
9547
9562
|
} catch {}
|
|
9548
9563
|
const styles = await resolveActiveStyles(root, config.styles);
|
|
9564
|
+
const extensionPaths = (config.extensions ?? []).map((p) => p.path).filter((p) => !!p).map((p) => path10.resolve(root, p));
|
|
9549
9565
|
const candidates = [
|
|
9550
9566
|
...await collectStyleDependencies(root, styles),
|
|
9551
|
-
...
|
|
9567
|
+
...extensionPaths,
|
|
9568
|
+
...(await Promise.all(extensionPaths.map(extensionFolderFiles))).flat()
|
|
9552
9569
|
];
|
|
9553
9570
|
const external = new Set;
|
|
9554
9571
|
for (const abs of candidates) {
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANIFEST_FILENAMES,
|
|
3
3
|
runLint
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-59cxxeb5.js";
|
|
5
5
|
import {
|
|
6
6
|
log
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-asree94f.js";
|
|
8
8
|
import {
|
|
9
9
|
UsageError,
|
|
10
10
|
rejectExtraPositionals,
|
|
11
11
|
rejectUnknownFlags
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-kr7f2kj5.js";
|
|
13
13
|
import"./cli-sekhwex4.js";
|
|
14
14
|
import"./cli-c41yr7he.js";
|
|
15
15
|
import {
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
TARGET_IDS,
|
|
8
8
|
scaffoldExtension,
|
|
9
9
|
scaffoldProject
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-59cxxeb5.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveGhostscript
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-asree94f.js";
|
|
14
14
|
import {
|
|
15
15
|
UsageError,
|
|
16
16
|
rejectExtraPositionals,
|
|
17
17
|
rejectUnknownFlags
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-kr7f2kj5.js";
|
|
19
19
|
import"./cli-sekhwex4.js";
|
|
20
20
|
import {
|
|
21
21
|
isToolAvailable
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
executeValidation,
|
|
3
3
|
publishTargetFor,
|
|
4
4
|
reportMissingTools
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-59cxxeb5.js";
|
|
6
6
|
import {
|
|
7
7
|
log
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-asree94f.js";
|
|
9
9
|
import {
|
|
10
10
|
UsageError,
|
|
11
11
|
rejectExtraPositionals,
|
|
12
12
|
rejectUnknownFlags
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-kr7f2kj5.js";
|
|
14
14
|
import"./cli-sekhwex4.js";
|
|
15
15
|
import"./cli-c41yr7he.js";
|
|
16
16
|
import {
|
|
@@ -149,6 +149,10 @@ export declare function externalWatchRoots(targets: Iterable<string>): Promise<s
|
|
|
149
149
|
* because a local stylesheet can reference a shared font just as easily — only
|
|
150
150
|
* the results that land outside the book are added here.
|
|
151
151
|
*
|
|
152
|
+
* An extension `path:` that names a FOLDER expands to the files the loader
|
|
153
|
+
* reads from it ({@link extensionFolderFiles}); the folder path on its own
|
|
154
|
+
* matches no file inside it.
|
|
155
|
+
*
|
|
152
156
|
* Watching is per-FILE, never per-directory, so the set stays exact and cannot
|
|
153
157
|
* accidentally pull a large sibling tree into the watcher.
|
|
154
158
|
*/
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
runBuild,
|
|
7
7
|
splitOutPath,
|
|
8
8
|
startPreviewServer
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-59cxxeb5.js";
|
|
10
10
|
import {
|
|
11
11
|
log
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-asree94f.js";
|
|
13
13
|
import {
|
|
14
14
|
UsageError,
|
|
15
15
|
parseFormat,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
rejectExtraPositionals,
|
|
18
18
|
rejectUnknownFlags,
|
|
19
19
|
resolvePort
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-kr7f2kj5.js";
|
|
21
21
|
import"./cli-sekhwex4.js";
|
|
22
22
|
import"./cli-c41yr7he.js";
|
|
23
23
|
import {
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
publishProviderFor,
|
|
12
12
|
resolvePublishFormat,
|
|
13
13
|
runPublish
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-59cxxeb5.js";
|
|
15
15
|
import {
|
|
16
16
|
FileTokenStore,
|
|
17
17
|
log
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-asree94f.js";
|
|
19
19
|
import {
|
|
20
20
|
UsageError,
|
|
21
21
|
rejectExtraPositionals,
|
|
22
22
|
rejectUnknownFlags
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-kr7f2kj5.js";
|
|
24
24
|
import"./cli-sekhwex4.js";
|
|
25
25
|
import"./cli-c41yr7he.js";
|
|
26
26
|
import {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAndReport
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-59cxxeb5.js";
|
|
4
4
|
import {
|
|
5
5
|
log
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-asree94f.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError,
|
|
9
9
|
rejectExtraPositionals,
|
|
10
10
|
rejectUnknownFlags
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-kr7f2kj5.js";
|
|
12
12
|
import"./cli-sekhwex4.js";
|
|
13
13
|
import"./cli-c41yr7he.js";
|
|
14
14
|
import {
|
package/package.json
CHANGED