create-tradejs 3.1.30-beta.318 → 3.1.30-beta.320
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/index.js +17 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -387,12 +387,26 @@ var buildProjectFiles = (targetDir, port, infrastructurePorts = DEFAULT_INFRASTR
|
|
|
387
387
|
const infraPackage = String(
|
|
388
388
|
process.env.CREATE_TRADEJS_INFRA_PACKAGE || ""
|
|
389
389
|
).trim();
|
|
390
|
+
const frameworkVersion = process.env.CREATE_TRADEJS_FRAMEWORK_VERSION?.trim();
|
|
391
|
+
const frameworkDependencies = frameworkVersion ? Object.fromEntries(
|
|
392
|
+
[
|
|
393
|
+
"app",
|
|
394
|
+
"cli",
|
|
395
|
+
"connectors",
|
|
396
|
+
"core",
|
|
397
|
+
"indicators",
|
|
398
|
+
"infra",
|
|
399
|
+
"node",
|
|
400
|
+
"types"
|
|
401
|
+
].map((name) => [`@tradejs/${name}`, frameworkVersion])
|
|
402
|
+
) : {};
|
|
390
403
|
const dependencies = {
|
|
391
404
|
"@tradejs/app": packageSpec("APP"),
|
|
392
405
|
"@tradejs/base": packageSpec("BASE"),
|
|
393
406
|
"@tradejs/cli": packageSpec("CLI"),
|
|
394
407
|
"@tradejs/core": packageSpec("CORE"),
|
|
395
|
-
...infraPackage ? { "@tradejs/infra": infraPackage } : {}
|
|
408
|
+
...infraPackage ? { "@tradejs/infra": infraPackage } : {},
|
|
409
|
+
...frameworkDependencies
|
|
396
410
|
};
|
|
397
411
|
return {
|
|
398
412
|
"package.json": `${JSON.stringify(
|
|
@@ -409,6 +423,8 @@ var buildProjectFiles = (targetDir, port, infrastructurePorts = DEFAULT_INFRASTR
|
|
|
409
423
|
"infra-down": "tradejs infra-down"
|
|
410
424
|
},
|
|
411
425
|
dependencies,
|
|
426
|
+
// Stable peer ranges may otherwise pull another copy beside a beta.
|
|
427
|
+
...frameworkVersion?.includes("-beta.") ? { overrides: frameworkDependencies } : {},
|
|
412
428
|
engines: {
|
|
413
429
|
node: "24.x"
|
|
414
430
|
}
|