@funtools/create-react-native-app 1.0.2 → 1.1.0

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/index.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  import { fileURLToPath } from "url";
4
4
  import path from "path";
@@ -22,6 +22,7 @@ try {
22
22
  installDependencies();
23
23
 
24
24
  console.log("✅ App setup complete");
25
+ process.exit(0);
25
26
  } catch (e) {
26
27
  console.error("❌ Failed to create app");
27
28
  console.error(error);
@@ -64,6 +65,8 @@ function initApp() {
64
65
  function initTemplates() {
65
66
  console.log("Initializing templates...");
66
67
 
68
+ fs.unlinkSync(`${process.cwd()}/App.tsx`);
69
+
67
70
  fs.cpSync(path.join(__dirname, `templates/base`), process.cwd(), {
68
71
  recursive: true,
69
72
  focus: true,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@funtools/create-react-native-app",
3
3
  "description": "Create a React Native app with preconfigured setup",
4
- "version": "1.0.2",
4
+ "version": "1.1.0",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "create-react-native-app": "index.js"
@@ -1,22 +1,17 @@
1
1
  {
2
2
  "extends": "@react-native/typescript-config",
3
3
  "compilerOptions": {
4
- "types": [
5
- "jest"
6
- ],
4
+ "jsx": "react-native",
5
+ "types": ["jest"],
7
6
  "paths": {
8
- "@/*": [
9
- "./src/*"
10
- ]
7
+ "@/*": ["./src/*"]
11
8
  }
12
9
  },
13
10
  "include": [
14
11
  "**/*.ts",
15
12
  "**/*.tsx",
16
- "nativewind-env.d.ts"
17
- , "react-native.config.js" ],
18
- "exclude": [
19
- "**/node_modules",
20
- "**/Pods"
21
- ]
22
- }
13
+ "nativewind-env.d.ts",
14
+ "react-native.config.js"
15
+ ],
16
+ "exclude": ["**/node_modules", "**/Pods"]
17
+ }