@microlight/core 0.11.0 → 0.11.1

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.
@@ -26,9 +26,34 @@ export async function prepareServer() {
26
26
  });
27
27
  }
28
28
 
29
- // Copy files
29
+ // Copy server JS files
30
30
  copySync(serverSrcDir, serverDestDir, {
31
31
  overwrite: true
32
32
  });
33
+
34
+ // Copy static assets from src/app (globals.css, favicon.ico)
35
+ const staticAssets = ["globals.css", "favicon.ico"];
36
+ const srcAppDir = path.join(coreRoot, "src", "app");
37
+ const destAppDir = path.join(serverDestDir, "app");
38
+ for (const asset of staticAssets) {
39
+ const srcPath = path.join(srcAppDir, asset);
40
+ const destPath = path.join(destAppDir, asset);
41
+ if (fs.existsSync(srcPath)) {
42
+ copySync(srcPath, destPath, {
43
+ overwrite: true
44
+ });
45
+ console.log(`Copied ${asset}`);
46
+ }
47
+ }
48
+
49
+ // Copy public folder assets
50
+ const publicSrcDir = path.join(coreRoot, "public");
51
+ const publicDestDir = path.join(processDir, ".microlight", "server", "public");
52
+ if (fs.existsSync(publicSrcDir)) {
53
+ copySync(publicSrcDir, publicDestDir, {
54
+ overwrite: true
55
+ });
56
+ console.log("Public assets copied successfully!");
57
+ }
33
58
  console.log("Server files copied successfully!");
34
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microlight/core",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "scripts": {