@weaver-wow/cli 1.1.0 → 1.1.1

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/wvr.mjs +5 -1
  2. package/package.json +1 -1
package/dist/wvr.mjs CHANGED
@@ -3263,7 +3263,7 @@ import { existsSync } from "node:fs";
3263
3263
  async function findWoWPath() {
3264
3264
  if (process.platform === "win32") {
3265
3265
  try {
3266
- const result = execSync('reg query "HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Blizzard Entertainment\\World of Warcraft" /v InstallPath', { encoding: "utf-8" });
3266
+ const result = execSync('reg query "HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Blizzard Entertainment\\World of Warcraft" /v InstallPath 2>nul', { encoding: "utf-8" });
3267
3267
  const match = result.match(/REG_SZ\s+(.*)/);
3268
3268
  if (match && match[1]) {
3269
3269
  const path = match[1].trim();
@@ -3539,6 +3539,10 @@ async function buildProject(config, silent = false) {
3539
3539
  throw new Error(`Missing ${import_picocolors4.default.bold("tsconfig.json")}.
3540
3540
  Run ${import_picocolors4.default.cyan("wvr init")} to set up your project structure.`);
3541
3541
  }
3542
+ if (!existsSync4("node_modules")) {
3543
+ throw new Error(`Missing ${import_picocolors4.default.bold("node_modules")}.
3544
+ Run ${import_picocolors4.default.cyan("bun install")} or ${import_picocolors4.default.cyan("npm install")} to install dependencies.`);
3545
+ }
3542
3546
  let entryPoint = config?.entry;
3543
3547
  if (!entryPoint) {
3544
3548
  const potentialEntries = ["src/App.tsx", "src/index.tsx", "src/App.ts", "src/index.ts"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@weaver-wow/cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Command line toolchain for building Weaver addons",
5
5
  "bin": {
6
6
  "wvr": "dist/wvr.mjs"