The stubs
directory stores all the stubs needed by your package. It could be config files you will publish during the initial setup or stubs you want to use within the scaffolding commands.
- Inside the
package.json
file, we have defined acopy:templates
script that copies thestubs
folder to thebuild
folder. - Ensure the
build/stubs
are always published to npm via thefiles
array inside thepackage.json
file.