Closed wandyezj closed 3 months ago
Are these changes driven from ScriptLab code changes? Is there a PR there for the usage of this.
There's no description in this PR about the changes -- what they are, or why the changes are being made.
Are these changes driven from ScriptLab code changes? Is there a PR there for the usage of this.
There's no description in this PR about the changes -- what they are, or why the changes are being made.
See PR description:
Refactor custom-function-metadata to separate parseTree from generateCustomFunctionMetadata.
This allows parseTree to be used in the browser without having to polyfill fs.
break generate.ts into two files: parseTree.ts and generateCustomFunctionMetadata.ts.
I'd prefer to keep gnerate.ts more as it was. Would like to understand if there is some plication about parseTree functionality and integration with ScriptLab which is being made here.
It is challenging to make this work.
generate.ts
. Yes, referencing files directly instead of using the index is generally considered a bad practice. However, it's convenient to avoid breaking existing usage.This devolves to the existing refactor of separate files for parseTree and generateCustomFunctionMetadata and then exporting these as done previously from generate.ts to avoid breakage.
It's also worth looking at root causes about why we are importing from generate.ts directly instead of the index file. The root cause here is it's really confusing what is exported from this package since the exports are not clear from the index. I fix that here as well to encourage proper importing.
Appears to have been abandoned.
Change Description
Refactor custom-function-metadata to separate
parseTree
fromgenerateCustomFunctionMetadata
. This allowsparseTree
to be used in the browser without having to polyfillfs
.break generate.ts into two files:
parseTree.ts
andgenerateCustomFunctionMetadata.ts
.update main.ts exports to specify exact types that are exported.
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
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: