This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @fileoverview Exports all models and mongoose instance | |
* @author @tylergannon | |
* | |
* Note the conditional creation of new models. This is to prevent | |
* conflict during development, between the HMR process repeating the | |
* same calls to mongoose.model(), which is not idempotent but throws | |
* an error if the model already exists. | |
*/ | |
import type { Model } from 'mongoose'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
REM Default env vars | |
IF NOT DEFINED debug set debug=0 | |
IF NOT DEFINED debug_coverage set debug_coverage=0 | |
IF NOT DEFINED GCC set GCC=gcc | |
IF NOT DEFINED AR set AR=ar | |
IF NOT DEFINED MAKE set MAKE=make |