mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-15 19:25:23 +00:00
Improved modelPath composition
This commit is contained in:
@@ -54,7 +54,7 @@ export async function getModelContents(model: FactoryOptions["model"]) {
|
||||
|
||||
export async function getModelFolderContents(model: string): Promise<PartitionedBundle> {
|
||||
try {
|
||||
const modelPath = model + (!path.extname(model) && ".pass");
|
||||
const modelPath = `${model}${!path.extname(model) && ".pass" || ""}`;
|
||||
const modelFilesList = await readDir(modelPath);
|
||||
|
||||
// No dot-starting files, manifest and signature
|
||||
|
||||
Reference in New Issue
Block a user