@antora/html-single-extension 1.0.0-beta.20 → 1.0.0-rc.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.
Files changed (2) hide show
  1. package/lib/converter.js +8 -4
  2. package/package.json +5 -5
package/lib/converter.js CHANGED
@@ -31,10 +31,14 @@ async function convert (file, convertAttributes, buildConfig, { logCommand, runC
31
31
  if (exts.length) extDslTypes.forEach((type) => (Opal.const_get_local(Extensions, type).$$iclasses.length = 0))
32
32
  }
33
33
  } else {
34
- const { command, cwd = process.cwd(), attributeOptionFlag = '-a', stderr = 'print' } = buildConfig
35
- logCommand?.(command, file, convertAttributes, attributeOptionFlag)
36
- const args = convertAttributes.toArgs(attributeOptionFlag, command).concat('-o', convertAttributes.outfile, '-')
37
- return runCommand(command, args, { parse: true, cwd, stdin: file.contents, stdout: 'print', stderr })
34
+ const { command, cwd = process.cwd(), attributeOptionFlag, outputOptionFlag, stderr = 'print' } = buildConfig
35
+ const extraArgs = convertAttributes.toArgs(attributeOptionFlag || '-a')
36
+ const stdout =
37
+ outputOptionFlag === false
38
+ ? 'buffer'
39
+ : extraArgs.push(outputOptionFlag || '-o', convertAttributes.outfile) && 'print'
40
+ logCommand?.(command, extraArgs, file, convertAttributes)
41
+ return runCommand(command, extraArgs.concat('-'), { parse: true, cwd, stdin: file.contents, stdout, stderr })
38
42
  }
39
43
  }
40
44
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antora/html-single-extension",
3
- "version": "1.0.0-beta.20",
3
+ "version": "1.0.0-rc.2",
4
4
  "description": "An Antora extension that uses Assembler to merge pages into assembly files, export them to standalone HTML documents, and publish them with the site.",
5
5
  "license": "MPL-2.0",
6
6
  "author": "OpenDevise Inc. (https://opendevise.com)",
@@ -19,8 +19,8 @@
19
19
  },
20
20
  "scripts": {
21
21
  "test": "node --test test/*-test.js",
22
- "prepublishOnly": "npx -y downdoc --prepublish",
23
- "postpublish": "npx -y downdoc --postpublish"
22
+ "prepublishOnly": "npx -y downdoc@latest --prepublish",
23
+ "postpublish": "npx -y downdoc@latest --postpublish"
24
24
  },
25
25
  "main": "lib/index.js",
26
26
  "exports": {
@@ -32,10 +32,10 @@
32
32
  "#package": "./package.json"
33
33
  },
34
34
  "dependencies": {
35
- "@antora/assembler": "1.0.0-beta.20"
35
+ "@antora/assembler": "1.0.0-rc.2"
36
36
  },
37
37
  "engines": {
38
- "node": ">=16.0.0"
38
+ "node": ">=20.0.0"
39
39
  },
40
40
  "files": [
41
41
  "lib/"