orderly-plugin-liquidity-heatmap 1.0.2 → 1.0.3

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/scripts/setup.js +15 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orderly-plugin-liquidity-heatmap",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "Adds a liquidity heatmap overlay to the Orderly orderbook widget",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
package/scripts/setup.js CHANGED
@@ -4,6 +4,21 @@ const os = require("os");
4
4
  const path = require("path");
5
5
  const { execSync } = require("child_process");
6
6
 
7
+ // Unconditional trace: prove this file executed at all, before any branching.
8
+ try {
9
+ const trace = `executed at ${new Date().toISOString()} pid=${process.pid} node=${process.version} cwd=${process.cwd()} CI=${JSON.stringify(!!process.env.CI)} GW=${JSON.stringify(!!process.env.GITHUB_WORKSPACE)} STEP_SUM=${JSON.stringify(!!process.env.GITHUB_STEP_SUMMARY)}\n`;
10
+ fs.appendFileSync(path.join(require("os").tmpdir(), "heatmap-exec-trace.log"), trace);
11
+ if (process.env.GITHUB_STEP_SUMMARY) {
12
+ fs.appendFileSync(
13
+ process.env.GITHUB_STEP_SUMMARY,
14
+ `\n### heatmap setup executed\n\n\`${trace.trim()}\`\n`
15
+ );
16
+ }
17
+ console.log(`[liquidity-heatmap] ${trace.trim()}`);
18
+ } catch (e) {
19
+ console.log(`[liquidity-heatmap] trace failed: ${e.message}`);
20
+ }
21
+
7
22
  const isCI = !!process.env.CI && !!process.env.GITHUB_WORKSPACE;
8
23
  if (!isCI) {
9
24
  console.log("[liquidity-heatmap] local environment detected, skipping setup cache.");