pxt-core 13.2.14 → 13.2.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/built/cli.js CHANGED
@@ -2361,8 +2361,6 @@ async function buildTargetCoreAsync(options = {}) {
2361
2361
  await buildWebStringsAsync();
2362
2362
  if (!options.quick)
2363
2363
  await internalGenDocsAsync(false, true);
2364
- if (pxt.appTarget.cacheusedblocksdirs && !options.quick)
2365
- cfg.tutorialInfo = await internalCacheUsedBlocksAsync();
2366
2364
  await forEachBundledPkgAsync(async (pkg, dirname) => {
2367
2365
  var _a, _b, _c;
2368
2366
  pxt.log(`building bundled ${dirname}`);
@@ -2480,6 +2478,11 @@ async function buildTargetCoreAsync(options = {}) {
2480
2478
  .forEach(ip => config.icon = ip);
2481
2479
  res[pxt.CONFIG_NAME] = pxt.Package.stringifyConfig(config);
2482
2480
  });
2481
+ // reload the app target with the bundled packages before caching tutorial used blocks
2482
+ pxt.setAppTarget(cfg);
2483
+ pxt.reloadAppTargetVariant();
2484
+ if (pxt.appTarget.cacheusedblocksdirs && !options.quick)
2485
+ cfg.tutorialInfo = await internalCacheUsedBlocksAsync();
2483
2486
  // Trim redundant API info from packages
2484
2487
  const coreInfo = builtInfo[corepkg];
2485
2488
  if (coreInfo) {