radiant-docs 0.1.3 → 0.1.6

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -110,6 +110,11 @@ async function setupCache(cacheDir) {
110
110
  }
111
111
  async function installDependencies(cacheDir) {
112
112
  log.info("Installing dependencies (first run only)...");
113
+ if (!fs.existsSync(cacheDir)) {
114
+ log.error(`Cache directory does not exist: ${cacheDir}`);
115
+ process.exit(1);
116
+ }
117
+ log.info(`Cache location: ${cacheDir}`);
113
118
  try {
114
119
  execSync("npm install --silent --no-fund --no-audit", {
115
120
  cwd: cacheDir,
@@ -119,6 +124,7 @@ async function installDependencies(cacheDir) {
119
124
  log.success("Dependencies installed.");
120
125
  } catch (error) {
121
126
  log.error("Failed to install dependencies.");
127
+ log.error(`Error details: ${error.message}`);
122
128
  throw error;
123
129
  }
124
130
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "radiant-docs",
3
- "version": "0.1.3",
3
+ "version": "0.1.6",
4
4
  "description": "CLI tool for previewing Radiant documentation locally",
5
5
  "type": "module",
6
6
  "bin": {