@memlab/cli 1.0.11 → 1.0.13

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/bin/memlab.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S node --expose-gc --max-old-space-size=4096
1
+ #!/usr/bin/env node --expose-gc --max-old-space-size=4096
2
2
 
3
3
  /**
4
4
  * Copyright (c) Meta Platforms, Inc. and affiliates.
@@ -52,6 +52,7 @@ const SnapshotFileOption_1 = __importDefault(require("../../../options/heap/Snap
52
52
  const JSEngineOption_1 = __importDefault(require("../../../options/heap/JSEngineOption"));
53
53
  const CliScreen_1 = __importDefault(require("./ui-components/CliScreen"));
54
54
  const HeapNodeIdOption_1 = __importDefault(require("../../../options/HeapNodeIdOption"));
55
+ const MLClusteringOption_1 = __importDefault(require("../../../options/MLClusteringOption"));
55
56
  class InteractiveHeapViewCommand extends BaseCommand_1.default {
56
57
  getCommandName() {
57
58
  return 'view-heap';
@@ -70,6 +71,7 @@ class InteractiveHeapViewCommand extends BaseCommand_1.default {
70
71
  new SnapshotFileOption_1.default(),
71
72
  new JSEngineOption_1.default(),
72
73
  new HeapNodeIdOption_1.default(),
74
+ new MLClusteringOption_1.default(),
73
75
  ];
74
76
  }
75
77
  // get the heap snapshot to view
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memlab/cli",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "license": "MIT",
5
5
  "description": "command line interface for memlab",
6
6
  "author": "Liang Gong <lgong@fb.com>",
@@ -56,6 +56,7 @@
56
56
  "directory": "packages/cli"
57
57
  },
58
58
  "scripts": {
59
+ "preinstall": "node bin/preinstall",
59
60
  "build-pkg": "tsc",
60
61
  "publish-patch": "npm version patch --force && npm publish",
61
62
  "clean-pkg": "rm -rf ./dist && rm -rf ./node_modules && rm -f ./tsconfig.tsbuildinfo"