@vention/vention-cli 0.11.0 → 0.11.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/cli.esm.js +3 -3
  2. package/package.json +4 -1
package/cli.esm.js CHANGED
@@ -6,7 +6,7 @@ import fs, { promises, realpathSync } from 'fs';
6
6
  import path from 'path';
7
7
  import { exec } from 'child_process';
8
8
  import http from 'http';
9
- import { URLSearchParams } from 'url';
9
+ import { URLSearchParams, fileURLToPath } from 'url';
10
10
  import { once } from 'events';
11
11
  import crypto from 'crypto';
12
12
  import { z } from 'zod';
@@ -741,8 +741,8 @@ program
741
741
  }
742
742
  });
743
743
  const resolvedArgv = realpathSync(process.argv[1]);
744
- const resolvedUrl = new URL(import.meta.url).pathname;
745
- if (resolvedArgv === resolvedUrl) {
744
+ const resolvedUrlPath = realpathSync(fileURLToPath(import.meta.url));
745
+ if (resolvedArgv === resolvedUrlPath) {
746
746
  const showLogoConditions = [process.argv.length <= 2, process.argv.includes("--help"), process.argv.includes("-h")];
747
747
  if (showLogoConditions.some(Boolean)) {
748
748
  console.log(chalk.cyan(ventionLogo));
package/package.json CHANGED
@@ -1,8 +1,11 @@
1
1
  {
2
2
  "name": "@vention/vention-cli",
3
- "version": "0.11.0",
3
+ "version": "0.11.1",
4
4
  "description": "CLI tool for Vention applications",
5
5
  "type": "module",
6
+ "engines": {
7
+ "node": ">=18.0.0"
8
+ },
6
9
  "repository": {
7
10
  "type": "git",
8
11
  "url": "https://github.com/VentionCo/machine-cloud.git"