feat(root): plugin template now logs settings in debug mode

This commit is contained in:
Ben Allfree 2024-06-27 13:56:00 -07:00
parent 481c503752
commit 589f8c00c3

View File

@ -1,5 +1,6 @@
import { join } from 'path'
import { PH_HOME, Settings, mkPath } from 'pockethost/core'
import { DEBUG } from 'pockethost'
import { PH_HOME, Settings, logSettings, mkPath } from 'pockethost/core'
export const PLUGIN_NAME = `plugin-{{dashCase name}}`
@ -9,3 +10,7 @@ export const HOME_DIR =
const settings = Settings({
PH_{{constantCase name}}_HOME: mkPath(HOME_DIR, { create: true }),
})
if (DEBUG()) {
logSettings(settings)
}