Skip to content

Add JSON output to plugin-js #346

@gynekolog

Description

@gynekolog

The doc says:

pluginJS({
      output: {
        js: "index.js",
        ts: "index.d.ts",
        json: false, // set to a filename to generate JSON
      },
    }),

but the current @terrazzo/plugin-js (0.1.0) expects different configuration:

 js({
      js: "index.js",
      // json: "tokens.json",
    }),

image

Is the doc or the plugin out of date?
I can create a pull request with edits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions