Skip to content

Commit

Permalink
Merge pull request #23 from nomad-mystic/kpm-fix-root-path
Browse files Browse the repository at this point in the history
Kpm fix root path
  • Loading branch information
nomad-mystic committed Sep 14, 2023
2 parents 71890d7 + 6650531 commit fdac67e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nomadmystic/wordpress-scaffold-cli",
"version": "0.8.4",
"version": "0.8.5",
"description": "This project is created to speed up WordPress development",
"main": "index.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/bin/commander-cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class CommanderCli {
private static callCommand = async (command: string): Promise<void> => {
try {
const path: string = CommanderOptions[command].path as string;
const fullPath: string = `${packageRootDir}dist/${path}`;
const fullPath: string = `${packageRootDir}/dist/${path}`;

// Bail early
if (!fs.existsSync(fullPath)) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/package-root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const filename: string = fileURLToPath(import.meta.url);
const dirname: string = path.dirname(filename);

const config = {
packageRootDir: `${path.join(dirname, '../../../')}`,
packageRootDir: `${path.join(dirname, '../../')}`,
};

export let packageRootDir: string = config.packageRootDir;

0 comments on commit fdac67e

Please sign in to comment.