Repository navigation
Templates & Features Packaging - Throw warning of a missing JSON file and continue - #206
Conversation
|
I feel like we shouldn't need a flag for this, but rather just (1) not allow empty directories or (2) always allow empty directories and automatically ignore. Perhaps there is an example you have where this indeed the best way to do it? |
Or: Warn about empty directories, but still continue. That would make the user aware of a missing JSON file, but still support the case where this is expected. |
This makes sense. I'll update the PR. |
templates publish cmd - adds --allow-dir-without-template option
When packaging a collection of templates with
templates publishorfeature publishcmd , it errors out when a sub-folder does not contain files meant for templates publishing (eg.devcontainer-*.json).This PR warns about empty directories, but still continue. That would make the user aware of a missing JSON file, but still support the case where this is expected.