Comparing version 0.16.3 to 0.17.0
@@ -67,2 +67,15 @@ declare const AGENTS: { | ||
}; | ||
bun: { | ||
agent: string; | ||
run: string; | ||
install: string; | ||
frozen: string; | ||
global: string; | ||
add: string; | ||
upgrade: string; | ||
'upgrade-interactive': string; | ||
execute: string; | ||
uninstall: string; | ||
global_uninstall: string; | ||
}; | ||
}; | ||
@@ -76,3 +89,3 @@ declare type Agent = keyof typeof AGENTS; | ||
} | ||
declare function detect({ autoInstall, cwd }: DetectOptions): Promise<"npm" | "pnpm" | "yarn" | "yarn@berry" | "pnpm@6" | null>; | ||
declare function detect({ autoInstall, cwd }: DetectOptions): Promise<"npm" | "pnpm" | "yarn" | "yarn@berry" | "pnpm@6" | "bun" | null>; | ||
@@ -100,4 +113,4 @@ interface RunnerContext { | ||
declare function getConfig(): Promise<Config>; | ||
declare function getDefaultAgent(): Promise<"npm" | "pnpm" | "yarn" | "yarn@berry" | "pnpm@6" | "prompt">; | ||
declare function getGlobalAgent(): Promise<"npm" | "pnpm" | "yarn" | "yarn@berry" | "pnpm@6">; | ||
declare function getDefaultAgent(): Promise<"npm" | "pnpm" | "yarn" | "yarn@berry" | "pnpm@6" | "bun" | "prompt">; | ||
declare function getGlobalAgent(): Promise<"npm" | "pnpm" | "yarn" | "yarn@berry" | "pnpm@6" | "bun">; | ||
@@ -104,0 +117,0 @@ declare function remove<T>(arr: T[], v: T): T[]; |
{ | ||
"name": "@antfu/ni", | ||
"version": "0.16.3", | ||
"packageManager": "pnpm@7.0.0", | ||
"version": "0.17.0", | ||
"packageManager": "pnpm@7.4.0", | ||
"description": "Use the right package manager", | ||
"author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"license": "MIT", | ||
"author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"homepage": "https://github.com/antfu/ni#readme", | ||
"repository": { | ||
@@ -12,15 +13,14 @@ "type": "git", | ||
}, | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"bugs": { | ||
"url": "https://github.com/antfu/ni/issues" | ||
}, | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs" | ||
"require": "./dist/index.cjs", | ||
"import": "./dist/index.mjs" | ||
} | ||
}, | ||
"files": [ | ||
"dist", | ||
"bin" | ||
], | ||
"main": "dist/index.cjs", | ||
"module": "dist/index.mjs", | ||
"types": "dist/index.d.ts", | ||
"bin": { | ||
@@ -35,14 +35,24 @@ "ni": "bin/ni.mjs", | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/antfu/ni/issues" | ||
"files": [ | ||
"dist", | ||
"bin" | ||
], | ||
"scripts": { | ||
"prepublishOnly": "npm run build", | ||
"dev": "esno src/commands/ni.ts", | ||
"build": "unbuild", | ||
"stub": "unbuild --stub", | ||
"release": "bumpp && npm publish", | ||
"lint": "eslint .", | ||
"test": "vitest" | ||
}, | ||
"homepage": "https://github.com/antfu/ni#readme", | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^0.22.0", | ||
"@antfu/eslint-config": "^0.25.2", | ||
"@types/ini": "^1.3.31", | ||
"@types/node": "^17.0.30", | ||
"@types/node": "^18.0.4", | ||
"@types/prompts": "^2.4.0", | ||
"@types/which": "^2.0.1", | ||
"eslint": "^8.14.0", | ||
"esno": "^0.14.1", | ||
"bumpp": "^8.2.1", | ||
"eslint": "^8.19.0", | ||
"esno": "^0.16.3", | ||
"execa": "^6.1.0", | ||
@@ -55,5 +65,5 @@ "fast-glob": "^3.2.11", | ||
"terminal-link": "^3.0.0", | ||
"typescript": "^4.6.4", | ||
"typescript": "^4.7.4", | ||
"unbuild": "^0.7.4", | ||
"vitest": "^0.10.0", | ||
"vitest": "^0.18.0", | ||
"which": "^2.0.2" | ||
@@ -63,11 +73,3 @@ }, | ||
"extends": "@antfu" | ||
}, | ||
"scripts": { | ||
"dev": "esno src/commands/ni.ts", | ||
"build": "unbuild", | ||
"stub": "unbuild --stub", | ||
"release": "npx bumpp --commit --push --tag", | ||
"lint": "eslint .", | ||
"test": "vitest" | ||
} | ||
} | ||
} |
@@ -15,3 +15,3 @@ # ni | ||
<a href='https://docs.npmjs.com/cli/v6/commands/npm'>npm</a> · <a href='https://yarnpkg.com'>yarn</a> · <a href='https://pnpm.js.org/en/'>pnpm</a> | ||
<a href='https://docs.npmjs.com/cli/v6/commands/npm'>npm</a> · <a href='https://yarnpkg.com'>yarn</a> · <a href='https://pnpm.js.org/en/'>pnpm</a> · <a href='https://bun.sh/'>bun</a> | ||
@@ -30,12 +30,16 @@ | ||
# pnpm install | ||
# bun install | ||
``` | ||
```bash | ||
ni axios | ||
ni vite | ||
# npm i axios | ||
# yarn add axios | ||
# pnpm add axios | ||
# npm i vite | ||
# yarn add vite | ||
# pnpm add vite | ||
# bun add vite | ||
``` | ||
``` | ||
```bash | ||
@@ -47,2 +51,3 @@ ni @types/node -D | ||
# pnpm add -D @types/node | ||
# bun add -D @types/node | ||
``` | ||
@@ -59,7 +64,8 @@ | ||
```bash | ||
ni -g iroiro | ||
ni -g eslint | ||
# npm i -g iroiro | ||
# yarn global add iroiro | ||
# pnpm add -g iroiro | ||
# npm i -g eslint | ||
# yarn global add eslint | ||
# pnpm add -g eslint | ||
# bun add -g eslint | ||
@@ -79,2 +85,3 @@ # this uses default agent, regardless your current working directory | ||
# pnpm run dev -- --port=3000 | ||
# bun run dev --port=3000 | ||
``` | ||
@@ -100,7 +107,7 @@ | ||
```bash | ||
nx jest | ||
nx vitest | ||
# npx jest | ||
# yarn dlx jest | ||
# pnpm dlx jest | ||
# npx vitest | ||
# yarn dlx vitest | ||
# pnpm dlx vitest | ||
``` | ||
@@ -133,18 +140,11 @@ | ||
```bash | ||
nun axios | ||
nun webpack | ||
# npm uninstall axios | ||
# yarn remove axios | ||
# pnpm remove axios | ||
# npm uninstall webpack | ||
# yarn remove webpack | ||
# pnpm remove webpack | ||
# bun remove webpack | ||
``` | ||
```bash | ||
nun @types/node -D | ||
# npm uninstall @types/node -D | ||
# yarn remove @types/node -D | ||
# pnpm remove -D @types/node | ||
``` | ||
```bash | ||
nun -g eslint | ||
@@ -155,2 +155,3 @@ | ||
# pnpm remove -g eslint | ||
# bun remove -g eslint | ||
``` | ||
@@ -157,0 +158,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
509588
15671
249
19