@funtools/create-react-native-app 1.1.0 → 1.1.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.
Files changed (2) hide show
  1. package/index.js +2 -4
  2. package/package.json +1 -1
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";
@@ -42,8 +42,6 @@ async function getAppName() {
42
42
  },
43
43
  });
44
44
 
45
- if (!response.appName) throw Error("❌ App creation cancelled");
46
-
47
45
  appName = response.appName;
48
46
  }
49
47
 
@@ -65,7 +63,7 @@ function initApp() {
65
63
  function initTemplates() {
66
64
  console.log("Initializing templates...");
67
65
 
68
- fs.unlinkSync(`${process.cwd()}/App.tsx`);
66
+ fs.unlinkSync(path.join(process.cwd(), 'App.tsx'));
69
67
 
70
68
  fs.cpSync(path.join(__dirname, `templates/base`), process.cwd(), {
71
69
  recursive: 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.1.0",
4
+ "version": "1.1.1",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "create-react-native-app": "index.js"