This means that you'd need a specific entry for every YANG schema module used in your project and where to locate the module in the filesystem.
However, it would be far more convenient to simply specify the directories and packages you can search and the order in which the file extensions should be tried.
The new improvement will support following additional options inside package.json:
Currently, Yang.import only supports explicit module resolution via
package.json
as follows:This means that you'd need a specific entry for every YANG schema module used in your project and where to locate the module in the filesystem.
However, it would be far more convenient to simply specify the directories and packages you can search and the order in which the file extensions should be tried.
The new improvement will support following additional options inside
package.json
:Now, when you attempt to
Yang.import
a module by name, it will perform resolution in following order:package.json
package.json
exists, look for explicit resolution