nvii 2.0.3 → 2.0.4
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.
- package/dist/index.js +14 -83
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -23695,6 +23695,10 @@ var require_keytar2 = __commonJS({
|
|
|
23695
23695
|
}
|
|
23696
23696
|
});
|
|
23697
23697
|
|
|
23698
|
+
// src/index.ts
|
|
23699
|
+
var import_node_fs = require("fs");
|
|
23700
|
+
var import_node_path2 = require("path");
|
|
23701
|
+
|
|
23698
23702
|
// ../../node_modules/.pnpm/commander@11.1.0/node_modules/commander/esm.mjs
|
|
23699
23703
|
var import_index = __toESM(require_commander(), 1);
|
|
23700
23704
|
var {
|
|
@@ -23712,84 +23716,6 @@ var {
|
|
|
23712
23716
|
Help
|
|
23713
23717
|
} = import_index.default;
|
|
23714
23718
|
|
|
23715
|
-
// package.json
|
|
23716
|
-
var package_default = {
|
|
23717
|
-
name: "nvii",
|
|
23718
|
-
version: "2.0.1",
|
|
23719
|
-
description: "Secure environment variable management CLI for modern development teams",
|
|
23720
|
-
keywords: [
|
|
23721
|
-
"environment",
|
|
23722
|
-
"variables",
|
|
23723
|
-
"env",
|
|
23724
|
-
"cli",
|
|
23725
|
-
"security",
|
|
23726
|
-
"encryption",
|
|
23727
|
-
"development"
|
|
23728
|
-
],
|
|
23729
|
-
homepage: "https://nvii.dev",
|
|
23730
|
-
repository: {
|
|
23731
|
-
type: "git",
|
|
23732
|
-
url: "https://github.com/skaleway/nvii.git",
|
|
23733
|
-
directory: "packages/cli"
|
|
23734
|
-
},
|
|
23735
|
-
main: "./dist/index.js",
|
|
23736
|
-
bin: {
|
|
23737
|
-
nvii: "./dist/index.js"
|
|
23738
|
-
},
|
|
23739
|
-
types: "./dist/index.d.ts",
|
|
23740
|
-
module: "./dist/index.mjs",
|
|
23741
|
-
private: false,
|
|
23742
|
-
scripts: {
|
|
23743
|
-
build: "tsup",
|
|
23744
|
-
dev: "tsc && pnpm chmod && tsc -w",
|
|
23745
|
-
chmod: "chmod +x dist/index.js",
|
|
23746
|
-
"test:dev": "./dist/index.js --help",
|
|
23747
|
-
"start:dev": "ts-node src/index.ts || true",
|
|
23748
|
-
start: "node dist/index.js || true"
|
|
23749
|
-
},
|
|
23750
|
-
files: [
|
|
23751
|
-
"README.md",
|
|
23752
|
-
"LICENSE",
|
|
23753
|
-
"./dist"
|
|
23754
|
-
],
|
|
23755
|
-
license: "ISC",
|
|
23756
|
-
devDependencies: {
|
|
23757
|
-
"@nvii/db": "workspace:*",
|
|
23758
|
-
"@nvii/env-helpers": "workspace:*",
|
|
23759
|
-
"@nvii/typescript-config": "workspace:*",
|
|
23760
|
-
"@swc/core": "^1.3.99",
|
|
23761
|
-
"@types/node": "^20.17.10",
|
|
23762
|
-
"@types/update-notifier": "^6.0.8",
|
|
23763
|
-
commander: "^11.1.0",
|
|
23764
|
-
concurrently: "^9.2.0",
|
|
23765
|
-
nodemon: "^3.1.10",
|
|
23766
|
-
"ts-node": "^10.9.2",
|
|
23767
|
-
"ts-node-dev": "^2.0.0",
|
|
23768
|
-
tsup: "^7.3.0",
|
|
23769
|
-
typescript: "^5.7.2"
|
|
23770
|
-
},
|
|
23771
|
-
dependencies: {
|
|
23772
|
-
"async-listen": "^3.0.1",
|
|
23773
|
-
axios: "^1.7.9",
|
|
23774
|
-
cfonts: "^3.3.1",
|
|
23775
|
-
chalk: "^5.6.2",
|
|
23776
|
-
"chalk-animation": "^2.0.3",
|
|
23777
|
-
"cli-progress": "^3.12.0",
|
|
23778
|
-
"cli-spinner-lite": "^0.1.0",
|
|
23779
|
-
"cli-table3": "^0.6.5",
|
|
23780
|
-
dotenv: "^16.4.7",
|
|
23781
|
-
figlet: "^1.9.4",
|
|
23782
|
-
inquirer: "^12.4.3",
|
|
23783
|
-
"inquirer-autocomplete-prompt": "^3.0.1",
|
|
23784
|
-
"log-update": "^7.0.2",
|
|
23785
|
-
nanoid: "^3.3.7",
|
|
23786
|
-
open: "^11.0.0",
|
|
23787
|
-
ora: "^7.0.1",
|
|
23788
|
-
picocolors: "^1.0.0",
|
|
23789
|
-
"update-notifier": "7.3.1"
|
|
23790
|
-
}
|
|
23791
|
-
};
|
|
23792
|
-
|
|
23793
23719
|
// ../env-helpers/dist/index.mjs
|
|
23794
23720
|
var import_crypto = __toESM(require("crypto"), 1);
|
|
23795
23721
|
var import_fs2 = require("fs");
|
|
@@ -26830,9 +26756,9 @@ function getProjectInfoFromPackageJson(projectPath) {
|
|
|
26830
26756
|
let projectDescription = "";
|
|
26831
26757
|
if ((0, import_fs2.existsSync)((0, import_path.join)(projectPath, "package.json"))) {
|
|
26832
26758
|
const packageJsonPath = (0, import_path.join)(projectPath, "package.json");
|
|
26833
|
-
const
|
|
26834
|
-
projectName =
|
|
26835
|
-
projectDescription =
|
|
26759
|
+
const packageJson2 = JSON.parse((0, import_fs2.readFileSync)(packageJsonPath, "utf8"));
|
|
26760
|
+
projectName = packageJson2.name;
|
|
26761
|
+
projectDescription = packageJson2.description;
|
|
26836
26762
|
} else {
|
|
26837
26763
|
projectName = projectPath.split("/").pop();
|
|
26838
26764
|
}
|
|
@@ -28653,9 +28579,14 @@ function displayBanner() {
|
|
|
28653
28579
|
}
|
|
28654
28580
|
|
|
28655
28581
|
// src/index.ts
|
|
28582
|
+
function loadPackageJson() {
|
|
28583
|
+
const packageJsonPath = (0, import_node_path2.join)(__dirname, "..", "package.json");
|
|
28584
|
+
return JSON.parse((0, import_node_fs.readFileSync)(packageJsonPath, "utf8"));
|
|
28585
|
+
}
|
|
28586
|
+
var packageJson = loadPackageJson();
|
|
28656
28587
|
var program2 = new Command();
|
|
28657
|
-
var cliVersion =
|
|
28658
|
-
checkForUpdates({ pkg:
|
|
28588
|
+
var cliVersion = packageJson.version || "1.0.0";
|
|
28589
|
+
checkForUpdates({ pkg: packageJson });
|
|
28659
28590
|
displayBanner();
|
|
28660
28591
|
program2.name("nvii").version(cliVersion).option("-v, --verbose", "Enable verbose output").option("-q, --quiet", "Suppress non-essential output").option("--config <path>", "Path to configuration file").option("--no-color", "Disable colored output").configureHelp({
|
|
28661
28592
|
sortSubcommands: true,
|