Skip to content

Commit 4c2c7ea

Browse files
committed
chore(cleanup): delete 4 more dead constants surfaced after colocations
- cli/scripts/constants/paths.mts: rootPackageJsonPath, rootPackageLockPath, socketRegistryPath + 3 now-unused imports (PACKAGE_JSON, PNPM_LOCK_YAML, SOCKET_REGISTRY_PACKAGE_NAME) - build-infra/lib/platform-targets.mts: VALID_RELEASE_PLATFORMS
1 parent e95173d commit 4c2c7ea

2 files changed

Lines changed: 1 addition & 19 deletions

File tree

packages/build-infra/lib/platform-targets.mts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,6 @@ function getReleasePlatform(platform) {
134134
*/
135135
const VALID_PLATFORMS = ['darwin', 'linux', 'win32']
136136

137-
/**
138-
* Valid release platforms (for file/folder/npm naming).
139-
*/
140-
const VALID_RELEASE_PLATFORMS = ['darwin', 'linux', 'win']
141-
142137
/**
143138
* Valid architectures.
144139
*/

packages/cli/scripts/constants/paths.mts

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@ import os from 'node:os'
66
import path from 'node:path'
77
import { fileURLToPath } from 'node:url'
88

9-
import {
10-
NODE_MODULES,
11-
PACKAGE_JSON,
12-
PNPM_LOCK_YAML,
13-
SOCKET_REGISTRY_PACKAGE_NAME,
14-
} from './packages.mts'
9+
import { NODE_MODULES } from './packages.mts'
1510

1611
// Compute root path from this file's location.
1712
const __dirname = path.dirname(fileURLToPath(import.meta.url))
@@ -23,16 +18,8 @@ export const externalPath = path.join(rootPath, 'external')
2318
export const srcPath = path.join(rootPath, 'src')
2419

2520
// Package and lockfile paths.
26-
const rootPackageJsonPath = path.join(rootPath, PACKAGE_JSON)
27-
const rootPackageLockPath = path.join(rootPath, PNPM_LOCK_YAML)
2821
export const rootNodeModulesBinPath = path.join(rootPath, NODE_MODULES, '.bin')
2922

30-
// Socket registry path (in external, not dist).
31-
const socketRegistryPath = path.join(
32-
externalPath,
33-
SOCKET_REGISTRY_PACKAGE_NAME,
34-
)
35-
3623
// Cache directory paths.
3724
const SOCKET_CACHE_DIR = path.join(homedir(), '.socket')
3825
export const SOCKET_CLI_SEA_BUILD_DIR = path.join(

0 commit comments

Comments
 (0)