@airmoney-degn/airmoney-cli 0.16.1 → 0.16.2

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.
@@ -38,21 +38,25 @@ const fs = __importStar(require("fs"));
38
38
  const path = __importStar(require("path"));
39
39
  const types_1 = require("../types");
40
40
  const child_process_1 = require("child_process");
41
- async function createCommand({ name, template, locationFolder, quiet, ignoreEnvValidation, }) {
41
+ async function createCommand({ name, template, locationFolder, quiet,
42
+ // ignoreEnvValidation,
43
+ }) {
42
44
  // read from env (the .env was placed in config by `setup`).
43
- const userId = process.env.DEVELOPER_ADDRESS || '';
44
- const apiKey = process.env.API_KEY || '';
45
- if (!ignoreEnvValidation) {
46
- if (!userId || !apiKey) {
47
- console.error("Missing user or API key from env. Did you run 'airmoney-cli setup'?");
48
- process.exit(1);
49
- }
50
- }
45
+ // const userId = process.env.DEVELOPER_ADDRESS || '';
46
+ // const apiKey = process.env.API_KEY || '';
47
+ // if (!ignoreEnvValidation) {
48
+ // if (!userId || !apiKey) {
49
+ // console.error(
50
+ // "Missing user or API key from env. Did you run 'airmoney-cli setup'?"
51
+ // );
52
+ // process.exit(1);
53
+ // }
54
+ // }
51
55
  const identifier = `com.degn.${name}`;
52
56
  console.log(`Initializing project: ${name}`);
53
- if (!ignoreEnvValidation) {
54
- console.log(`Using .env user: ${userId}`);
55
- }
57
+ // if (!ignoreEnvValidation) {
58
+ // console.log(`Using .env user: ${userId}`);
59
+ // }
56
60
  const folderName = locationFolder || name;
57
61
  const projectPath = path.join(process.cwd(), folderName);
58
62
  if (template) {
package/dist/cli/demo.js CHANGED
@@ -47,7 +47,7 @@ async function demoCommand({ name, appPath }) {
47
47
  template: true,
48
48
  locationFolder: appPath,
49
49
  quiet: true,
50
- ignoreEnvValidation: true,
50
+ // ignoreEnvValidation: true,
51
51
  });
52
52
  try {
53
53
  console.log('Installing dependencies...');
package/dist/config.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.16.1"
2
+ "version": "0.16.2"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airmoney-degn/airmoney-cli",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
4
4
  "description": "airmoney-cli is a command-line interface tool designed to facilitate the development and management of decentralized applications (DApps) for Airmoney.",
5
5
  "publishConfig": {
6
6
  "access": "public"