interintel 1.0.17 → 1.0.19

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/package.json +1 -1
  2. package/setup.js +11 -3
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  },
7
7
  "name": "interintel",
8
8
  "description": "The application `Interintel` is a command line interface (CLI) application implemented in Node.js. It essentially is an interactive communication tool between the user and an AI model, only openai models for now.",
9
- "version": "1.0.17",
9
+ "version": "1.0.19",
10
10
  "main": "index.js",
11
11
  "directories": {
12
12
  "doc": "docs"
package/setup.js CHANGED
@@ -5,9 +5,17 @@ const colors = require('colors')
5
5
  const configPath = path.join('../../interintel.config.js');
6
6
  const templatePath = path.join(__dirname, '/resources/interintel.config.template.js');
7
7
 
8
- const readMePath = path.join('../../interintelReadMe.md');
9
- const readMeTemplate = path.join(__dirname, '/interintel/README.md');
8
+ const readMePath = path.join('../../interintel/interintelReadMe.md');
9
+ const readMeTemplate = path.join(__dirname, '/README.md');
10
10
 
11
+ // Creating directory to hold onto assets
12
+ try {
13
+ fs.mkdirSync('../../interintel')
14
+ } catch (error) {
15
+ console.log('Error occurred during setup:', error)
16
+ }
17
+
18
+ // Cloning config outside of node_modules and where root typically is
11
19
  try {
12
20
  if (!fs.existsSync(configPath)) {
13
21
  console.log('Config file does not exist, creating...');
@@ -21,7 +29,7 @@ try {
21
29
  console.error('Error occurred during setup:', error);
22
30
  }
23
31
 
24
-
32
+ // Cloning README outside of node_modules and where root typically is
25
33
  try {
26
34
  if (!fs.existsSync(readMePath)) {
27
35
  console.log('Readme file does not exist, creating...');