@onexapis/cli 1.1.40 → 1.1.43

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/dist/index.js CHANGED
@@ -783,6 +783,14 @@ async function compileStandaloneTheme(themePath, themeName) {
783
783
  } catch {
784
784
  }
785
785
  await contentHashEntry(outputDir);
786
+ const themeAssetsDir = path8__default.default.join(themePath, "assets");
787
+ const distThemeAssets = path8__default.default.join(outputDir, "theme-assets");
788
+ try {
789
+ await fs7__default.default.access(themeAssetsDir);
790
+ await fs7__default.default.cp(themeAssetsDir, distThemeAssets, { recursive: true });
791
+ exports.logger.info("Copied static assets to dist/theme-assets/");
792
+ } catch {
793
+ }
786
794
  await generateManifest(themeName, themePath, outputDir);
787
795
  await generateThemeData(themePath, outputDir, themeName);
788
796
  await generateThemeCSS(themePath, outputDir);