@codedir/mimir-code 0.1.3 → 0.1.4
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/cli.mjs +15 -10
- package/dist/cli.mjs.map +1 -1
- package/package.json +1 -1
package/dist/cli.mjs
CHANGED
|
@@ -4418,6 +4418,7 @@ function closeDatabaseManager() {
|
|
|
4418
4418
|
|
|
4419
4419
|
// src/core/MimirInitializer.ts
|
|
4420
4420
|
import path6, { dirname as dirname2 } from "path";
|
|
4421
|
+
import { fileURLToPath as fileURLToPath2 } from "url";
|
|
4421
4422
|
var MimirInitializer = class {
|
|
4422
4423
|
constructor(fs4, configLoader2) {
|
|
4423
4424
|
this.fs = fs4;
|
|
@@ -4537,15 +4538,17 @@ checkpoints/
|
|
|
4537
4538
|
"light-colorblind.json"
|
|
4538
4539
|
];
|
|
4539
4540
|
try {
|
|
4541
|
+
const currentDir = dirname2(fileURLToPath2(import.meta.url));
|
|
4540
4542
|
const executablePath = process.argv[0] || process.execPath;
|
|
4541
4543
|
const binaryDir = dirname2(executablePath);
|
|
4542
4544
|
const possibleSourceDirs = [
|
|
4543
|
-
|
|
4544
|
-
|
|
4545
|
-
|
|
4545
|
+
// npm package: <package-root>/src/cli/themes/
|
|
4546
|
+
path6.join(currentDir, "../../src/cli/themes"),
|
|
4547
|
+
// From dist/core/ -> src/cli/themes
|
|
4546
4548
|
// Development: dist/core/../cli/themes
|
|
4547
|
-
path6.join(
|
|
4548
|
-
//
|
|
4549
|
+
path6.join(currentDir, "../cli/themes"),
|
|
4550
|
+
// Compiled binary: ~/.local/bin/resources/themes/
|
|
4551
|
+
path6.join(binaryDir, "resources", "themes")
|
|
4549
4552
|
];
|
|
4550
4553
|
for (const themeFile of defaultThemes) {
|
|
4551
4554
|
const destPath = path6.join(themesDir, themeFile);
|
|
@@ -4586,15 +4589,17 @@ checkpoints/
|
|
|
4586
4589
|
const commandsDir = path6.join(mimirDir, "commands");
|
|
4587
4590
|
const exampleCommands = ["update-docs.yml"];
|
|
4588
4591
|
try {
|
|
4592
|
+
const currentDir = dirname2(fileURLToPath2(import.meta.url));
|
|
4589
4593
|
const executablePath = process.argv[0] || process.execPath;
|
|
4590
4594
|
const binaryDir = dirname2(executablePath);
|
|
4591
4595
|
const possibleSourceDirs = [
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4596
|
+
// npm package: <package-root>/scripts/templates/commands/
|
|
4597
|
+
path6.join(currentDir, "../../scripts/templates/commands"),
|
|
4598
|
+
// From dist/core/ -> scripts/templates/commands
|
|
4595
4599
|
// Development: dist/core/../../scripts/templates/commands
|
|
4596
|
-
path6.join(
|
|
4597
|
-
//
|
|
4600
|
+
path6.join(currentDir, "../../../scripts/templates/commands"),
|
|
4601
|
+
// Compiled binary: ~/.local/bin/resources/commands/
|
|
4602
|
+
path6.join(binaryDir, "resources", "commands")
|
|
4598
4603
|
];
|
|
4599
4604
|
for (const commandFile of exampleCommands) {
|
|
4600
4605
|
const destPath = path6.join(commandsDir, commandFile);
|