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: v24.2.0
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: v24.3.0
Choose a head ref
  • 5 commits
  • 8 files changed
  • 3 contributors

Commits on Mar 18, 2025

  1. fix: add warning for empty scripts (#265)

    Wxh16144 authored Mar 18, 2025
    Copy the full SHA
    cb59993 View commit details

Commits on Mar 19, 2025

  1. fix!: improve debug logging format for command execution (#269)

    * test: add unit test
    
    * fix: improve debug logging format for command execution
    
    * chore: update snap
    
    * chore: update
    
    * Update test/programmatic/runCli.spec.ts
    
    ---------
    
    Co-authored-by: Kevin Deng 三咲智子 <sxzz@sxzz.moe>
    Wxh16144 and sxzz authored Mar 19, 2025
    Copy the full SHA
    401f402 View commit details
  2. chore: upgrade deps

    sxzz committed Mar 19, 2025
    Copy the full SHA
    9042c3c View commit details

Commits on Mar 20, 2025

  1. chore: use pnpm catalogs

    antfu committed Mar 20, 2025
    Copy the full SHA
    769ba76 View commit details
  2. chore: release v24.3.0

    antfu committed Mar 20, 2025
    Copy the full SHA
    5174aa1 View commit details
Showing with 714 additions and 868 deletions.
  1. +3 −1 eslint.config.js
  2. +26 −31 package.json
  3. +633 −832 pnpm-lock.yaml
  4. +27 −0 pnpm-workspace.yaml
  5. +9 −3 src/commands/nr.ts
  6. +2 −1 src/runner.ts
  7. +2 −0 test/programmatic/__snapshots__/runCli.spec.ts.snap
  8. +12 −0 test/programmatic/runCli.spec.ts
4 changes: 3 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// @ts-check
import antfu from '@antfu/eslint-config'

export default antfu()
export default antfu({
pnpm: true,
})
57 changes: 26 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@antfu/ni",
"type": "module",
"version": "24.2.0",
"packageManager": "pnpm@10.6.3",
"version": "24.3.0",
"packageManager": "pnpm@10.6.5",
"description": "Use the right package manager",
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
"license": "MIT",
@@ -46,42 +46,37 @@
"nr": "tsx src/commands/nr.ts",
"build": "unbuild",
"stub": "unbuild --stub",
"release": "bumpp && npm publish",
"release": "bumpp && pnpm publish",
"typecheck": "tsc",
"prepare": "npx simple-git-hooks",
"lint": "eslint .",
"lint": "eslint",
"test": "vitest"
},
"dependencies": {
"ansis": "^3.17.0",
"fzf": "^0.5.2",
"package-manager-detector": "^1.0.0",
"tinyexec": "^0.3.2"
"ansis": "catalog:prod",
"fzf": "catalog:prod",
"package-manager-detector": "catalog:prod",
"tinyexec": "catalog:prod"
},
"devDependencies": {
"@antfu/eslint-config": "^4.10.1",
"@posva/prompts": "^2.4.4",
"@types/ini": "^4.1.1",
"@types/node": "^22.13.10",
"@types/which": "^3.0.4",
"bumpp": "^10.1.0",
"eslint": "^9.22.0",
"ini": "^5.0.0",
"lint-staged": "^15.5.0",
"simple-git-hooks": "^2.11.1",
"taze": "^19.0.2",
"terminal-link": "^3.0.0",
"tinyglobby": "^0.2.12",
"tsx": "^4.19.3",
"typescript": "^5.8.2",
"unbuild": "^3.5.0",
"vitest": "^3.0.8",
"which": "^5.0.0"
},
"pnpm": {
"onlyBuiltDependencies": [
"esbuild"
]
"@antfu/eslint-config": "catalog:dev",
"@posva/prompts": "catalog:prod-inlined",
"@types/ini": "catalog:dev",
"@types/node": "catalog:dev",
"@types/which": "catalog:dev",
"bumpp": "catalog:dev",
"eslint": "catalog:dev",
"ini": "catalog:prod-inlined",
"lint-staged": "catalog:dev",
"simple-git-hooks": "catalog:dev",
"taze": "catalog:dev",
"terminal-link": "catalog:prod-inlined",
"tinyglobby": "catalog:dev",
"tsx": "catalog:dev",
"typescript": "catalog:dev",
"unbuild": "catalog:dev",
"vitest": "catalog:dev",
"which": "catalog:prod-inlined"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
Loading