@sanity/cli 3.74.2-canary.89 → 3.74.2-canary.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_chunks-cjs/cli.js +1 -1
- package/lib/_chunks-cjs/cli.js.map +1 -1
- package/lib/index.d.mts +1 -1
- package/lib/index.d.ts +1 -1
- package/package.json +5 -5
- package/src/cli.ts +1 -1
- package/src/types.ts +1 -1
package/lib/_chunks-cjs/cli.js
CHANGED
@@ -78788,7 +78788,7 @@ function loadAndSetEnvFromDotEnvFiles({
|
|
78788
78788
|
cmd,
|
78789
78789
|
isCoreApp
|
78790
78790
|
}) {
|
78791
|
-
if (fs$1.existsSync(path__default.default.join(workDir, "sanity.json"))
|
78791
|
+
if (fs$1.existsSync(path__default.default.join(workDir, "sanity.json"))) {
|
78792
78792
|
loadEnv.debug("sanity.json exists, assuming v2 project and loading .env files using old behavior");
|
78793
78793
|
const env = process.env.SANITY_ACTIVE_ENV || process.env.NODE_ENV || "development";
|
78794
78794
|
loadEnv.debug("Loading environment files using %s mode", env), loadEnv.dotenv.config({ path: path__default.default.join(workDir, `.env.${env}`) });
|