npm run docs fails
npm run docs fails
Steps to reproduce the bug
in the directory with o3webapp execute:
docker run -ti -v $PWD:/o3webapp node:16.13-alpine /bin/sh
- inside container:
npm install
- then:
npm run docs
Resulting and expected behaviour
Results in:
# npm run docs
> example-code@0.1.0 docs
> jsdoc -c jsdoc.conf.json
Generating entry file for "components" plugin
Bundling components
running: NODE_ENV=development parcel build docs/entry.js --dist-dir docs/build
error: unknown option `--dist-dir'
/o3webapp/node_modules/better-docs/bundler.js:91
throw error
^
Error: Command failed: NODE_ENV=development parcel build docs/entry.js --dist-dir docs/build
error: unknown option `--dist-dir'
at checkExecSyncError (node:child_process:826:11)
at execSync (node:child_process:900:15)
at bundle (/o3webapp/node_modules/better-docs/bundler.js:86:5)
at Object.exports.publish (/o3webapp/node_modules/better-docs/publish.js:717:3)
at Object.module.exports.cli.generateDocs (/o3webapp/node_modules/jsdoc/cli.js:441:39)
at Object.module.exports.cli.processParseResults (/o3webapp/node_modules/jsdoc/cli.js:392:24)
at module.exports.cli.main (/o3webapp/node_modules/jsdoc/cli.js:235:18)
at Object.module.exports.cli.runCommand (/o3webapp/node_modules/jsdoc/cli.js:186:9)
at /o3webapp/node_modules/jsdoc/jsdoc.js:93:9
at Object.<anonymous> (/o3webapp/node_modules/jsdoc/jsdoc.js:94:3)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:17:47 {
status: 1,
signal: null,
output: [
null,
Buffer(0) [Uint8Array] [],
Buffer(35) [Uint8Array] [
101, 114, 114, 111, 114, 58, 32, 117,
110, 107, 110, 111, 119, 110, 32, 111,
112, 116, 105, 111, 110, 32, 96, 45,
45, 100, 105, 115, 116, 45, 100, 105,
114, 39, 10
]
],
pid: 391,
stdout: Buffer(0) [Uint8Array] [],
stderr: Buffer(35) [Uint8Array] [
101, 114, 114, 111, 114, 58, 32, 117,
110, 107, 110, 111, 119, 110, 32, 111,
112, 116, 105, 111, 110, 32, 96, 45,
45, 100, 105, 115, 116, 45, 100, 105,
114, 39, 10
]
}
Expected behaviour: docs are built