diff --git a/packages/plugin-sails-content/lib/generate-content.js b/packages/plugin-sails-content/lib/generate-content.js index c6025ba..9531c4d 100644 --- a/packages/plugin-sails-content/lib/generate-content.js +++ b/packages/plugin-sails-content/lib/generate-content.js @@ -13,6 +13,7 @@ async function generateContent(config) { if (fileStats.isDirectory()) { await generateContent({ + ...config, inputDir: filePath, outputDir: path.join(config.outputDir, file) }) diff --git a/packages/sails-hook-content/package.json b/packages/sails-hook-content/package.json index 0e423bc..aadfabd 100644 --- a/packages/sails-hook-content/package.json +++ b/packages/sails-hook-content/package.json @@ -1,6 +1,6 @@ { "name": "sails-hook-content", - "version": "0.0.3", + "version": "0.0.4", "description": "Sails hook for Sails Content", "main": "lib/index.js", "scripts": {