neo4j-contrib / graphgist-portal-v3

GraphGist Portal v3 (JavaScript)
Apache License 2.0
5 stars 4 forks source link

Replace asciidoctor dependency by @asciidoctor/core #50

Open ggrossetie opened 3 years ago

ggrossetie commented 3 years ago

The asciidoctor package is a meta-package that contains both @asciidoctor/core and @asciidoctor/cli. Since we do not use the Asciidoctor.js Command-Line Interface, we should replace the dependency in the package.json file:

https://github.com/neo4j-contrib/graphgist-portal-v3/blob/20efc9c0d19455e7ebc231b98c936fabff8fd83b/api/package.json#L26

As a result, we should also update the require / import statements:

https://github.com/neo4j-contrib/graphgist-portal-v3/blob/20efc9c0d19455e7ebc231b98c936fabff8fd83b/api/src/graphgists/utils.js#L1

becomes:

import Asciidoctor from "@asciidoctor/core";