@docsalot/previewing 0.1.0-beta.7 → 0.1.0-beta.8

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.
Binary file
@@ -4,14 +4,14 @@ import child_process from "child_process";
4
4
  import open from "open";
5
5
  import fse from "fs-extra";
6
6
  import shell from "shelljs";
7
- import { HOME_DIR, CLIENT_PATH, MINT_PATH, } from "../constants.js";
7
+ import { HOME_DIR, CLIENT_PATH, CMD_EXEC_PATH, MINT_PATH, } from "../constants.js";
8
8
  import { buildLogger } from "../util.js";
9
9
  import listener from "./listener/index.js";
10
10
  import { getConfigPath } from "./listener/utils/mintConfigFile.js";
11
11
  import installDepsCommand from "./helper-commands/installDepsCommand.js";
12
12
  import syncLocalContentCommand from "./helper-commands/syncLocalContentCommand.js";
13
13
  const checkForLayoutJson = async (logger) => {
14
- const configPath = await getConfigPath(process.cwd());
14
+ const configPath = await getConfigPath(CMD_EXEC_PATH);
15
15
  if (configPath == null) {
16
16
  logger.fail("Must be ran in a directory where a layout.json file exists.");
17
17
  process.exit(1);
@@ -4,13 +4,13 @@ import child_process from "child_process";
4
4
  import open from "open";
5
5
  import fse from "fs-extra";
6
6
  import shell from "shelljs";
7
- import { HOME_DIR, CLIENT_PATH, MINT_PATH, } from "../constants.js";
7
+ import { HOME_DIR, CLIENT_PATH, CMD_EXEC_PATH, MINT_PATH, } from "../constants.js";
8
8
  import { buildLogger } from "../util.js";
9
9
  import { getConfigPath } from "./listener/utils/mintConfigFile.js";
10
10
  import installDepsCommand from "./helper-commands/installDepsCommand.js";
11
11
  import syncLocalContentCommand from "./helper-commands/syncLocalContentCommand.js";
12
12
  const checkForLayoutJson = async (logger) => {
13
- const configPath = await getConfigPath(process.cwd());
13
+ const configPath = await getConfigPath(CMD_EXEC_PATH);
14
14
  if (configPath == null) {
15
15
  logger.fail("Must be ran in a directory where a layout.json file exists.");
16
16
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docsalot/previewing",
3
- "version": "0.1.0-beta.7",
3
+ "version": "0.1.0-beta.8",
4
4
  "description": "Preview DocsALot docs locally",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -30,8 +30,8 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@apidevtools/swagger-parser": "^10.1.0",
33
- "@docsalot/prebuild": "^0.1.0-beta.7",
34
- "@docsalot/validation": "^0.1.0-beta.7",
33
+ "@docsalot/prebuild": "^0.1.0-beta.8",
34
+ "@docsalot/validation": "^0.1.0-beta.8",
35
35
  "@octokit/rest": "^19.0.5",
36
36
  "axios": "^1.2.2",
37
37
  "chalk": "^5.1.0",