@cloud411716/fancy-webnovel 0.1.24 → 0.1.25
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/package.json
CHANGED
|
@@ -11,7 +11,7 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
11
11
|
// ---------------------------------------------------------------------------
|
|
12
12
|
// fancy-bootstrap
|
|
13
13
|
// ---------------------------------------------------------------------------
|
|
14
|
-
const BOOTSTRAP_DIR =
|
|
14
|
+
const BOOTSTRAP_DIR = __dirname; // registry.js is inside plugins/fancy-bootstrap/
|
|
15
15
|
const BOOTSTRAP_SCRIPTS_DIR = join(BOOTSTRAP_DIR, 'scripts');
|
|
16
16
|
|
|
17
17
|
function notifyBootstrap(session, text) {
|
|
@@ -130,7 +130,7 @@ async function applyBootstrap(ctx) {
|
|
|
130
130
|
// ---------------------------------------------------------------------------
|
|
131
131
|
// fancy-scan
|
|
132
132
|
// ---------------------------------------------------------------------------
|
|
133
|
-
const SCAN_DIR = join(__dirname, 'fancy-scan');
|
|
133
|
+
const SCAN_DIR = join(dirname(__dirname), 'fancy-scan'); // from plugins/fancy-bootstrap/ up to plugins/, then fancy-scan
|
|
134
134
|
const SCAN_SCRIPTS_DIR = join(SCAN_DIR, 'scripts');
|
|
135
135
|
|
|
136
136
|
const PLATFORM_TABLE = [
|