@yongdall/migrate 0.6.1 → 0.6.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/cli/migrate.mjs +1 -1
- package/cli/migrate.mjs.map +1 -1
- package/package.json +7 -7
package/cli/migrate.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import migrate from "#index";
|
|
|
11
11
|
async function migrate_default({ options, development, plugins }) {
|
|
12
12
|
await init({ development });
|
|
13
13
|
const domain = options.domain?.find(Boolean) || "";
|
|
14
|
-
const database = options.
|
|
14
|
+
const database = options.database?.find(Boolean) || void 0;
|
|
15
15
|
migrate({
|
|
16
16
|
domain,
|
|
17
17
|
plugins: [...plugins],
|
package/cli/migrate.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"migrate.mjs","names":[],"sources":["../../../cli/migrate/cli/migrate.mjs"],"sourcesContent":["import { stop } from '@yongdall/connection';\nimport init from '@yongdall/init';\nimport migrate from '#index';\n/** @import { Cli } from '@yongdall/cli-parse' */\n\n\n\n/**\n * \n * @param {Cli.Env} env \n */\nexport default async function ({ options, development, plugins }) {\n\tawait init({ development });\n\tconst domain = options.domain?.find(Boolean) || '';\n\tconst database = options.
|
|
1
|
+
{"version":3,"file":"migrate.mjs","names":[],"sources":["../../../cli/migrate/cli/migrate.mjs"],"sourcesContent":["import { stop } from '@yongdall/connection';\nimport init from '@yongdall/init';\nimport migrate from '#index';\n/** @import { Cli } from '@yongdall/cli-parse' */\n\n\n\n/**\n * \n * @param {Cli.Env} env \n */\nexport default async function ({ options, development, plugins }) {\n\tawait init({ development });\n\tconst domain = options.domain?.find(Boolean) || '';\n\tconst database = options.database?.find(Boolean) || undefined;\n\tmigrate({ domain, plugins: [...plugins], database }).then(stop);\n}\n"],"mappings":";;;;;;;;;;AAWA,+BAA+B,EAAE,SAAS,aAAa,WAAW;AACjE,OAAM,KAAK,EAAE,aAAa,CAAC;CAC3B,MAAM,SAAS,QAAQ,QAAQ,KAAK,QAAQ,IAAI;CAChD,MAAM,WAAW,QAAQ,UAAU,KAAK,QAAQ,IAAI;AACpD,SAAQ;EAAE;EAAQ,SAAS,CAAC,GAAG,QAAQ;EAAE;EAAU,CAAC,CAAC,KAAK,KAAK"}
|
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yongdall/migrate",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.mjs",
|
|
6
6
|
"imports": {
|
|
7
7
|
"#index": "./index.mjs"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@yongdall/plugins": "^0.6.
|
|
11
|
-
"@yongdall/context": "^0.6.
|
|
12
|
-
"@yongdall/init": "^0.6.
|
|
13
|
-
"@yongdall/connection": "^0.6.
|
|
14
|
-
"@yongdall/model": "^0.6.
|
|
10
|
+
"@yongdall/plugins": "^0.6.2",
|
|
11
|
+
"@yongdall/context": "^0.6.2",
|
|
12
|
+
"@yongdall/init": "^0.6.2",
|
|
13
|
+
"@yongdall/connection": "^0.6.2",
|
|
14
|
+
"@yongdall/model": "^0.6.2"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@yongdall/cli-parse": "^0.6.
|
|
17
|
+
"@yongdall/cli-parse": "^0.6.2"
|
|
18
18
|
},
|
|
19
19
|
"exports": {
|
|
20
20
|
".": "./index.mjs"
|