@travetto/base
Advanced tools
Comparing version 3.0.0-rc.5 to 3.0.0-rc.6
{ | ||
"name": "@travetto/base", | ||
"version": "3.0.0-rc.5", | ||
"version": "3.0.0-rc.6", | ||
"description": "Environment config and common utilities for travetto applications.", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@travetto/manifest": "^3.0.0-rc.3", | ||
"@travetto/manifest": "^3.0.0-rc.4", | ||
"@types/source-map-support": "^0.5.6", | ||
@@ -36,3 +36,3 @@ "source-map-support": "^0.5.21" | ||
"@parcel/watcher": "^2.1.0", | ||
"@travetto/transformer": "^3.0.0-rc.7" | ||
"@travetto/transformer": "^3.0.0-rc.8" | ||
}, | ||
@@ -39,0 +39,0 @@ "peerDependenciesMeta": { |
@@ -63,5 +63,9 @@ import { Env } from './env'; | ||
const profiles = new Set([GlobalEnv.profiles, ...(cfg.profiles ?? [])]); | ||
const isProd = /^prod/i.test(env); | ||
if (test) { | ||
profiles.add(TEST); | ||
debug = false; | ||
} else { | ||
profiles.add(isProd ? PROD : DEV); | ||
} | ||
@@ -78,3 +82,3 @@ | ||
process.env.TRV_ENV = env; | ||
process.env.NODE_ENV = /^prod/i.test(env) ? 'production' : 'development'; | ||
process.env.NODE_ENV = isProd ? 'production' : 'development'; | ||
process.env.TRV_DYNAMIC = `${cfg.dynamic ?? GlobalEnv.dynamic}`; | ||
@@ -81,0 +85,0 @@ process.env.DEBUG = `${debug}`; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89355
2180