@vivliostyle/cli 9.0.0-next.2 → 9.0.0-next.4
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/chunk-BIEQXUOY.js +50 -0
- package/dist/chunk-DMARNPN5.js +1073 -0
- package/dist/chunk-DMGAKSPH.js +590 -0
- package/dist/{core/init.js → chunk-E7QOXL6M.js} +39 -26
- package/dist/chunk-EX7EA34F.js +64 -0
- package/dist/chunk-LASMQBPP.js +85 -0
- package/dist/chunk-QC3BOE2G.js +74 -0
- package/dist/chunk-VBEHGS67.js +4990 -0
- package/dist/chunk-WX6JHPSL.js +16 -0
- package/dist/chunk-Y3ETBU5J.js +54 -0
- package/dist/cli.d.ts +0 -2
- package/dist/cli.js +17 -18
- package/dist/commands/build.d.ts +2 -2
- package/dist/commands/build.js +165 -17
- package/dist/commands/init.d.ts +2 -2
- package/dist/commands/init.js +35 -12
- package/dist/commands/preview.d.ts +2 -2
- package/dist/commands/preview.js +98 -12
- package/dist/config/schema.d.ts +1707 -1671
- package/dist/config/schema.js +50 -575
- package/dist/index.d.ts +116 -7
- package/dist/index.js +38 -42
- package/dist/node-modules.d.ts +21 -0
- package/dist/node-modules.js +9 -0
- package/dist/vite-adapter.d.ts +8 -2
- package/dist/vite-adapter.js +11 -28
- package/package.json +34 -15
- package/dist/browser.d.ts +0 -19
- package/dist/browser.d.ts.map +0 -1
- package/dist/browser.js +0 -154
- package/dist/browser.js.map +0 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/commands/build.d.ts.map +0 -1
- package/dist/commands/build.js.map +0 -1
- package/dist/commands/build.parser.d.ts +0 -3
- package/dist/commands/build.parser.d.ts.map +0 -1
- package/dist/commands/build.parser.js +0 -102
- package/dist/commands/build.parser.js.map +0 -1
- package/dist/commands/cli-flags.d.ts +0 -42
- package/dist/commands/cli-flags.d.ts.map +0 -1
- package/dist/commands/cli-flags.js +0 -58
- package/dist/commands/cli-flags.js.map +0 -1
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/init.parser.d.ts +0 -3
- package/dist/commands/init.parser.d.ts.map +0 -1
- package/dist/commands/init.parser.js +0 -17
- package/dist/commands/init.parser.js.map +0 -1
- package/dist/commands/preview.d.ts.map +0 -1
- package/dist/commands/preview.js.map +0 -1
- package/dist/commands/preview.parser.d.ts +0 -3
- package/dist/commands/preview.parser.d.ts.map +0 -1
- package/dist/commands/preview.parser.js +0 -50
- package/dist/commands/preview.parser.js.map +0 -1
- package/dist/config/load.d.ts +0 -4
- package/dist/config/load.d.ts.map +0 -1
- package/dist/config/load.js +0 -75
- package/dist/config/load.js.map +0 -1
- package/dist/config/merge.d.ts +0 -4
- package/dist/config/merge.d.ts.map +0 -1
- package/dist/config/merge.js +0 -55
- package/dist/config/merge.js.map +0 -1
- package/dist/config/resolve.d.ts +0 -205
- package/dist/config/resolve.d.ts.map +0 -1
- package/dist/config/resolve.js +0 -770
- package/dist/config/resolve.js.map +0 -1
- package/dist/config/schema.d.ts.map +0 -1
- package/dist/config/schema.js.map +0 -1
- package/dist/config/vite.d.ts +0 -6
- package/dist/config/vite.d.ts.map +0 -1
- package/dist/config/vite.js +0 -47
- package/dist/config/vite.js.map +0 -1
- package/dist/const.d.ts +0 -20
- package/dist/const.d.ts.map +0 -1
- package/dist/const.js +0 -41
- package/dist/const.js.map +0 -1
- package/dist/container.d.ts +0 -21
- package/dist/container.d.ts.map +0 -1
- package/dist/container.js +0 -175
- package/dist/container.js.map +0 -1
- package/dist/core/build.d.ts +0 -3
- package/dist/core/build.d.ts.map +0 -1
- package/dist/core/build.js +0 -167
- package/dist/core/build.js.map +0 -1
- package/dist/core/init.d.ts +0 -3
- package/dist/core/init.d.ts.map +0 -1
- package/dist/core/init.js.map +0 -1
- package/dist/core/preview.d.ts +0 -4
- package/dist/core/preview.d.ts.map +0 -1
- package/dist/core/preview.js +0 -113
- package/dist/core/preview.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/logger.d.ts +0 -23
- package/dist/logger.d.ts.map +0 -1
- package/dist/logger.js +0 -162
- package/dist/logger.js.map +0 -1
- package/dist/output/epub.d.ts +0 -10
- package/dist/output/epub.d.ts.map +0 -1
- package/dist/output/epub.js +0 -505
- package/dist/output/epub.js.map +0 -1
- package/dist/output/pdf-postprocess.d.ts +0 -30
- package/dist/output/pdf-postprocess.d.ts.map +0 -1
- package/dist/output/pdf-postprocess.js +0 -270
- package/dist/output/pdf-postprocess.js.map +0 -1
- package/dist/output/pdf.d.ts +0 -6
- package/dist/output/pdf.d.ts.map +0 -1
- package/dist/output/pdf.js +0 -200
- package/dist/output/pdf.js.map +0 -1
- package/dist/output/webbook.d.ts +0 -45
- package/dist/output/webbook.d.ts.map +0 -1
- package/dist/output/webbook.js +0 -413
- package/dist/output/webbook.js.map +0 -1
- package/dist/processor/compile.d.ts +0 -30
- package/dist/processor/compile.d.ts.map +0 -1
- package/dist/processor/compile.js +0 -349
- package/dist/processor/compile.js.map +0 -1
- package/dist/processor/html.d.ts +0 -107
- package/dist/processor/html.d.ts.map +0 -1
- package/dist/processor/html.js +0 -494
- package/dist/processor/html.js.map +0 -1
- package/dist/processor/markdown.d.ts +0 -12
- package/dist/processor/markdown.d.ts.map +0 -1
- package/dist/processor/markdown.js +0 -23
- package/dist/processor/markdown.js.map +0 -1
- package/dist/processor/theme.d.ts +0 -4
- package/dist/processor/theme.d.ts.map +0 -1
- package/dist/processor/theme.js +0 -41
- package/dist/processor/theme.js.map +0 -1
- package/dist/schema/pub-manifest.d.ts +0 -4
- package/dist/schema/pub-manifest.d.ts.map +0 -1
- package/dist/schema/pub-manifest.js +0 -41
- package/dist/schema/pub-manifest.js.map +0 -1
- package/dist/schema/publication.schema.d.ts +0 -104
- package/dist/schema/publication.schema.d.ts.map +0 -1
- package/dist/schema/publication.schema.js +0 -8
- package/dist/schema/publication.schema.js.map +0 -1
- package/dist/server.d.ts +0 -20
- package/dist/server.d.ts.map +0 -1
- package/dist/server.js +0 -117
- package/dist/server.js.map +0 -1
- package/dist/util.d.ts +0 -55
- package/dist/util.d.ts.map +0 -1
- package/dist/util.js +0 -269
- package/dist/util.js.map +0 -1
- package/dist/vite/plugin-util.d.ts +0 -6
- package/dist/vite/plugin-util.d.ts.map +0 -1
- package/dist/vite/plugin-util.js +0 -18
- package/dist/vite/plugin-util.js.map +0 -1
- package/dist/vite/vite-plugin-browser.d.ts +0 -8
- package/dist/vite/vite-plugin-browser.d.ts.map +0 -1
- package/dist/vite/vite-plugin-browser.js +0 -54
- package/dist/vite/vite-plugin-browser.js.map +0 -1
- package/dist/vite/vite-plugin-dev-server.d.ts +0 -8
- package/dist/vite/vite-plugin-dev-server.d.ts.map +0 -1
- package/dist/vite/vite-plugin-dev-server.js +0 -270
- package/dist/vite/vite-plugin-dev-server.js.map +0 -1
- package/dist/vite/vite-plugin-static-serve.d.ts +0 -8
- package/dist/vite/vite-plugin-static-serve.d.ts.map +0 -1
- package/dist/vite/vite-plugin-static-serve.js +0 -31
- package/dist/vite/vite-plugin-static-serve.js.map +0 -1
- package/dist/vite/vite-plugin-viewer.d.ts +0 -8
- package/dist/vite/vite-plugin-viewer.d.ts.map +0 -1
- package/dist/vite/vite-plugin-viewer.js +0 -52
- package/dist/vite/vite-plugin-viewer.js.map +0 -1
- package/dist/vite-adapter.d.ts.map +0 -1
- package/dist/vite-adapter.js.map +0 -1
- package/schemas/pub-manifest/README.md +0 -5
- package/schemas/pub-manifest/module/ItemList.schema.json +0 -32
- package/schemas/pub-manifest/module/bcp.schema.json +0 -7
- package/schemas/pub-manifest/module/context.schema.json +0 -62
- package/schemas/pub-manifest/module/contributor-object.schema.json +0 -42
- package/schemas/pub-manifest/module/contributor.schema.json +0 -26
- package/schemas/pub-manifest/module/date.schema.json +0 -7
- package/schemas/pub-manifest/module/duration.schema.json +0 -7
- package/schemas/pub-manifest/module/item-lists.schema.json +0 -16
- package/schemas/pub-manifest/module/language.schema.json +0 -16
- package/schemas/pub-manifest/module/link.schema.json +0 -60
- package/schemas/pub-manifest/module/localizable-object.schema.json +0 -15
- package/schemas/pub-manifest/module/localizable.schema.json +0 -26
- package/schemas/pub-manifest/module/resource.categorization.schema.json +0 -31
- package/schemas/pub-manifest/module/strings.schema.json +0 -9
- package/schemas/pub-manifest/module/url.schema.json +0 -7
- package/schemas/pub-manifest/module/urls.schema.json +0 -18
- package/schemas/pub-manifest/publication.schema.json +0 -123
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,117 @@
|
|
|
1
|
+
import * as vite from 'vite';
|
|
1
2
|
import { VivliostyleInlineConfig } from './config/schema.js';
|
|
2
|
-
|
|
3
|
-
export type { StructuredDocument, StructuredDocumentSection, VivliostyleConfigSchema, } from './config/schema.js';
|
|
3
|
+
export { StructuredDocument, StructuredDocumentSection, VivliostyleConfigSchema } from './config/schema.js';
|
|
4
4
|
export { createVitePlugin } from './vite-adapter.js';
|
|
5
|
+
import '@vivliostyle/vfm';
|
|
6
|
+
import 'unified';
|
|
7
|
+
import 'valibot';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* This file was automatically generated by json-schema-to-typescript.
|
|
11
|
+
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
12
|
+
* and run json-schema-to-typescript to regenerate this file.
|
|
13
|
+
*/
|
|
14
|
+
type PublicationContexts = [] | ['https://schema.org'] | [
|
|
15
|
+
'https://schema.org',
|
|
16
|
+
'https://www.w3.org/ns/pub-context',
|
|
17
|
+
...(string | {
|
|
18
|
+
language: BCP47LanguageTag;
|
|
19
|
+
direction?: never;
|
|
20
|
+
[k: string]: unknown;
|
|
21
|
+
} | {
|
|
22
|
+
direction: 'ltr' | 'rtl';
|
|
23
|
+
language?: never;
|
|
24
|
+
[k: string]: unknown;
|
|
25
|
+
} | {
|
|
26
|
+
language: BCP47LanguageTag;
|
|
27
|
+
direction: 'ltr' | 'rtl';
|
|
28
|
+
[k: string]: unknown;
|
|
29
|
+
} | {
|
|
30
|
+
language?: never;
|
|
31
|
+
direction?: never;
|
|
32
|
+
[k: string]: unknown;
|
|
33
|
+
})[]
|
|
34
|
+
];
|
|
35
|
+
type BCP47LanguageTag = string;
|
|
36
|
+
type URL = string;
|
|
37
|
+
type UniqueStrings = string | string[];
|
|
38
|
+
type ListsOfItemList = SchemaOrgItemListObject | SchemaOrgItemListObject[];
|
|
39
|
+
type LocalizableStringOrObject = string | (string | LocalizableStringObject)[] | LocalizableStringObject;
|
|
40
|
+
type Contributor = string | (string | ContributorObject)[] | ContributorObject;
|
|
41
|
+
type URLs = string | string[];
|
|
42
|
+
type Duration = string;
|
|
43
|
+
type Languages = BCP47LanguageTag | BCP47LanguageTag[];
|
|
44
|
+
type Dates = string;
|
|
45
|
+
type ResourceCategorization = (URL | PublicationLinks) | (URL | PublicationLinks)[];
|
|
46
|
+
interface PublicationManifest$1 {
|
|
47
|
+
'@context': PublicationContexts;
|
|
48
|
+
type?: string | string[];
|
|
49
|
+
conformsTo: URL | URL[];
|
|
50
|
+
id?: string;
|
|
51
|
+
abridged?: boolean;
|
|
52
|
+
accessMode?: UniqueStrings;
|
|
53
|
+
accessModeSufficient?: ListsOfItemList;
|
|
54
|
+
accessibilityFeature?: UniqueStrings;
|
|
55
|
+
accessibilityHazard?: UniqueStrings;
|
|
56
|
+
accessibilitySummary?: LocalizableStringOrObject;
|
|
57
|
+
artist?: Contributor;
|
|
58
|
+
author?: Contributor;
|
|
59
|
+
colorist?: Contributor;
|
|
60
|
+
contributor?: Contributor;
|
|
61
|
+
creator?: Contributor;
|
|
62
|
+
editor?: Contributor;
|
|
63
|
+
illustrator?: Contributor;
|
|
64
|
+
inker?: Contributor;
|
|
65
|
+
letterer?: Contributor;
|
|
66
|
+
penciler?: Contributor;
|
|
67
|
+
publisher?: Contributor;
|
|
68
|
+
readBy?: Contributor;
|
|
69
|
+
translator?: Contributor;
|
|
70
|
+
url?: URLs;
|
|
71
|
+
duration?: Duration;
|
|
72
|
+
inLanguage?: Languages;
|
|
73
|
+
dateModified?: Dates;
|
|
74
|
+
datePublished?: Dates;
|
|
75
|
+
name?: LocalizableStringOrObject;
|
|
76
|
+
readingOrder?: ResourceCategorization;
|
|
77
|
+
resources?: ResourceCategorization;
|
|
78
|
+
links?: ResourceCategorization;
|
|
79
|
+
readingProgression?: 'ltr' | 'rtl';
|
|
80
|
+
[k: string]: unknown;
|
|
81
|
+
}
|
|
82
|
+
interface SchemaOrgItemListObject {
|
|
83
|
+
type: 'ItemList' | string[];
|
|
84
|
+
itemListElement: string[];
|
|
85
|
+
[k: string]: unknown;
|
|
86
|
+
}
|
|
87
|
+
interface LocalizableStringObject {
|
|
88
|
+
value: string;
|
|
89
|
+
language?: BCP47LanguageTag;
|
|
90
|
+
[k: string]: unknown;
|
|
91
|
+
}
|
|
92
|
+
interface ContributorObject {
|
|
93
|
+
name: LocalizableStringOrObject;
|
|
94
|
+
id?: URL;
|
|
95
|
+
type?: ('Person' | 'Organization') | string[];
|
|
96
|
+
url?: URL;
|
|
97
|
+
identifier?: string[];
|
|
98
|
+
[k: string]: unknown;
|
|
99
|
+
}
|
|
100
|
+
interface PublicationLinks {
|
|
101
|
+
type?: 'LinkedResource' | string[];
|
|
102
|
+
url: URL;
|
|
103
|
+
encodingFormat?: string;
|
|
104
|
+
name?: LocalizableStringOrObject;
|
|
105
|
+
description?: string | LocalizableStringObject;
|
|
106
|
+
rel?: string | string[];
|
|
107
|
+
integrity?: string;
|
|
108
|
+
duration?: Duration;
|
|
109
|
+
alternate?: ResourceCategorization;
|
|
110
|
+
[k: string]: unknown;
|
|
111
|
+
}
|
|
112
|
+
|
|
5
113
|
/** @hidden */
|
|
6
|
-
|
|
114
|
+
type PublicationManifest = PublicationManifest$1;
|
|
7
115
|
/**
|
|
8
116
|
* Build publication file(s) from the given configuration.
|
|
9
117
|
*
|
|
@@ -18,19 +126,20 @@ export type PublicationManifest = _PublicationManifest;
|
|
|
18
126
|
* @param options
|
|
19
127
|
* @returns
|
|
20
128
|
*/
|
|
21
|
-
|
|
129
|
+
declare function build(options: VivliostyleInlineConfig): Promise<void>;
|
|
22
130
|
/**
|
|
23
131
|
* Initialize a new vivliostyle.config.js file.
|
|
24
132
|
*
|
|
25
133
|
* @param options
|
|
26
134
|
* @returns
|
|
27
135
|
*/
|
|
28
|
-
|
|
136
|
+
declare function init(options: VivliostyleInlineConfig): Promise<void>;
|
|
29
137
|
/**
|
|
30
138
|
* Open a browser for previewing the publication.
|
|
31
139
|
*
|
|
32
140
|
* @param options
|
|
33
141
|
* @returns
|
|
34
142
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
143
|
+
declare function preview(options: VivliostyleInlineConfig): Promise<vite.ViteDevServer>;
|
|
144
|
+
|
|
145
|
+
export { type PublicationManifest, build, init, preview };
|
package/dist/index.js
CHANGED
|
@@ -1,45 +1,41 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import {
|
|
2
|
+
createVitePlugin
|
|
3
|
+
} from "./chunk-Y3ETBU5J.js";
|
|
4
|
+
import {
|
|
5
|
+
build
|
|
6
|
+
} from "./chunk-DMGAKSPH.js";
|
|
7
|
+
import {
|
|
8
|
+
init
|
|
9
|
+
} from "./chunk-E7QOXL6M.js";
|
|
10
|
+
import {
|
|
11
|
+
preview
|
|
12
|
+
} from "./chunk-LASMQBPP.js";
|
|
13
|
+
import "./chunk-QC3BOE2G.js";
|
|
14
|
+
import "./chunk-VBEHGS67.js";
|
|
15
|
+
import "./chunk-EX7EA34F.js";
|
|
16
|
+
import "./chunk-WX6JHPSL.js";
|
|
17
|
+
import {
|
|
18
|
+
VivliostyleInlineConfig
|
|
19
|
+
} from "./chunk-DMARNPN5.js";
|
|
20
|
+
import "./chunk-BIEQXUOY.js";
|
|
21
|
+
|
|
22
|
+
// src/index.ts
|
|
23
|
+
import * as v from "valibot";
|
|
24
|
+
async function build2(options) {
|
|
25
|
+
const parsed = v.parse(VivliostyleInlineConfig, options);
|
|
26
|
+
return await build(parsed);
|
|
24
27
|
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
* @param options
|
|
29
|
-
* @returns
|
|
30
|
-
*/
|
|
31
|
-
export async function init(options) {
|
|
32
|
-
const parsed = v.parse(VivliostyleInlineConfig, options);
|
|
33
|
-
return await _init(parsed);
|
|
28
|
+
async function init2(options) {
|
|
29
|
+
const parsed = v.parse(VivliostyleInlineConfig, options);
|
|
30
|
+
return await init(parsed);
|
|
34
31
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
* @param options
|
|
39
|
-
* @returns
|
|
40
|
-
*/
|
|
41
|
-
export async function preview(options) {
|
|
42
|
-
const parsed = v.parse(VivliostyleInlineConfig, options);
|
|
43
|
-
return await _preview(parsed);
|
|
32
|
+
async function preview2(options) {
|
|
33
|
+
const parsed = v.parse(VivliostyleInlineConfig, options);
|
|
34
|
+
return await preview(parsed);
|
|
44
35
|
}
|
|
45
|
-
|
|
36
|
+
export {
|
|
37
|
+
build2 as build,
|
|
38
|
+
createVitePlugin,
|
|
39
|
+
init2 as init,
|
|
40
|
+
preview2 as preview
|
|
41
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as playwright_core_lib_server from 'playwright-core/lib/server';
|
|
2
|
+
import * as playwright_core from 'playwright-core';
|
|
3
|
+
import * as pdf_lib from 'pdf-lib';
|
|
4
|
+
import * as press_ready from 'press-ready';
|
|
5
|
+
import * as execa from 'execa';
|
|
6
|
+
import * as command_exists from 'command-exists';
|
|
7
|
+
import * as _napi_rs_canvas from '@napi-rs/canvas';
|
|
8
|
+
|
|
9
|
+
declare const nodeExternalModules: readonly ["@napi-rs/canvas", "command-exists", "execa", "press-ready", "pdf-lib", "playwright-core", "playwright-core/lib/server"];
|
|
10
|
+
type NodeExternalModules = {
|
|
11
|
+
'@napi-rs/canvas': typeof _napi_rs_canvas;
|
|
12
|
+
'command-exists': typeof command_exists;
|
|
13
|
+
execa: typeof execa;
|
|
14
|
+
'press-ready': typeof press_ready;
|
|
15
|
+
'pdf-lib': typeof pdf_lib;
|
|
16
|
+
'playwright-core': typeof playwright_core;
|
|
17
|
+
'playwright-core/lib/server': typeof playwright_core_lib_server;
|
|
18
|
+
};
|
|
19
|
+
declare const importNodeModule: <T extends (typeof nodeExternalModules)[number]>(name: T) => Promise<NodeExternalModules[T]>;
|
|
20
|
+
|
|
21
|
+
export { importNodeModule, nodeExternalModules };
|
package/dist/vite-adapter.d.ts
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import * as vite from 'vite';
|
|
1
2
|
import { VivliostyleInlineConfig } from './config/schema.js';
|
|
2
|
-
|
|
3
|
-
|
|
3
|
+
import '@vivliostyle/vfm';
|
|
4
|
+
import 'unified';
|
|
5
|
+
import 'valibot';
|
|
6
|
+
|
|
7
|
+
declare function createVitePlugin(inlineConfig?: VivliostyleInlineConfig): Promise<vite.Plugin[]>;
|
|
8
|
+
|
|
9
|
+
export { createVitePlugin };
|
package/dist/vite-adapter.js
CHANGED
|
@@ -1,28 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export async function createVitePlugin(_inlineConfig = {}) {
|
|
13
|
-
const inlineConfig = v.parse(VivliostyleInlineConfig, _inlineConfig);
|
|
14
|
-
Logger.debug('inlineConfig %O', inlineConfig);
|
|
15
|
-
const vivliostyleConfig = (await loadVivliostyleConfig(inlineConfig)) ??
|
|
16
|
-
setupConfigFromFlags(inlineConfig);
|
|
17
|
-
warnDeprecatedConfig(vivliostyleConfig);
|
|
18
|
-
const { tasks, inlineOptions } = mergeInlineConfig(vivliostyleConfig, inlineConfig);
|
|
19
|
-
const config = resolveTaskConfig(tasks[0], inlineOptions);
|
|
20
|
-
Logger.debug('config %O', config);
|
|
21
|
-
return [
|
|
22
|
-
vsDevServerPlugin({ config, inlineConfig }),
|
|
23
|
-
vsViewerPlugin({ config, inlineConfig }),
|
|
24
|
-
vsBrowserPlugin({ config, inlineConfig }),
|
|
25
|
-
vsStaticServePlugin({ config, inlineConfig }),
|
|
26
|
-
];
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=vite-adapter.js.map
|
|
1
|
+
import {
|
|
2
|
+
createVitePlugin
|
|
3
|
+
} from "./chunk-Y3ETBU5J.js";
|
|
4
|
+
import "./chunk-VBEHGS67.js";
|
|
5
|
+
import "./chunk-EX7EA34F.js";
|
|
6
|
+
import "./chunk-WX6JHPSL.js";
|
|
7
|
+
import "./chunk-DMARNPN5.js";
|
|
8
|
+
import "./chunk-BIEQXUOY.js";
|
|
9
|
+
export {
|
|
10
|
+
createVitePlugin
|
|
11
|
+
};
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vivliostyle/cli",
|
|
3
3
|
"description": "Save the pdf file via headless browser and Vivliostyle.",
|
|
4
|
-
"version": "9.0.0-next.
|
|
4
|
+
"version": "9.0.0-next.4",
|
|
5
5
|
"author": "spring_raining <harusamex.com@gmail.com>",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"scripts": {
|
|
8
|
-
"build": "
|
|
9
|
-
"build:cli": "
|
|
10
|
-
"build:docs": "
|
|
8
|
+
"build": "run-s build:*",
|
|
9
|
+
"build:cli": "tsup && shx chmod +x dist/cli.js",
|
|
10
|
+
"build:docs": "tsx scripts/update-docs.ts",
|
|
11
11
|
"generate:schema": "json2ts -i schemas/pub-manifest/publication.schema.json -o src/schema/publication.schema.ts --cwd schemas/pub-manifest",
|
|
12
12
|
"clean": "shx rm -rf dist tmp",
|
|
13
|
-
"dev": "
|
|
13
|
+
"dev": "tsup --watch src",
|
|
14
14
|
"example": "yarn --cwd example build",
|
|
15
15
|
"pretest": "playwright-core install chromium --no-shell",
|
|
16
16
|
"release": "release-it",
|
|
@@ -18,11 +18,14 @@
|
|
|
18
18
|
"test": "vitest run --coverage",
|
|
19
19
|
"prepare": "husky"
|
|
20
20
|
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"vite": ">=6"
|
|
23
|
+
},
|
|
21
24
|
"dependencies": {
|
|
22
25
|
"@babel/code-frame": "^7.24.7",
|
|
23
26
|
"@humanwhocodes/momoa": "^3.2.1",
|
|
24
27
|
"@napi-rs/canvas": "0.1.41",
|
|
25
|
-
"@npmcli/arborist": "^
|
|
28
|
+
"@npmcli/arborist": "^7.5.4",
|
|
26
29
|
"@vivliostyle/jsdom": "25.0.1-vivliostyle-cli.1",
|
|
27
30
|
"@vivliostyle/vfm": "2.2.1",
|
|
28
31
|
"@vivliostyle/viewer": "2.30.7",
|
|
@@ -44,7 +47,9 @@
|
|
|
44
47
|
"hastscript": "^9.0.0",
|
|
45
48
|
"mime-types": "^2.1.32",
|
|
46
49
|
"node-stream-zip": "^1.14.0",
|
|
50
|
+
"npm-package-arg": "^11.0.2",
|
|
47
51
|
"pdf-lib": "^1.16.0",
|
|
52
|
+
"picomatch": "^4.0.2",
|
|
48
53
|
"playwright-core": "1.49.0",
|
|
49
54
|
"press-ready": "^4.0.3",
|
|
50
55
|
"prettier": "^3.3.3",
|
|
@@ -57,7 +62,6 @@
|
|
|
57
62
|
"uuid": "^8.3.2",
|
|
58
63
|
"valibot": "^0.42.1",
|
|
59
64
|
"vfile": "^4.2.1",
|
|
60
|
-
"vite": "6.0.3",
|
|
61
65
|
"w3c-xmlserializer": "^4.0.0",
|
|
62
66
|
"whatwg-mimetype": "^3.0.0",
|
|
63
67
|
"yocto-spinner": "^0.1.2",
|
|
@@ -76,15 +80,15 @@
|
|
|
76
80
|
"@types/jsdom": "^21.1.1",
|
|
77
81
|
"@types/mime-types": "^2.1.1",
|
|
78
82
|
"@types/node": "^22.5.4",
|
|
79
|
-
"@types/npm-package-arg": "^6.1.
|
|
80
|
-
"@types/npmcli__arborist": "^
|
|
83
|
+
"@types/npm-package-arg": "^6.1.4",
|
|
84
|
+
"@types/npmcli__arborist": "^6.3.0",
|
|
81
85
|
"@types/picomatch": "^3.0.1",
|
|
82
86
|
"@types/supertest": "^6.0.2",
|
|
83
87
|
"@types/tmp": "^0.2.1",
|
|
84
88
|
"@types/uuid": "^8.3.1",
|
|
85
89
|
"@types/w3c-xmlserializer": "^2.0.2",
|
|
86
90
|
"@types/whatwg-mimetype": "^3.0.0",
|
|
87
|
-
"@vitest/coverage-v8": "^2.
|
|
91
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
88
92
|
"adm-zip": "^0.5.10",
|
|
89
93
|
"file-type": "^16.5.3",
|
|
90
94
|
"husky": "^9.1.6",
|
|
@@ -95,11 +99,13 @@
|
|
|
95
99
|
"release-it": "^15.6.0",
|
|
96
100
|
"shx": "^0.3.3",
|
|
97
101
|
"supertest": "^7.0.0",
|
|
98
|
-
"
|
|
102
|
+
"tsup": "^8.3.6",
|
|
103
|
+
"tsx": "^4.19.2",
|
|
99
104
|
"typedoc": "^0.26.7",
|
|
100
105
|
"typedoc-plugin-markdown": "^4.2.9",
|
|
101
106
|
"typescript": "^5.5.4",
|
|
102
|
-
"
|
|
107
|
+
"vite": "6.0.3",
|
|
108
|
+
"vitest": "^2.1.8"
|
|
103
109
|
},
|
|
104
110
|
"main": "dist/index.js",
|
|
105
111
|
"module": "dist/index.js",
|
|
@@ -109,8 +115,22 @@
|
|
|
109
115
|
"types": "./dist/index.d.ts",
|
|
110
116
|
"import": "./dist/index.js"
|
|
111
117
|
},
|
|
112
|
-
"./
|
|
113
|
-
|
|
118
|
+
"./cli": {
|
|
119
|
+
"types": "./dist/cli.d.ts",
|
|
120
|
+
"import": "./dist/cli.js"
|
|
121
|
+
},
|
|
122
|
+
"./node-modules": {
|
|
123
|
+
"types": "./dist/node-modules.d.ts",
|
|
124
|
+
"import": "./dist/node-modules.js"
|
|
125
|
+
},
|
|
126
|
+
"./schema": {
|
|
127
|
+
"types": "./dist/config/schema.d.ts",
|
|
128
|
+
"import": "./dist/config/schema.js"
|
|
129
|
+
},
|
|
130
|
+
"./vite-adapter": {
|
|
131
|
+
"types": "./dist/vite-adapter.d.ts",
|
|
132
|
+
"import": "./dist/vite-adapter.js"
|
|
133
|
+
},
|
|
114
134
|
"./package.json": "./package.json"
|
|
115
135
|
},
|
|
116
136
|
"bin": {
|
|
@@ -119,7 +139,6 @@
|
|
|
119
139
|
},
|
|
120
140
|
"files": [
|
|
121
141
|
"dist",
|
|
122
|
-
"schemas",
|
|
123
142
|
"types"
|
|
124
143
|
],
|
|
125
144
|
"publishConfig": {
|
package/dist/browser.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as playwright from 'playwright-core';
|
|
2
|
-
import { ResolvedTaskConfig } from './config/resolve.js';
|
|
3
|
-
import type { BrowserType } from './config/schema.js';
|
|
4
|
-
export declare function getExecutableBrowserPath(browserType: BrowserType): string;
|
|
5
|
-
export declare function getFullBrowserName(browserType: BrowserType): string;
|
|
6
|
-
export declare function checkBrowserAvailability(path: string): boolean;
|
|
7
|
-
export declare function isPlaywrightExecutable(path: string): boolean;
|
|
8
|
-
export declare function downloadBrowser(browserType: BrowserType): Promise<string>;
|
|
9
|
-
export declare function launchPreview({ mode, url, onBrowserOpen, onPageOpen, config: { browserType, proxy, executableBrowser, sandbox, ignoreHttpsErrors }, }: {
|
|
10
|
-
mode: 'preview' | 'build';
|
|
11
|
-
url: string;
|
|
12
|
-
onBrowserOpen?: (browser: playwright.Browser) => void | Promise<void>;
|
|
13
|
-
onPageOpen?: (page: playwright.Page) => void | Promise<void>;
|
|
14
|
-
config: Pick<ResolvedTaskConfig, 'browserType' | 'proxy' | 'executableBrowser' | 'sandbox' | 'ignoreHttpsErrors'>;
|
|
15
|
-
}): Promise<{
|
|
16
|
-
browser: playwright.Browser;
|
|
17
|
-
page: playwright.Page;
|
|
18
|
-
}>;
|
|
19
|
-
//# sourceMappingURL=browser.d.ts.map
|
package/dist/browser.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC;AAE9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AA0DtD,wBAAgB,wBAAwB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAEzE;AAED,wBAAgB,kBAAkB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAMnE;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE9D;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAI5D;AAED,wBAAsB,eAAe,CACnC,WAAW,EAAE,WAAW,GACvB,OAAO,CAAC,MAAM,CAAC,CASjB;AAED,wBAAsB,aAAa,CAAC,EAClC,IAAI,EACJ,GAAG,EACH,aAAa,EACb,UAAU,EACV,MAAM,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,iBAAiB,EAAE,OAAO,EAAE,iBAAiB,EAAE,GAC9E,EAAE;IACD,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC;IAC1B,GAAG,EAAE,MAAM,CAAC;IACZ,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,CAAC,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,MAAM,EAAE,IAAI,CACV,kBAAkB,EAChB,aAAa,GACb,OAAO,GACP,mBAAmB,GACnB,SAAS,GACT,mBAAmB,CACtB,CAAC;CACH;;;GA4CA"}
|
package/dist/browser.js
DELETED
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
var __addDisposableResource = (this && this.__addDisposableResource) || function (env, value, async) {
|
|
2
|
-
if (value !== null && value !== void 0) {
|
|
3
|
-
if (typeof value !== "object" && typeof value !== "function") throw new TypeError("Object expected.");
|
|
4
|
-
var dispose, inner;
|
|
5
|
-
if (async) {
|
|
6
|
-
if (!Symbol.asyncDispose) throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
7
|
-
dispose = value[Symbol.asyncDispose];
|
|
8
|
-
}
|
|
9
|
-
if (dispose === void 0) {
|
|
10
|
-
if (!Symbol.dispose) throw new TypeError("Symbol.dispose is not defined.");
|
|
11
|
-
dispose = value[Symbol.dispose];
|
|
12
|
-
if (async) inner = dispose;
|
|
13
|
-
}
|
|
14
|
-
if (typeof dispose !== "function") throw new TypeError("Object not disposable.");
|
|
15
|
-
if (inner) dispose = function() { try { inner.call(this); } catch (e) { return Promise.reject(e); } };
|
|
16
|
-
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
17
|
-
}
|
|
18
|
-
else if (async) {
|
|
19
|
-
env.stack.push({ async: true });
|
|
20
|
-
}
|
|
21
|
-
return value;
|
|
22
|
-
};
|
|
23
|
-
var __disposeResources = (this && this.__disposeResources) || (function (SuppressedError) {
|
|
24
|
-
return function (env) {
|
|
25
|
-
function fail(e) {
|
|
26
|
-
env.error = env.hasError ? new SuppressedError(e, env.error, "An error was suppressed during disposal.") : e;
|
|
27
|
-
env.hasError = true;
|
|
28
|
-
}
|
|
29
|
-
function next() {
|
|
30
|
-
while (env.stack.length) {
|
|
31
|
-
var rec = env.stack.pop();
|
|
32
|
-
try {
|
|
33
|
-
var result = rec.dispose && rec.dispose.call(rec.value);
|
|
34
|
-
if (rec.async) return Promise.resolve(result).then(next, function(e) { fail(e); return next(); });
|
|
35
|
-
}
|
|
36
|
-
catch (e) {
|
|
37
|
-
fail(e);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
if (env.hasError) throw env.error;
|
|
41
|
-
}
|
|
42
|
-
return next();
|
|
43
|
-
};
|
|
44
|
-
})(typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
|
|
45
|
-
var e = new Error(message);
|
|
46
|
-
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
47
|
-
});
|
|
48
|
-
import fs from 'node:fs';
|
|
49
|
-
import * as playwright from 'playwright-core';
|
|
50
|
-
import { registry } from 'playwright-core/lib/server';
|
|
51
|
-
import { Logger } from './logger.js';
|
|
52
|
-
import { beforeExitHandlers, isInContainer, pathEquals } from './util.js';
|
|
53
|
-
async function launchBrowser({ browserType, proxy, executablePath, headless, noSandbox, disableWebSecurity, disableDevShmUsage, }) {
|
|
54
|
-
const options = browserType === 'chromium'
|
|
55
|
-
? {
|
|
56
|
-
executablePath,
|
|
57
|
-
chromiumSandbox: !noSandbox,
|
|
58
|
-
headless,
|
|
59
|
-
args: [
|
|
60
|
-
'--allow-file-access-from-files',
|
|
61
|
-
disableWebSecurity && '--disable-web-security',
|
|
62
|
-
disableDevShmUsage && '--disable-dev-shm-usage',
|
|
63
|
-
// #357: Set devicePixelRatio=1 otherwise it causes layout issues in HiDPI displays
|
|
64
|
-
headless && '--force-device-scale-factor=1',
|
|
65
|
-
// set Chromium language to English to avoid locale-dependent issues (e.g. minimum font size)
|
|
66
|
-
'--lang=en',
|
|
67
|
-
// ...(!headless && process.platform === 'darwin'
|
|
68
|
-
// ? ['-AppleLanguages', '(en)']
|
|
69
|
-
// : []),
|
|
70
|
-
].filter((value) => Boolean(value)),
|
|
71
|
-
env: { ...process.env, LANG: 'en.UTF-8' },
|
|
72
|
-
proxy: proxy,
|
|
73
|
-
}
|
|
74
|
-
: // TODO: Investigate appropriate settings on Firefox & Webkit
|
|
75
|
-
{ executablePath, headless };
|
|
76
|
-
const browser = await playwright[browserType].launch(options);
|
|
77
|
-
beforeExitHandlers.push(() => {
|
|
78
|
-
browser.close();
|
|
79
|
-
});
|
|
80
|
-
return browser;
|
|
81
|
-
}
|
|
82
|
-
export function getExecutableBrowserPath(browserType) {
|
|
83
|
-
return playwright[browserType].executablePath();
|
|
84
|
-
}
|
|
85
|
-
export function getFullBrowserName(browserType) {
|
|
86
|
-
return {
|
|
87
|
-
chromium: 'Chromium',
|
|
88
|
-
firefox: 'Firefox',
|
|
89
|
-
webkit: 'Webkit',
|
|
90
|
-
}[browserType];
|
|
91
|
-
}
|
|
92
|
-
export function checkBrowserAvailability(path) {
|
|
93
|
-
return fs.existsSync(path);
|
|
94
|
-
}
|
|
95
|
-
export function isPlaywrightExecutable(path) {
|
|
96
|
-
return [playwright.chromium, playwright.firefox, playwright.webkit].some((exe) => pathEquals(exe.executablePath() ?? '', path));
|
|
97
|
-
}
|
|
98
|
-
export async function downloadBrowser(browserType) {
|
|
99
|
-
const executable = registry.findExecutable(browserType);
|
|
100
|
-
{
|
|
101
|
-
const env_1 = { stack: [], error: void 0, hasError: false };
|
|
102
|
-
try {
|
|
103
|
-
const _ = __addDisposableResource(env_1, Logger.suspendLogging('Rendering browser is not installed yet. Downloading now.'), false);
|
|
104
|
-
await registry.install([executable], false);
|
|
105
|
-
}
|
|
106
|
-
catch (e_1) {
|
|
107
|
-
env_1.error = e_1;
|
|
108
|
-
env_1.hasError = true;
|
|
109
|
-
}
|
|
110
|
-
finally {
|
|
111
|
-
__disposeResources(env_1);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
return executable.executablePath();
|
|
115
|
-
}
|
|
116
|
-
export async function launchPreview({ mode, url, onBrowserOpen, onPageOpen, config: { browserType, proxy, executableBrowser, sandbox, ignoreHttpsErrors }, }) {
|
|
117
|
-
Logger.debug(`Executing browser path: ${executableBrowser}`);
|
|
118
|
-
if (!checkBrowserAvailability(executableBrowser)) {
|
|
119
|
-
if (isPlaywrightExecutable(executableBrowser)) {
|
|
120
|
-
// The browser isn't downloaded first time starting CLI so try to download it
|
|
121
|
-
await downloadBrowser(browserType);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
// executableBrowser seems to be specified explicitly
|
|
125
|
-
throw new Error(`Cannot find the browser. Please check the executable browser path: ${executableBrowser}`);
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
const browser = await launchBrowser({
|
|
129
|
-
browserType,
|
|
130
|
-
proxy,
|
|
131
|
-
executablePath: executableBrowser,
|
|
132
|
-
headless: mode === 'build',
|
|
133
|
-
noSandbox: !sandbox,
|
|
134
|
-
disableDevShmUsage: isInContainer(),
|
|
135
|
-
});
|
|
136
|
-
await onBrowserOpen?.(browser);
|
|
137
|
-
const page = await browser.newPage({
|
|
138
|
-
viewport: mode === 'build'
|
|
139
|
-
? // This viewport size important to detect headless environment in Vivliostyle viewer
|
|
140
|
-
// https://github.com/vivliostyle/vivliostyle.js/blob/73bcf323adcad80126b0175630609451ccd09d8a/packages/core/src/vivliostyle/vgen.ts#L2489-L2500
|
|
141
|
-
{
|
|
142
|
-
width: 800,
|
|
143
|
-
height: 600,
|
|
144
|
-
}
|
|
145
|
-
: null,
|
|
146
|
-
ignoreHTTPSErrors: ignoreHttpsErrors,
|
|
147
|
-
});
|
|
148
|
-
await onPageOpen?.(page);
|
|
149
|
-
// Prevent confirm dialog from being auto-dismissed
|
|
150
|
-
page.on('dialog', () => { });
|
|
151
|
-
await page.goto(url);
|
|
152
|
-
return { browser, page };
|
|
153
|
-
}
|
|
154
|
-
//# sourceMappingURL=browser.js.map
|
package/dist/browser.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":";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],"names":[],"mappings":""}
|
package/dist/cli.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAErD,MAAM,OAAO,GAAG,QAAQ,UAAU;QAC1B,WAAW,EAAE,CAAC;AAEtB,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAC9B,OAAO;KACJ,IAAI,CAAC,aAAa,CAAC;KACnB,OAAO,CAAC,OAAO,EAAE,eAAe,CAAC;KACjC,OAAO,CAAC,MAAM,EAAE,2BAA2B,EAAE;IAC5C,cAAc,EAAE,eAAe;CAChC,CAAC;KACD,OAAO,CAAC,OAAO,EAAE,2BAA2B,EAAE;IAC7C,cAAc,EAAE,gBAAgB;CACjC,CAAC;KACD,OAAO,CAAC,SAAS,EAAE,uBAAuB,EAAE;IAC3C,cAAc,EAAE,kBAAkB;CACnC,CAAC;KACD,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAE1D,IAAI,CAAC;IACH,IAAI,YAAY,GAAG,wBAAwB,CACzC,OAAO,CAAC,IAAI,EACZ,uBAAuB,CACxB,CAAC;IACF,IAAI,aAAa,EAAE,EAAE,CAAC;QACpB,YAAY,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,wBAAyB,CAAC,CAAC;QACjE,MAAM,CAAC,KAAK,CAAC,6BAA6B,EAAE,YAAY,CAAC,CAAC;IAC5D,CAAC;IACD,MAAM,KAAK,CAAC,YAAY,CAAC,CAAC;AAC5B,CAAC;AAAC,OAAO,GAAG,EAAE,CAAC;IACb,IAAI,GAAG,YAAY,KAAK,EAAE,CAAC;QACzB,aAAa,CAAC,GAAG,CAAC,CAAC;IACrB,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.parser.d.ts","sourceRoot":"","sources":["../../src/commands/build.parser.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAU,MAAM,WAAW,CAAC;AAE5C,wBAAgB,uBAAuB,IAAI,OAAO,CAoMjD"}
|