@sundaysf/cli-v2 1.0.0 → 1.0.1

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.
@@ -11,3 +11,4 @@ SQL_PORT=5432
11
11
  SQL_USER=postgres
12
12
  SQL_PASSWORD=
13
13
  SQL_DB_NAME=mydb
14
+ SQL_REJECT_UNAUTHORIZED=false
@@ -1,7 +1,6 @@
1
1
  import type { Knex } from "knex";
2
- import path from "path";
3
2
  import dotenv from "dotenv";
4
- dotenv.config({ path: path.resolve(__dirname, "..", ".env") });
3
+ dotenv.config();
5
4
 
6
5
  const isLocalhost = process.env.SQL_HOST === 'localhost' || process.env.SQL_HOST === '127.0.0.1';
7
6
  const rejectUnauthorized = process.env.SQL_REJECT_UNAUTHORIZED !== 'false';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sundaysf/cli-v2",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Sundays Framework CLI - Project scaffolding and CRUD code generation",
5
5
  "main": "./dist/bin/index.js",
6
6
  "scripts": {