- Reactive variables, and new option to activate them in TemplateVariable props. Option is named
reactive
and determines if variable should react to changes in parent scopes. Default:false
CWD
overriding from cli- default value for
CWD
will be now extracted from optiondefaultOutputDirectoryPath
in Template. It happens in CliRenderer class after template selection in UI
- Builtin
CWD
variable is now a reactive variable, which means it reacts to changes triggered in parent scopes, and creates its value based on value taken from parent index
property in TemplateVariable is now placed inui
options object
- method
getInheritanceChainForVariable
fromITemplateVariable
interface andTemplateVariable
class as it was no longer needed
- fallback to empty arrays when merging templates
- support for
mjs
config file type - logger
- working defaultOutputDirectoryPath in Template props, now it is set as value for CWD variable in root scope
- option
-t (typescript) boolean
onpli init
command changed to-t (type) string
, now you can pass config file type as one ofjs
,ts
ormjs
. Default:ts
- adjusted default config files for
js
andts
types
- fixed bug in collectAllBranchVariables that caused it to overwrite parent variables with child variables
- support for ts config files - before it didn't work because of wrong tsc cwd
- template for raw js files - now it uses
exports.default
instead ofexport default