not-node 4.0.20 → 4.0.21
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
package/src/common.js
CHANGED
|
@@ -183,11 +183,11 @@ module.exports.tryFile = (filePath) => {
|
|
|
183
183
|
* Generates paths object for module/index.js files based on content and relative
|
|
184
184
|
* path
|
|
185
185
|
* @param {Array<string>} content list of module components ['models', 'logics', 'routes',...]
|
|
186
|
-
* @param {string} relative
|
|
186
|
+
* @param {string} relative path to parent folder of components
|
|
187
187
|
* @param {Object} paths object for module/index.js
|
|
188
188
|
**/
|
|
189
189
|
module.exports.generatePaths = (content = [], relative = 'src') => {
|
|
190
|
-
const toPath = (name) => path.join(
|
|
190
|
+
const toPath = (name) => path.join(relative, name);
|
|
191
191
|
return content.reduce((prev, cur) => {
|
|
192
192
|
prev[cur] = toPath(cur);
|
|
193
193
|
return prev;
|
package/src/core/fields/owner.js
CHANGED