@tachybase/database 1.6.3-alpha.3 → 1.6.8-alpha.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.
- package/lib/database.js +2 -1
- package/package.json +13 -4
package/lib/database.js
CHANGED
|
@@ -365,7 +365,8 @@ const _Database = class _Database extends import_node_events.EventEmitter {
|
|
|
365
365
|
}
|
|
366
366
|
addMigrations(options) {
|
|
367
367
|
const { namespace, context, extensions = ["js", "ts"], directory } = options;
|
|
368
|
-
const
|
|
368
|
+
const normalizedDir = directory.replace(/\\/g, "/");
|
|
369
|
+
const patten = `${normalizedDir}/*.{${extensions.join(",")}}`;
|
|
369
370
|
const files = (0, import_glob.globSync)(patten, {
|
|
370
371
|
ignore: ["**/*.d.ts"]
|
|
371
372
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/database",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.8-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
|
+
"homepage": "https://github.com/tegojs/tego#readme",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/tegojs/tego/issues"
|
|
8
|
+
},
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/tegojs/tego",
|
|
12
|
+
"directory": "packages/database"
|
|
13
|
+
},
|
|
5
14
|
"license": "Apache-2.0",
|
|
6
15
|
"main": "./lib/index.js",
|
|
7
16
|
"types": "./lib/index.d.ts",
|
|
@@ -22,9 +31,9 @@
|
|
|
22
31
|
"semver": "7.7.2",
|
|
23
32
|
"sequelize": "^6.37.7",
|
|
24
33
|
"umzug": "^3.8.2",
|
|
25
|
-
"@tachybase/globals": "1.6.
|
|
26
|
-
"@tachybase/logger": "1.6.
|
|
27
|
-
"@tachybase/utils": "1.6.
|
|
34
|
+
"@tachybase/globals": "1.6.8-alpha.1",
|
|
35
|
+
"@tachybase/logger": "1.6.8-alpha.1",
|
|
36
|
+
"@tachybase/utils": "1.6.8-alpha.1"
|
|
28
37
|
},
|
|
29
38
|
"devDependencies": {
|
|
30
39
|
"@types/flat": "^5.0.5",
|