obsidian-plugin-config 1.6.17 ā 1.6.18
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 +0 -12
- package/scripts/inject-path.ts +1 -5
package/bin/obsidian-inject.js
CHANGED
package/package.json
CHANGED
package/scripts/build-npm.ts
CHANGED
|
@@ -317,18 +317,6 @@ 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
|
-
});
|
|
332
320
|
} catch (error) {
|
|
333
321
|
console.error(
|
|
334
322
|
`\nā Workflow failed: ${error instanceof Error ? error.message : String(error)}`
|
package/scripts/inject-path.ts
CHANGED
|
@@ -10,9 +10,7 @@ import {
|
|
|
10
10
|
readInjectionInfo,
|
|
11
11
|
showInjectionPlan
|
|
12
12
|
} from './inject-core.js';
|
|
13
|
-
import {
|
|
14
|
-
|
|
15
|
-
const rl = createReadlineInterface();
|
|
13
|
+
import { isValidPath } from './utils.js';
|
|
16
14
|
|
|
17
15
|
async function main(): Promise<void> {
|
|
18
16
|
try {
|
|
@@ -168,8 +166,6 @@ async function main(): Promise<void> {
|
|
|
168
166
|
`š„ Error: ${error instanceof Error ? error.message : String(error)}`
|
|
169
167
|
);
|
|
170
168
|
process.exit(1);
|
|
171
|
-
} finally {
|
|
172
|
-
rl.close();
|
|
173
169
|
}
|
|
174
170
|
}
|
|
175
171
|
|