react-native-electron-platform 0.0.18 → 0.0.19

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.
Files changed (2) hide show
  1. package/package.json +11 -2
  2. package/webpack.config.mjs +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-electron-platform",
3
- "version": "0.0.18",
3
+ "version": "0.0.19",
4
4
  "description": "A boilerplate and utilities for running React Native applications in Electron",
5
5
  "main": "index.mjs",
6
6
  "scripts": {
@@ -30,8 +30,17 @@
30
30
  },
31
31
  "devDependencies": {
32
32
  "webpack": "^5.0.0",
33
+ "webpack-cli": "^5.0.0",
34
+ "webpack-dev-server": "^4.0.0",
33
35
  "html-webpack-plugin": "^5.0.0",
34
- "webpack-cli": "^5.0.0"
36
+ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.0",
37
+ "@babel/core": "^7.0.0",
38
+ "@babel/preset-env": "^7.0.0",
39
+ "@babel/preset-react": "^7.0.0",
40
+ "@babel/preset-typescript": "^7.0.0",
41
+ "babel-loader": "^9.0.0",
42
+ "react-refresh": "^0.14.0",
43
+ "file-loader": "^6.0.0"
35
44
  },
36
45
  "peerDependencies": {
37
46
  "react-native": ">=0.60.0"
@@ -20,6 +20,12 @@ class CopyFontsPlugin {
20
20
  fs.mkdirSync(destDir, { recursive: true });
21
21
  }
22
22
 
23
+ // Add fallback check for missing source directory
24
+ if (!fs.existsSync(sourceDir)) {
25
+ console.warn(`[CopyFontsPlugin] Warning: Fonts directory not found at ${sourceDir}. Skipping font copy.`);
26
+ return;
27
+ }
28
+
23
29
  const files = fs.readdirSync(sourceDir);
24
30
  files.forEach(file => {
25
31
  const source = path.join(sourceDir, file);