@webqit/webflo 0.11.25 → 0.11.26
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
CHANGED
|
@@ -273,8 +273,8 @@ function declareRoutesObj(gen, routesDir, targetDir, varName, routing) {
|
|
|
273
273
|
let indexCount = 0;
|
|
274
274
|
if (Fs.existsSync(_routesDir)) {
|
|
275
275
|
walk(_routesDir, (file, namespace, relativePath) => {
|
|
276
|
-
|
|
277
|
-
if (
|
|
276
|
+
relativePath = relativePath.replace(/\\/g, '/');
|
|
277
|
+
if (relativePath.endsWith('/index.js')) {
|
|
278
278
|
// Import code
|
|
279
279
|
let routeName = 'index' + (++ indexCount);
|
|
280
280
|
// IMPORTANT: we;re taking a step back here so that the parent-child relationship for
|