@jayfong/x-server 2.12.16 → 2.12.18

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.
@@ -6,7 +6,7 @@ exports.DevUtil = void 0;
6
6
  var _execa = _interopRequireDefault(require("execa"));
7
7
  class DevUtil {
8
8
  static runFile(options) {
9
- return options.runner === 'tsx' ? (0, _execa.default)('tsx', [options.file], {
9
+ return options.runner === 'tsx' ? (0, _execa.default)('node', [require.resolve('tsx/package.json').replace('/package.json', '/dist/cli.js'), options.file], {
10
10
  cwd: options.cwd,
11
11
  stdio: 'inherit'
12
12
  }) : (0, _execa.default)('node', ['-r', require.resolve("./esbuild_register"), options.file], {
@@ -1,7 +1,7 @@
1
1
  import execa from 'execa';
2
2
  export class DevUtil {
3
3
  static runFile(options) {
4
- return options.runner === 'tsx' ? execa('tsx', [options.file], {
4
+ return options.runner === 'tsx' ? execa('node', [require.resolve('tsx/package.json').replace('/package.json', '/dist/cli.js'), options.file], {
5
5
  cwd: options.cwd,
6
6
  stdio: 'inherit'
7
7
  }) : execa('node', ['-r', require.resolve("./esbuild_register"), options.file], {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jayfong/x-server",
3
- "version": "2.12.16",
3
+ "version": "2.12.18",
4
4
  "license": "ISC",
5
5
  "sideEffects": false,
6
6
  "main": "lib/_cjs/index.js",
@@ -23,7 +23,7 @@
23
23
  "@fastify/formbody": "^7.4.0",
24
24
  "@fastify/multipart": "^7.7.0",
25
25
  "@fastify/websocket": "^8.1.0",
26
- "@jayfong/x-request": "^2.12.16",
26
+ "@jayfong/x-request": "^2.12.18",
27
27
  "@prisma/client": "^4.8.0",
28
28
  "@types/busboy": "^0.3.2",
29
29
  "@types/cron": "^2.0.0",
@@ -64,6 +64,7 @@
64
64
  "supports-color": "^8",
65
65
  "svg-captcha": "^1.4.0",
66
66
  "ts-morph": "^12.2.0",
67
+ "tsx": "^3.12.7",
67
68
  "utf-8-validate": "^5.0.9",
68
69
  "vscode-generate-index-standalone": "^1.7.1",
69
70
  "vtils": "^4.85.3",