File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ async function main() {
66
66
67
67
main ( )
68
68
69
- async function installIfVersionMismatch ( ) : void {
69
+ async function installIfVersionMismatch ( ) {
70
70
const dependenciesYaml = fs . readFileSync ( projectPath ( 'tea.yaml' ) , 'utf8' )
71
71
const dependencies = parseYaml ( dependenciesYaml ) . dependencies
72
72
Original file line number Diff line number Diff line change @@ -132,12 +132,12 @@ export function determineDebugMode(options?: CliOptions) {
132
132
return app . debug === true
133
133
}
134
134
135
- export function env ( key : string , fallback : any ) {
135
+ export function env ( key : string , fallback ? : any ) {
136
136
// console.log('isClient', isClient)
137
137
// if (key && import.meta?.env)
138
138
// return import.meta.env[key]
139
139
140
- return fallback
140
+ return key ?? fallback
141
141
}
142
142
143
143
export { semver }
You can’t perform that action at this time.
0 commit comments