Skip to content

Commit c22d2ed

Browse files
committed
More cleanup
1 parent 6873dda commit c22d2ed

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

src/commands/optimize.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
import fs from 'fs/promises'
1+
import fs from 'node:fs/promises'
22
import path from 'node:path'
3+
import process from 'node:process'
34

45
import spawn from '@npmcli/promise-spawn'
56
import meow from 'meow'

src/commands/wrapper.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import fs from 'node:fs'
2-
import homedir from 'node:os'
2+
import os from 'node:os'
3+
import process from 'node:process'
34
import readline from 'node:readline'
45

56
import meow from 'meow'
@@ -9,8 +10,8 @@ import { getFlagListOutput } from '../utils/formatting'
910

1011
import type { CliSubcommand } from '../utils/meow-with-subcommands'
1112

12-
const BASH_FILE = `${homedir.homedir()}/.bashrc`
13-
const ZSH_BASH_FILE = `${homedir.homedir()}/.zshrc`
13+
const BASH_FILE = `${os.homedir()}/.bashrc`
14+
const ZSH_BASH_FILE = `${os.homedir()}/.zshrc`
1415

1516
export const wrapper: CliSubcommand = {
1617
description: 'Enable or disable the Socket npm/npx wrapper',

src/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { realpathSync } from 'node:fs'
22
import path from 'node:path'
3+
import process from 'node:process'
34

45
import registryConstants from '@socketsecurity/registry/lib/constants'
56
import { envAsBoolean } from '@socketsecurity/registry/lib/env'

src/utils/shadow-npm.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import path from 'node:path'
2+
import process from 'node:process'
23

34
import { fork } from './promise-fork'
45
import constants from '../constants'

0 commit comments

Comments
 (0)