@zuplo/cli 1.16.0 → 1.17.0

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.
@@ -14,10 +14,11 @@ async function locateDenoExecutable() {
14
14
  return locateDeno(dirname(fileURLToPath(import.meta.url)));
15
15
  }
16
16
  async function locateDeno(dir) {
17
+ const DENO_EXECUTABLE = process.platform === "win32" ? "deno.exe" : "deno";
17
18
  if (dir === ".") {
18
19
  return undefined;
19
20
  }
20
- const pathToDeno = resolve(dir, "node_modules", "deno-bin", "bin", "deno");
21
+ const pathToDeno = resolve(dir, "node_modules", "deno-bin", "bin", DENO_EXECUTABLE);
21
22
  if (await existsSync(pathToDeno)) {
22
23
  logger.debug(`Path to deno: ${pathToDeno}`);
23
24
  return pathToDeno;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "1.16.0",
3
+ "version": "1.17.0",
4
4
  "type": "module",
5
5
  "repository": "https://github.com/zuplo/cli",
6
6
  "author": "Zuplo, Inc.",