react-apps-ui 1.0.2 → 1.0.3

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
@@ -66,9 +66,9 @@ program
66
66
  const safeTarget = file.target || file.name;
67
67
  let finalTargetPath = path_1.default.join(process.cwd(), safeTarget);
68
68
  // SMART ROUTING: If they use 'src/' and it's not a root config file, put it inside src/
69
- const isRootConfig = file.target.includes("tailwind") ||
70
- file.target.endsWith(".config.js") ||
71
- file.target.endsWith(".json");
69
+ const isRootConfig = safeTarget.includes("tailwind") ||
70
+ safeTarget.endsWith(".config.js") ||
71
+ safeTarget.endsWith(".json");
72
72
  if (hasSrcDir && !isRootConfig) {
73
73
  finalTargetPath = path_1.default.join(process.cwd(), "src", safeTarget);
74
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-apps-ui",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "The React Native UI CLI",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
package/src/index.ts CHANGED
@@ -82,9 +82,9 @@ program
82
82
 
83
83
  // SMART ROUTING: If they use 'src/' and it's not a root config file, put it inside src/
84
84
  const isRootConfig =
85
- file.target.includes("tailwind") ||
86
- file.target.endsWith(".config.js") ||
87
- file.target.endsWith(".json");
85
+ safeTarget.includes("tailwind") ||
86
+ safeTarget.endsWith(".config.js") ||
87
+ safeTarget.endsWith(".json");
88
88
  if (hasSrcDir && !isRootConfig) {
89
89
  finalTargetPath = path.join(
90
90
  process.cwd(),