// Count how many packages have a non-empty setupScript letwithScript = 0; for (constpkgofpackages) { constsetupScript = pkg.setupScript; if (!Editor.isNull(setupScript) && setupScript.code.length > 0) { withScript++; } }
console.log(`NativePackageDescriptors: ${packages.length} total, ${withScript} with setupScript`);
Script executed during asset package setup.
Example