@layerzerolabs/build-utils-rust 1.2.38 → 1.2.40

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@layerzerolabs/build-utils-rust",
3
- "version": "1.2.38",
3
+ "version": "1.2.40",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -18,14 +18,15 @@
18
18
  "dependencies": {
19
19
  "commander": "13.1.0",
20
20
  "smol-toml": "^1.7.0",
21
- "@layerzerolabs/logger-node": "1.2.38"
21
+ "@layerzerolabs/logger-node": "1.2.40"
22
22
  },
23
23
  "devDependencies": {
24
+ "@types/node": "^24.13.3",
24
25
  "tsup": "^8.4.0",
25
26
  "tsx": "^4.21.0",
26
27
  "vitest": "^4.1.10",
27
- "@layerzerolabs/tsup-configuration": "1.2.38",
28
- "@layerzerolabs/typescript-configuration": "1.2.38"
28
+ "@layerzerolabs/typescript-configuration": "1.2.40",
29
+ "@layerzerolabs/tsup-configuration": "1.2.40"
29
30
  },
30
31
  "publishConfig": {
31
32
  "access": "restricted",
@@ -36,6 +37,7 @@
36
37
  "audit-external",
37
38
  "console-pen-test",
38
39
  "console-solana-v1-internal",
40
+ "everdawn-externalization",
39
41
  "gasolina-audit",
40
42
  "lz-labs-sidecar",
41
43
  "monorepo-external",
@@ -1,4 +1,5 @@
1
- import { mkdirSync, rmSync, writeFileSync } from 'fs';
1
+ import { mkdirSync, mkdtempSync, realpathSync, rmSync, writeFileSync } from 'fs';
2
+ import os from 'os';
2
3
  import { join } from 'path';
3
4
  import { afterEach, beforeEach, describe, expect, it } from 'vitest';
4
5
 
@@ -11,7 +12,9 @@ import {
11
12
  } from '../../src/resolve/discover';
12
13
  import { collectFiles } from '../../src/resolve/io';
13
14
 
14
- const TMP = join(__dirname, '__tmp_discover__');
15
+ // Unique per run so concurrent runs (other checkouts, worktrees) can't delete each other's fixtures.
16
+ // realpath'd because resolve/ looks paths up by their real path — macOS /var/folders is a symlink.
17
+ const TMP = realpathSync(mkdtempSync(join(os.tmpdir(), 'build-utils-discover-')));
15
18
 
16
19
  const createFile = (path: string, content = '') => {
17
20
  mkdirSync(join(path, '..'), { recursive: true });
@@ -1,4 +1,13 @@
1
- import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from 'fs';
1
+ import {
2
+ existsSync,
3
+ mkdirSync,
4
+ mkdtempSync,
5
+ readFileSync,
6
+ realpathSync,
7
+ rmSync,
8
+ writeFileSync,
9
+ } from 'fs';
10
+ import os from 'os';
2
11
  import { join } from 'path';
3
12
  import { parse } from 'smol-toml';
4
13
  import { afterEach, beforeEach, describe, expect, it } from 'vitest';
@@ -6,7 +15,9 @@ import { afterEach, beforeEach, describe, expect, it } from 'vitest';
6
15
  import { resolveDependencies } from '../../src/resolve';
7
16
  import { fixture } from './fixtures';
8
17
 
9
- const TMP = join(__dirname, '__tmp_resolve__');
18
+ // Unique per run so concurrent runs (other checkouts, worktrees) can't delete each other's fixtures.
19
+ // realpath'd because resolve/ looks paths up by their real path — macOS /var/folders is a symlink.
20
+ const TMP = realpathSync(mkdtempSync(join(os.tmpdir(), 'build-utils-resolve-')));
10
21
 
11
22
  const createCrate = (path: string, cargoContent: string) => {
12
23
  mkdirSync(path, { recursive: true });
@@ -1,4 +1,5 @@
1
- import { mkdirSync, readFileSync, rmSync, writeFileSync } from 'fs';
1
+ import { mkdirSync, mkdtempSync, readFileSync, realpathSync, rmSync, writeFileSync } from 'fs';
2
+ import os from 'os';
2
3
  import { join } from 'path';
3
4
  import { parse } from 'smol-toml';
4
5
  import { afterEach, beforeEach, describe, expect, it } from 'vitest';
@@ -8,7 +9,9 @@ import type { RewriteContext } from '../../src/resolve/rewrite';
8
9
  import { rewriteCargoToml, rewriteCargoTomls } from '../../src/resolve/rewrite';
9
10
  import { fixture } from './fixtures';
10
11
 
11
- const TMP = join(__dirname, '__tmp_rewrite__');
12
+ // Unique per run so concurrent runs (other checkouts, worktrees) can't delete each other's fixtures.
13
+ // realpath'd because resolve/ looks paths up by their real path — macOS /var/folders is a symlink.
14
+ const TMP = realpathSync(mkdtempSync(join(os.tmpdir(), 'build-utils-rewrite-')));
12
15
 
13
16
  const writeToml = (path: string, content: string) => {
14
17
  mkdirSync(join(path, '..'), { recursive: true });