vlocode-project - v1.40.0-beta-4
    Preparing search index...

    Represents a Datapack Expander that expand an exported datapack into a list of files that can be written to the file system or a zip archive. The expander can be used to expand a single datapack or a list of datapacks.

    const expander = container.create(DatapackExpander);
    const result = expander.expandDatapack(datapack);

    for (const [fileName, fileData] of Object.entries(result.files)) {
    await fs.writeFile(fileName, fileData);
    }
    Index

    Constructors

    Properties

    datapackStandardFields: string[] = ...

    Configuration for the Datapack Exporter instance.

    fieldTypeExtension: { array: string; binary: string; json: string } = ...
    logger: Logger
    datapackFileName: string = 'DataPack.json'

    Methods