Skip to content

Commit 7476403

Browse files
committedJul 18, 2023
chore: lint
1 parent 5a03822 commit 7476403

File tree

7 files changed

+7
-1
lines changed

7 files changed

+7
-1
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@antfu/ni",
3-
"version": "0.21.4",
43
"type": "module",
4+
"version": "0.21.4",
55
"packageManager": "pnpm@8.6.8",
66
"description": "Use the right package manager",
77
"author": "Anthony Fu <anthonyfu117@hotmail.com>",

‎src/commands/nr.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import process from 'node:process'
12
import type { Choice } from '@posva/prompts'
23
import prompts from '@posva/prompts'
34
import c from 'kleur'

‎src/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import fs from 'node:fs'
22
import path from 'node:path'
3+
import process from 'node:process'
34
import ini from 'ini'
45
import { findUp } from 'find-up'
56
import type { Agent } from './agents'

‎src/detect.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import fs from 'node:fs'
22
import path from 'node:path'
3+
import process from 'node:process'
34
import { execaCommand } from 'execa'
45
import { findUp } from 'find-up'
56
import terminalLink from 'terminal-link'

‎src/fs.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { resolve } from 'node:path'
22
import fs from 'node:fs'
3+
import process from 'node:process'
34
import type { RunnerContext } from './runner'
45

56
export function getPackageJSON(ctx?: RunnerContext): any {

‎src/runner.ts

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable no-console */
22
import { resolve } from 'node:path'
3+
import process from 'node:process'
34
import prompts from '@posva/prompts'
45
import { execaCommand } from 'execa'
56
import c from 'kleur'

‎src/utils.ts

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import os from 'node:os'
22
import { dirname, join } from 'node:path'
33
import { existsSync, promises as fs } from 'node:fs'
44
import type { Buffer } from 'node:buffer'
5+
import process from 'node:process'
56
import which from 'which'
67

78
export const CLI_TEMP_DIR = join(os.tmpdir(), 'antfu-ni')

0 commit comments

Comments
 (0)
Please sign in to comment.