@tradejs/cli 1.0.0 → 1.0.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.
- package/dist/cli.js +4 -0
- package/dist/scripts/backtest.js +4 -0
- package/package.json +10 -1
package/dist/cli.js
CHANGED
|
@@ -1674,7 +1674,11 @@ var init_backtest = __esm({
|
|
|
1674
1674
|
progressStep = flags.progressStep;
|
|
1675
1675
|
uuid = (len = 12) => (0, import_uuid.v4)().slice(-len);
|
|
1676
1676
|
testerWorkerPathCandidates = [
|
|
1677
|
+
// `tradejs` bin runs from dist/cli.js, so bundled commands resolve from `dist`.
|
|
1678
|
+
import_path.default.resolve(__dirname, "./workers/testerWorker.js"),
|
|
1679
|
+
// Direct execution of dist/scripts/backtest.js resolves from `dist/scripts`.
|
|
1677
1680
|
import_path.default.resolve(__dirname, "../workers/testerWorker.js"),
|
|
1681
|
+
// ts-node execution resolves from `src/scripts`.
|
|
1678
1682
|
import_path.default.resolve(__dirname, "../workers/testerWorker.ts")
|
|
1679
1683
|
];
|
|
1680
1684
|
testerWorkerPath = testerWorkerPathCandidates.find(
|
package/dist/scripts/backtest.js
CHANGED
|
@@ -1661,7 +1661,11 @@ var interval = flags.timeframe.toString();
|
|
|
1661
1661
|
var progressStep = flags.progressStep;
|
|
1662
1662
|
var uuid = (len = 12) => (0, import_uuid.v4)().slice(-len);
|
|
1663
1663
|
var testerWorkerPathCandidates = [
|
|
1664
|
+
// `tradejs` bin runs from dist/cli.js, so bundled commands resolve from `dist`.
|
|
1665
|
+
import_path.default.resolve(__dirname, "./workers/testerWorker.js"),
|
|
1666
|
+
// Direct execution of dist/scripts/backtest.js resolves from `dist/scripts`.
|
|
1664
1667
|
import_path.default.resolve(__dirname, "../workers/testerWorker.js"),
|
|
1668
|
+
// ts-node execution resolves from `src/scripts`.
|
|
1665
1669
|
import_path.default.resolve(__dirname, "../workers/testerWorker.ts")
|
|
1666
1670
|
];
|
|
1667
1671
|
var testerWorkerPath = testerWorkerPathCandidates.find(
|
package/package.json
CHANGED
|
@@ -1,7 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tradejs/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Official TradeJS CLI for infra setup, backtests, signals, bots, and ML workflows.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"tradejs",
|
|
7
|
+
"trading",
|
|
8
|
+
"backtesting",
|
|
9
|
+
"cli",
|
|
10
|
+
"signals",
|
|
11
|
+
"bot",
|
|
12
|
+
"automation"
|
|
13
|
+
],
|
|
5
14
|
"homepage": "https://tradejs.dev",
|
|
6
15
|
"main": "dist/cli.js",
|
|
7
16
|
"types": "dist/cli.d.ts",
|