@ncukondo/slide-generation 0.2.2 → 0.2.3
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/index.js +3 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -1515,7 +1515,7 @@ var Pipeline = class {
|
|
|
1515
1515
|
};
|
|
1516
1516
|
|
|
1517
1517
|
// src/index.ts
|
|
1518
|
-
var VERSION = "0.2.
|
|
1518
|
+
var VERSION = "0.2.3";
|
|
1519
1519
|
|
|
1520
1520
|
// src/cli/commands/convert.ts
|
|
1521
1521
|
import { Command } from "commander";
|
|
@@ -4771,7 +4771,7 @@ import { Command as Command6 } from "commander";
|
|
|
4771
4771
|
import { mkdir as mkdir7, writeFile as writeFile7, access as access10, readdir as readdir6, cp } from "fs/promises";
|
|
4772
4772
|
import { existsSync } from "fs";
|
|
4773
4773
|
import { execSync as execSync2 } from "child_process";
|
|
4774
|
-
import { dirname as dirname6, join as join15, resolve as resolve5 } from "path";
|
|
4774
|
+
import { dirname as dirname6, join as join15, resolve as resolve5, sep } from "path";
|
|
4775
4775
|
import { fileURLToPath } from "url";
|
|
4776
4776
|
import chalk6 from "chalk";
|
|
4777
4777
|
import ora3 from "ora";
|
|
@@ -6034,7 +6034,7 @@ function generateSlideThemeCommand() {
|
|
|
6034
6034
|
// src/cli/commands/init.ts
|
|
6035
6035
|
function getPackageRoot() {
|
|
6036
6036
|
const __dirname = dirname6(fileURLToPath(import.meta.url));
|
|
6037
|
-
if (__dirname.includes("/src/")) {
|
|
6037
|
+
if (__dirname.includes(`${sep}src${sep}`) || __dirname.includes("/src/")) {
|
|
6038
6038
|
return join15(__dirname, "..", "..", "..");
|
|
6039
6039
|
}
|
|
6040
6040
|
return join15(__dirname, "..", "..");
|