Skip to content

Commit

Permalink
Merge branch 'release/v0.60.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed Sep 2, 2024
2 parents 9016f31 + a24b66b commit 119309c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zerva/monorepo",
"type": "module",
"version": "0.60.1",
"version": "0.60.2",
"private": true,
"engines": {
"node": ">=20.0.0"
Expand Down
2 changes: 1 addition & 1 deletion zerva-bin/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@zerva/bin",
"type": "module",
"version": "0.60.1",
"version": "0.60.2",
"description": "🌱 Zerva Command Line Tool",
"author": {
"email": "[email protected]",
Expand Down
9 changes: 8 additions & 1 deletion zerva-bin/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import { existsSync } from 'node:fs'
import { resolve } from 'node:path'
import process from 'node:process'
import { arrayRemoveElement, parseArgs } from 'zeed'
import { arrayRemoveElement, parseArgs, setupEnv } from 'zeed'
import { entryCandidates } from './static'

export interface ZervaConf {
Expand Down Expand Up @@ -127,5 +127,12 @@ export function getConfig(): ZervaConf {

if (config.debug)
console.log('config =', config)

// .env. and .env.local
// .env.MODE and .env.MODE.local
setupEnv({ mode: config.mode })
if (config.debug)
console.log('env =', process.env)

return config as ZervaConf
}

0 comments on commit 119309c

Please sign in to comment.