@lark-apaas/db-schema-sync 0.1.6-alpha.0 → 0.1.6-alpha.2
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.
- package/dist/bin.js +6 -4
- package/package.json +2 -2
package/dist/bin.js
CHANGED
|
@@ -424,10 +424,12 @@ function parseArgs(argv) {
|
|
|
424
424
|
|
|
425
425
|
// src/bin.ts
|
|
426
426
|
async function main() {
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
427
|
+
for (const name of [".env.local", ".env"]) {
|
|
428
|
+
const envPath = resolve(process.cwd(), name);
|
|
429
|
+
if (existsSync(envPath)) {
|
|
430
|
+
(0, import_dotenv.config)({ path: envPath });
|
|
431
|
+
console.log(`[db-schema-sync] \u2713 Loaded ${name}`);
|
|
432
|
+
}
|
|
431
433
|
}
|
|
432
434
|
const cliArgs = parseArgs(process.argv);
|
|
433
435
|
const output = cliArgs.output || process.env.DB_SCHEMA_OUTPUT || "server/database/schema.ts";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lark-apaas/db-schema-sync",
|
|
3
|
-
"version": "0.1.6-alpha.
|
|
3
|
+
"version": "0.1.6-alpha.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"node": ">=18.0.0"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@lark-apaas/http-client": "0.1.7-alpha.
|
|
32
|
+
"@lark-apaas/http-client": "0.1.7-alpha.8",
|
|
33
33
|
"dotenv": "^17.3.1",
|
|
34
34
|
"tiny-pinyin": "^1.3.2"
|
|
35
35
|
},
|