wfu-migrate 0.1.27 → 0.1.28
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/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12,13 +12,18 @@
|
|
|
12
12
|
* - Resume capability for interrupted migrations
|
|
13
13
|
*/
|
|
14
14
|
import { program } from 'commander';
|
|
15
|
+
import { readFileSync } from 'fs';
|
|
16
|
+
import { dirname, join } from 'path';
|
|
17
|
+
import { fileURLToPath } from 'url';
|
|
15
18
|
import { migrateCommand } from './commands/migrate.js';
|
|
16
19
|
import { envMigrateCommand } from './commands/env-migrate.js';
|
|
17
20
|
import { configCommand } from './commands/config.js';
|
|
18
21
|
import { doctorCommand } from './commands/doctor.js';
|
|
19
22
|
import { cleanupCommand } from './commands/cleanup.js';
|
|
20
23
|
import { listSitesCommand } from './commands/list-sites.js';
|
|
21
|
-
const
|
|
24
|
+
const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
25
|
+
const packageJson = JSON.parse(readFileSync(join(__dirname, '..', 'package.json'), 'utf-8'));
|
|
26
|
+
const VERSION = packageJson.version;
|
|
22
27
|
program
|
|
23
28
|
.name('wfu-migrate')
|
|
24
29
|
.description('CLI tool for migrating WordPress multisite databases between WFU environments')
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OA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