I’m writing a package that includes several relatively independent parts. Users can create a json file in the app to selectively enable or disable certain parts. This is quite similar to nemo64:meteor-bootstrap. Actually I’m using this package as a template.
However, I don’t want to put the the processed files to the application. Instead, I would like to put those files in the package directory. I use Package.registerBuildPlugin and Plugin.registerSourceHandler to create the files. Basically it needs to read some file from the package and write some file to the package.
My question is: how to get the package path during build, so that the files can be read and written during the application build process.