octant
octant copied to clipboard
Generate an import shortcut for TypeScript components
trafficstars
Describe the problem/challenge you have Currently when using the TypeScript components generated from the Octant source, each component must be imported from its full file path.
Describe the solution you'd like
Create an import shortcut for the components that get output, components.d.ts when generating the TypeScript files.
Example contents
export { PodStatusConfig } from "./components/pod-status";
...
Anything else you would like to add: [Miscellaneous information that will assist in solving the issue.]
Environment:
- Octant version (use
octant version): - Kubernetes version (use
kubectl version): - OS (macOS 10.15, Windows 10, Ubuntu 19.10 etc):
xref https://github.com/vmware-tanzu/plugin-library-for-octant/pull/29