OfficeDev / Office-Addin-Scripts

A set of scripts and packages that are consumed in Office add-ins projects.
MIT License
152 stars 93 forks source link

custom-functions-metadata: move parseTree() to avoid fs import #839

Closed akrantz closed 4 months ago

akrantz commented 4 months ago

Move parseTree() to ./src/parseTree.ts keeping generateCustomFunctionMetadata() in generate.ts.

This is to ensure ScriptLab can import parseTree() without having to import fs package, because there's no longer a polyfill from react-scripts.

  1. Do these changes impact command syntax of any of the packages? (e.g., add/remove command, add/remove a command parameter, or update required parameters) No

  2. Do these changes impact documentation? (e.g., a tutorial on https://learn.microsoft.com/office/dev/add-ins/overview/office-add-ins) No

Validation/testing performed:

npm run test