minimonolith 0.15.4 → 0.15.5

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.
Files changed (3) hide show
  1. package/README.md +2 -1
  2. package/index.js +5 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -31,7 +31,8 @@ This file is used for local development. It runs a local server using `minimonol
31
31
 
32
32
  ```js
33
33
  // server.js
34
- import { runLambdaServer, loadEnvFile } from 'minimonolith';
34
+ import { devEnvironment } from 'minimonolith';
35
+ const { runLambdaServer, loadEnvFile } = await devEnvironment();
35
36
  loadEnvFile(); // .env file loaded by default
36
37
 
37
38
  const lambdaRootFile = await import('./index.js');
package/index.js CHANGED
@@ -2,6 +2,9 @@ import { z } from 'zod';
2
2
 
3
3
  import { createAPI } from './src/api/index.js';
4
4
  import { DB_VALIDATION } from './src/database/index.js';
5
- import { runLambdaServer, loadEnvFile } from './src/local/index.js';
6
5
 
7
- export { runLambdaServer, loadEnvFile, createAPI, z, DB_VALIDATION };
6
+ const devEnvironment = async () => {
7
+ return await import('./src/local/index.js');
8
+ }
9
+
10
+ export { devEnvironment, createAPI, z, DB_VALIDATION };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "minimonolith",
3
3
  "type": "module",
4
- "version": "0.15.4",
4
+ "version": "0.15.5",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "scripts": {