mirror of
https://github.com/marcogll/passkit-generator.git
synced 2026-03-16 02:25:32 +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> {
|
export async function getModelFolderContents(model: string): Promise<PartitionedBundle> {
|
||||||
try {
|
try {
|
||||||
const modelPath = model + (!path.extname(model) && ".pass");
|
const modelPath = `${model}${!path.extname(model) && ".pass" || ""}`;
|
||||||
const modelFilesList = await readDir(modelPath);
|
const modelFilesList = await readDir(modelPath);
|
||||||
|
|
||||||
// No dot-starting files, manifest and signature
|
// No dot-starting files, manifest and signature
|
||||||
|
|||||||
Reference in New Issue
Block a user