@antora/html-single-extension 1.0.0-rc.3 → 1.0.0-rc.5

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/lib/converter.js CHANGED
@@ -43,10 +43,11 @@ async function convert (file, convertAttributes, buildConfig, { logCommand, runC
43
43
  }
44
44
  }
45
45
 
46
- function getDefaultCommand (cwd) {
46
+ function getDefaultCommand (cwd, playbook) {
47
+ const defaultCommand = playbook?.runtime.stacktrace ? `${DEFAULT_COMMAND} --trace` : DEFAULT_COMMAND
47
48
  return fsp.access(ospath.join(cwd, 'Gemfile.lock')).then(
48
- () => `bundle exec ${DEFAULT_COMMAND}`,
49
- () => DEFAULT_COMMAND
49
+ () => `bundle exec ${defaultCommand}`,
50
+ () => defaultCommand
50
51
  )
51
52
  }
52
53
 
package/lib/index.js CHANGED
@@ -3,12 +3,5 @@
3
3
  const converter = require('./converter')
4
4
 
5
5
  module.exports.register = function ({ config }, providers) {
6
- requireAssembler(this).configure(this, converter, config, providers)
7
- }
8
-
9
- function requireAssembler (context, packageName = '@antora/assembler') {
10
- try {
11
- return context.require(packageName) // when installed with Antora
12
- } catch {}
13
- return require(packageName) // when installed separate from Antora, perhaps in project
6
+ this.require('@antora/assembler', { require }).configure(this, converter, config, providers)
14
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antora/html-single-extension",
3
- "version": "1.0.0-rc.3",
3
+ "version": "1.0.0-rc.5",
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)",
@@ -32,7 +32,7 @@
32
32
  "#package": "./package.json"
33
33
  },
34
34
  "dependencies": {
35
- "@antora/assembler": "1.0.0-rc.3"
35
+ "@antora/assembler": "1.0.0-rc.5"
36
36
  },
37
37
  "engines": {
38
38
  "node": ">=20.0.0"