UNPKG

@stencila/jesta

Version:

Stencila plugin for executable documents using JavaScript

14 lines (13 loc) 517 B
import { Node } from '@stencila/schema'; import { Jesta } from '.'; /** * Build a document * * This implementation walks the document and collects NPM package names * from the `imports` property of Javascript `CodeChunk` nodes. It then * calls `npm install` with the names of the packages missing from `package.json`. * If there is no `package.json` file then will create one. * * @param entity The document to build. */ export declare function build(this: Jesta, node: Node, force: boolean): Promise<Node>;