@codexsploitx/schemaapi 1.1.9 → 1.1.10
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 +6 -1
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -7111,7 +7111,12 @@ function loadContractsModule(contractsDir) {
|
|
|
7111
7111
|
// In a real TS environment, we might need ts-node/register if loading .ts directly
|
|
7112
7112
|
// But assuming the user has compiled code or we are running in a compatible env:
|
|
7113
7113
|
if (file.endsWith('.ts')) {
|
|
7114
|
-
|
|
7114
|
+
try {
|
|
7115
|
+
require('ts-node/register');
|
|
7116
|
+
}
|
|
7117
|
+
catch (e) {
|
|
7118
|
+
// Ignore if ts-node is not available, might be handled by node loader
|
|
7119
|
+
}
|
|
7115
7120
|
}
|
|
7116
7121
|
return require(fullPath);
|
|
7117
7122
|
}
|