xero-cli-bin 0.0.0 → 1.7.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/bin/xero-cli +0 -17
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xero-cli-bin",
3
- "version": "0.0.0",
3
+ "version": "1.7.1",
4
4
  "description": "Xero Accounting API CLI - Xero 會計 API 命令行工具",
5
5
  "bin": {
6
6
  "xero-cli": "./bin/xero-cli"
package/bin/xero-cli DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- const { spawn } = require('child_process');
4
- const { join } = require('path');
5
- const { platform } = process;
6
-
7
- const ext = platform === 'win32' ? '.exe' : '';
8
- const binaryPath = join(__dirname, `xero-cli${ext}`);
9
-
10
- spawn(binaryPath, process.argv.slice(2), { stdio: 'inherit' })
11
- .on('error', (err) => {
12
- console.error('Failed to start xero-cli:', err.message);
13
- process.exit(1);
14
- })
15
- .on('close', (code) => {
16
- process.exit(code);
17
- });