Open yasshi2525 opened 1 week ago
ありがとうございます。確認します。
feat(init): template.json の exclude をサポート
上記の修正時、gitからcloneした場合に削除していたのを finally
で削除するようにしたため、localTemplateDirectory
からfetchTemplate()
した際も削除されるようになったようです。
+ } finally {
+ if (templatePath && existsSync(templatePath)) {
+ await fs.rm(templatePath, { recursive: true });
+ }
}
ご参考まで
Windows環境で
%USERPROFILE%\.akashic-templates
ディレクトリを作成し、テンプレートに用いるファイルをlive-on-air-template
ディレクトリに配置した。 (live-on-air-template
は自分だけが利用したいテンプレート名)新規ディレクトリを作成し、そこで
akashic init -t live-on-air-template
を実行したところテンプレートファイルは意図した通り生成されたが、%USERPROFILE%\.akashic-templates\live-on-air-template
ディレクトリが削除されてしまいました。用意したテンプレートファイル群が
akashic init
しても削除されないよう修正をお願いしますakashic-cli のバージョン: 2.17.22 OS: Windows 11 terminal: PowerShell と git-bash で確認