fix npm package side effects

This commit is contained in:
Ben Allfree 2024-11-15 04:21:16 -08:00
parent 67883130a9
commit a1f046bc8b
2 changed files with 10 additions and 4 deletions

View File

@ -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"
]
}

View File

@ -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)