mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
fix npm package side effects
This commit is contained in:
parent
67883130a9
commit
a1f046bc8b
@ -78,5 +78,11 @@
|
||||
"@types/tail": "^2.2.3",
|
||||
"@types/unzipper": "^0.10.8",
|
||||
"@types/vhost": "^3.0.9"
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"src",
|
||||
"CHANGELOG.md",
|
||||
"LICENSE",
|
||||
"README.md"
|
||||
]
|
||||
}
|
||||
|
@ -76,7 +76,7 @@ const createDevCert = async () => {
|
||||
writeFileSync(join(_SSL_HOME, `${TLS_PFX}.cert`), cert)
|
||||
}
|
||||
|
||||
export const SETTINGS = {
|
||||
export const createSettings = () => ({
|
||||
PH_ALLOWED_POCKETBASE_SEMVER: mkString(`0.22.*`),
|
||||
|
||||
PH_HOME: mkPath(_PH_HOME, { create: true }),
|
||||
@ -140,7 +140,7 @@ export const SETTINGS = {
|
||||
DOCKER_CONTAINER_HOST: mkString(`host.docker.internal`),
|
||||
|
||||
PH_GOBOT_ROOT: mkPath(join(_PH_HOME, 'gobot'), { create: true }),
|
||||
}
|
||||
})
|
||||
|
||||
export type Settings = ReturnType<typeof RegisterEnvSettingsService>
|
||||
export type SettingsDefinition = {
|
||||
@ -148,7 +148,7 @@ export type SettingsDefinition = {
|
||||
}
|
||||
|
||||
export const RegisterEnvSettingsService = () => {
|
||||
const _settings = SettingsService(SETTINGS)
|
||||
const _settings = SettingsService(createSettings())
|
||||
|
||||
ioc('settings', _settings)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user