cogpit-memory 0.1.0 → 0.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.
- package/dist/cli.js +3 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2215,8 +2215,9 @@ Commands:
|
|
|
2215
2215
|
`);
|
|
2216
2216
|
}
|
|
2217
2217
|
var isBunCompiled = false;
|
|
2218
|
-
var
|
|
2219
|
-
|
|
2218
|
+
var isNodeScript = process.argv[1]?.endsWith("/cli.ts") || process.argv[1]?.endsWith("/cli.js");
|
|
2219
|
+
var isCjsMain = typeof require !== "undefined" && typeof module !== "undefined" && require.main === module;
|
|
2220
|
+
if (isBunCompiled || isNodeScript || isCjsMain) {
|
|
2220
2221
|
main().catch((err) => {
|
|
2221
2222
|
console.error(JSON.stringify({ error: String(err) }));
|
|
2222
2223
|
process.exit(1);
|
package/package.json
CHANGED