@cloud411716/fancy-webnovel 0.1.24 → 0.1.26
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) {
|
|
@@ -114,7 +114,7 @@ async function applyBootstrap(ctx) {
|
|
|
114
114
|
const result = await runBootstrapScript(projectRoot);
|
|
115
115
|
|
|
116
116
|
if (result.ok) {
|
|
117
|
-
notifyBootstrap(session, '✅ 项目初始化完成!\n
|
|
117
|
+
notifyBootstrap(session, '✅ 项目初始化完成!\n下一步:运行 /fancy-scan 扫榜');
|
|
118
118
|
} else {
|
|
119
119
|
const errMsg = (typeof result.error === 'object' && result.error !== null)
|
|
120
120
|
? (result.error.message || JSON.stringify(result.error))
|
|
@@ -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 = [
|