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 +3 -3
- package/package.json +1 -1
- package/src/index.ts +3 -3
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 =
|
|
70
|
-
|
|
71
|
-
|
|
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
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
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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(),
|