obsidian-plugin-config 1.6.16 ā 1.6.17
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/bin/obsidian-inject.js +1 -1
- package/package.json +1 -1
- package/scripts/build-npm.ts +12 -0
- package/scripts/inject-core.ts +3 -3
package/bin/obsidian-inject.js
CHANGED
package/package.json
CHANGED
package/scripts/build-npm.ts
CHANGED
|
@@ -317,6 +317,18 @@ async function buildAndPublishNpm(): Promise<void> {
|
|
|
317
317
|
}
|
|
318
318
|
console.log(`\nš Complete workflow successful!`);
|
|
319
319
|
console.log(` Test: cd any-plugin && obsidian-inject`);
|
|
320
|
+
console.log(`\nā
Press any key to exit...`);
|
|
321
|
+
|
|
322
|
+
// Wait for user to press any key
|
|
323
|
+
process.stdin.setRawMode(true);
|
|
324
|
+
process.stdin.resume();
|
|
325
|
+
await new Promise<void>((resolve) => {
|
|
326
|
+
process.stdin.once('data', () => {
|
|
327
|
+
process.stdin.setRawMode(false);
|
|
328
|
+
process.stdin.pause();
|
|
329
|
+
resolve();
|
|
330
|
+
});
|
|
331
|
+
});
|
|
320
332
|
} catch (error) {
|
|
321
333
|
console.error(
|
|
322
334
|
`\nā Workflow failed: ${error instanceof Error ? error.message : String(error)}`
|
package/scripts/inject-core.ts
CHANGED
|
@@ -181,14 +181,14 @@ export async function showInjectionPlan(
|
|
|
181
181
|
console.log(` š Analyze centralized imports (manual commenting may be needed)`);
|
|
182
182
|
|
|
183
183
|
if (autoConfirm) {
|
|
184
|
-
console.log(`\nā
Auto-confirming
|
|
184
|
+
console.log(`\nā
Auto-confirming all file replacements...`);
|
|
185
185
|
rl.close();
|
|
186
186
|
return true;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
|
|
189
|
+
// No global confirmation needed - file-by-file confirmation will happen in diffAndPromptFiles
|
|
190
190
|
rl.close();
|
|
191
|
-
return
|
|
191
|
+
return true;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
/**
|