Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: antfu-collective/ni
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.21.8
Choose a base ref
...
head repository: antfu-collective/ni
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.21.9
Choose a head ref
  • 6 commits
  • 43 files changed
  • 5 contributors

Commits on Sep 1, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    a3fc4d4 View commit details

Commits on Sep 11, 2023

  1. fix: -v flag not working for yarn@berry (#175)

    Dimava authored and antfu committed Sep 11, 2023
    Copy the full SHA
    9e3c9a7 View commit details

Commits on Sep 12, 2023

  1. docs: add global flags documentation (#173)

    Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
    oxwazz and antfu authored Sep 12, 2023

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c200dc2 View commit details

Commits on Nov 9, 2023

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b616eb3 View commit details
  2. chore: update deps

    antfu committed Nov 9, 2023
    Copy the full SHA
    a7012df View commit details
  3. chore: release v0.21.9

    antfu committed Nov 9, 2023
    Copy the full SHA
    7f4ff3f View commit details
41 changes: 41 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,

// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll": "explicit",
"source.organizeImports": "never"
},

// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
{ "rule": "*-order", "severity": "off" },
{ "rule": "*-dangle", "severity": "off" },
{ "rule": "*-newline", "severity": "off" },
{ "rule": "*quotes", "severity": "off" },
{ "rule": "*semi", "severity": "off" }
],

// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml"
]
}
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -112,11 +112,11 @@ nlx vitest
```bash
nu

# (not available for bun)
# npm upgrade
# yarn upgrade (Yarn 1)
# yarn up (Yarn Berry)
# pnpm update
# bun update
```

```bash
@@ -189,11 +189,21 @@ na run foo

<br>

### Change Directory
### Global Flags

```bash
# ? | Print the command execution depends on the agent
ni vite ?

# -C | Change directory before running the command
ni -C packages/foo vite
nr -C playground dev

# -v, --version | Show version number
ni -v

# -h, --help | Show help
ni -h
```

<br>
4 changes: 4 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// @ts-check
import antfu from '@antfu/eslint-config'

export default antfu()
35 changes: 16 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@antfu/ni",
"type": "module",
"version": "0.21.8",
"packageManager": "pnpm@8.6.12",
"version": "0.21.9",
"packageManager": "pnpm@8.10.2",
"description": "Use the right package manager",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
@@ -34,8 +34,8 @@
"nun": "bin/nun.mjs"
},
"files": [
"dist",
"bin"
"bin",
"dist"
],
"scripts": {
"prepublishOnly": "npm run build",
@@ -48,30 +48,27 @@
"test": "vitest"
},
"devDependencies": {
"@antfu/eslint-config": "^0.40.2",
"@antfu/eslint-config": "^1.1.0",
"@posva/prompts": "^2.4.4",
"@types/fs-extra": "^11.0.1",
"@types/ini": "^1.3.31",
"@types/node": "^20.5.3",
"@types/which": "^3.0.0",
"@types/fs-extra": "^11.0.4",
"@types/ini": "^1.3.33",
"@types/node": "^20.9.0",
"@types/which": "^3.0.2",
"bumpp": "^9.2.0",
"eslint": "^8.47.0",
"eslint": "^8.53.0",
"esno": "^0.17.0",
"execa": "^7.1.1",
"fast-glob": "^3.3.1",
"execa": "^8.0.1",
"fast-glob": "^3.3.2",
"find-up": "^6.3.0",
"fs-extra": "^11.1.1",
"fzf": "^0.5.2",
"ini": "^4.1.1",
"kleur": "^4.1.5",
"rimraf": "^5.0.1",
"rimraf": "^5.0.5",
"terminal-link": "^3.0.0",
"typescript": "^5.1.6",
"typescript": "^5.2.2",
"unbuild": "^2.0.0",
"vitest": "^0.34.2",
"which": "^3.0.1"
},
"eslintConfig": {
"extends": "@antfu"
"vitest": "^0.34.6",
"which": "^4.0.0"
}
}
Loading