diff --git a/packages/cli/src/plugins/index.js b/packages/cli/src/plugins/index.js index ac931e0d22..643406bc4d 100644 --- a/packages/cli/src/plugins/index.js +++ b/packages/cli/src/plugins/index.js @@ -48,7 +48,7 @@ async function init(opts) { // get the skeleton console.log(info("Retrieving project...")) await getSkeleton(type, name) - await fleshOutSkeleton(name, desc, version) + await fleshOutSkeleton(type, name, desc, version) console.log(info("Installing dependencies...")) await runPkgCommand("install", join(process.cwd(), name)) console.log(info(`Plugin created in directory "${name}"`)) diff --git a/packages/cli/src/plugins/skeleton.js b/packages/cli/src/plugins/skeleton.js index a1d9101c6f..76b9aa2d8a 100644 --- a/packages/cli/src/plugins/skeleton.js +++ b/packages/cli/src/plugins/skeleton.js @@ -6,7 +6,7 @@ const { join } = require("path") const tar = require("tar") const { processStringSync } = require("@budibase/string-templates") -const HBS_FILES = ["package.json.hbs", "schema.json.hbs"] +const HBS_FILES = ["package.json.hbs", "schema.json.hbs", "README.md.hbs"] async function getSkeletonUrl(type) { const resp = await fetch( @@ -40,7 +40,7 @@ exports.getSkeleton = async (type, name) => { fs.rmSync(tarballFile) } -exports.fleshOutSkeleton = async (name, description, version) => { +exports.fleshOutSkeleton = async (type, name, description, version) => { for (let file of HBS_FILES) { const oldFile = join(name, file), newFile = join(name, file.substring(0, file.length - 4)) diff --git a/packages/server/src/utilities/fileSystem/index.js b/packages/server/src/utilities/fileSystem/index.js index 096212864c..622c989cb8 100644 --- a/packages/server/src/utilities/fileSystem/index.js +++ b/packages/server/src/utilities/fileSystem/index.js @@ -363,6 +363,7 @@ exports.getDatasourcePlugin = async (name, url, hash) => { if (currentHash === hash) { return require(filename) } else { + console.log(`Updating plugin: ${name}`) fs.unlinkSync(filename) } }