hale-commenting-system 2.2.5 → 2.2.6
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/package.json +1 -1
- package/scripts/integrate.js +9 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hale-commenting-system",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.6",
|
|
4
4
|
"description": "An open source build scaffolding utility for web apps.",
|
|
5
5
|
"repository": "https://github.com/patternfly/patternfly-react-seed.git",
|
|
6
6
|
"homepage": "https://patternfly-react-seed.surge.sh",
|
package/scripts/integrate.js
CHANGED
|
@@ -141,6 +141,15 @@ async function prompt(questions) {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
function findFile(filename, startDir = process.cwd()) {
|
|
144
|
+
// For index.tsx, prioritize src/app/index.tsx over src/index.tsx
|
|
145
|
+
// because src/app/index.tsx contains the App component with Router
|
|
146
|
+
if (filename === 'index.tsx') {
|
|
147
|
+
const appIndexPath = path.join(startDir, 'src', 'app', filename);
|
|
148
|
+
if (fs.existsSync(appIndexPath)) {
|
|
149
|
+
return appIndexPath;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
|
|
144
153
|
const possiblePaths = [
|
|
145
154
|
path.join(startDir, filename),
|
|
146
155
|
path.join(startDir, 'src', filename),
|