Skip to content

Commit

Permalink
Fix: do not attempt to parse assets manifest as content (fixes #44) (#45
Browse files Browse the repository at this point in the history
)
  • Loading branch information
taylortom authored Jun 19, 2024
2 parents 082171e + d394918 commit c9d6222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/AdaptFrameworkImport.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class AdaptFrameworkImport {
this.usedContentPlugins[pluginName] = { name, path: p, version, targetAttribute }
}))

const files = await glob(`${this.coursePath}/**/*.json`, { absolute: true })
const files = await glob(`${this.coursePath}/**/*.json`, { absolute: true, ignore: ['**/assets.json'] })
return Promise.all(files.map(f => this.loadContentFile(f)))
}

Expand Down

0 comments on commit c9d6222

Please sign in to comment.