antelope-cli 1.0.8 → 1.0.11

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/index.js CHANGED
@@ -1,5 +1,8 @@
1
1
  #!/usr/bin/env node
2
2
 
3
+ const path = require('path');
4
+ require('dotenv').config({ path: path.resolve(__dirname, '.env') });
5
+
3
6
  const args = process.argv.slice(2);
4
7
 
5
8
  if (args[0] === "onboarding") {
@@ -4,7 +4,6 @@ const chalk = require('chalk');
4
4
  const path = require('path');
5
5
  const fetch = require('node-fetch');
6
6
  const unzipper = require('unzipper');
7
- const configs = require('../config');
8
7
 
9
8
  async function start(rl) {
10
9
  try {
@@ -61,7 +60,7 @@ function getFaviconRequest(brand, imagePath) {
61
60
  console.log(process.env);
62
61
  return {
63
62
  favicon_generation: {
64
- api_key: configs.FAVICON_API_KEY,
63
+ api_key: process.env.FAVICON_API_KEY,
65
64
  master_picture: {
66
65
  type: 'url',
67
66
  url: imagePath
@@ -38,6 +38,8 @@ const finishOnboarding = () => {
38
38
  };
39
39
 
40
40
  const startOnBoarding = async () => {
41
+ require('dotenv').config();
42
+
41
43
  console.log(chalk.underline(chalk.cyan("Welcome to Antelope's on-boarding bot \n")));
42
44
  try {
43
45
  console.log(chalk.bold(chalk.yellow('\nStep 1: Add to variables-colors.scss')));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antelope-cli",
3
- "version": "1.0.8",
3
+ "version": "1.0.11",
4
4
  "description": "CLI-Tool for automating processes for Antelope-Systems ",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -21,6 +21,7 @@
21
21
  "homepage": "https://bitbucket.org/xsitesinc/antelope-cli#readme",
22
22
  "dependencies": {
23
23
  "chalk": "^2.0.0",
24
+ "dotenv": "^16.4.5",
24
25
  "node-fetch": "^2.6.1",
25
26
  "unzipper": "^0.12.1"
26
27
  }