@paralect/hive 0.1.0 → 0.1.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.
Files changed (2) hide show
  1. package/cli/hive.js +4 -2
  2. package/package.json +3 -1
package/cli/hive.js CHANGED
@@ -8,6 +8,7 @@ const mergeDirs = require('./helpers/mergeDirs');
8
8
  const execCommand = require('./helpers/execCommand');
9
9
  const downloadDirectory = require('./helpers/downloadDirectory');
10
10
  const axios = require('axios');
11
+ const tsx = require('tsx/cjs/api')
11
12
 
12
13
  program
13
14
  .command('run [dirPath]')
@@ -15,8 +16,9 @@ program
15
16
  .action(async (dirPath = '.') => {
16
17
  try {
17
18
  process.env.HIVE_SRC = path.resolve(process.cwd(), dirPath);
18
- execCommand(`npm run dev --prefix ${path.resolve(__dirname, '../starter')}`);
19
- // require('./../starter/src/app.js');
19
+ // execCommand(`npm run dev --prefix ${path.resolve(__dirname, '../starter')}`);
20
+
21
+ tsx.require('./../starter/src/app.js', __filename);
20
22
  } catch (error) {
21
23
  console.error('An error occurred:', error.message);
22
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paralect/hive",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -55,6 +55,8 @@
55
55
  "socket.io": "4.4.1",
56
56
  "socket.io-emitter": "3.2.0",
57
57
  "tail": "2.2.4",
58
+ "tsx": "^4.16.2",
59
+ "typescript": "^5.5.4",
58
60
  "winston": "3.6.0",
59
61
  "zod": "^3.23.8"
60
62
  },