@realtimex/email-automator 2.1.0 → 2.1.1

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.
@@ -32,8 +32,13 @@ console.log('');
32
32
  // Path to server
33
33
  const serverPath = join(__dirname, '..', 'api', 'server.ts');
34
34
 
35
- // Start server with tsx
36
- const server = spawn('npx', ['tsx', serverPath, ...args], {
35
+ // Resolve tsx binary path
36
+ // In npx/installed mode, it will be in ../node_modules/.bin/tsx
37
+ // In dev mode, it will be in ../node_modules/.bin/tsx
38
+ const tsxPath = join(__dirname, '..', 'node_modules', '.bin', 'tsx');
39
+
40
+ // Start server with resolved tsx
41
+ const server = spawn(tsxPath, [serverPath, ...args], {
37
42
  stdio: 'inherit',
38
43
  env: { ...process.env, PORT: port },
39
44
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@realtimex/email-automator",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "type": "module",
5
5
  "main": "api/server.ts",
6
6
  "bin": {
@@ -18,7 +18,6 @@
18
18
  "public",
19
19
  ".env.example",
20
20
  "tsconfig.json",
21
- "tsconfig.api.json",
22
21
  "vite.config.ts",
23
22
  "tailwind.config.ts",
24
23
  "postcss.config.js",
@@ -26,6 +25,9 @@
26
25
  "README.md",
27
26
  "LICENSE"
28
27
  ],
28
+ "publishConfig": {
29
+ "access": "public"
30
+ },
29
31
  "scripts": {
30
32
  "dev": "vite",
31
33
  "dev:api": "tsx watch api/server.ts",