Skip to content

Commit

Permalink
chore: update v2
Browse files Browse the repository at this point in the history
  • Loading branch information
iosh committed Nov 30, 2024
1 parent ec33ceb commit ebe94ff
Show file tree
Hide file tree
Showing 15 changed files with 281 additions and 1,523 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:

- name: Install Dependencies
run: pnpm

- name: Build
run: pnpm run build

- name: Create Release Pull Request or Publish to npm
id: changesets
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/test-Windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:

- name: Install Dependencies
run: pnpm install

- name: Build
run: pnpm run build

- name: Test
run: pnpm run test
3 changes: 3 additions & 0 deletions .github/workflows/test-macOS.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:

- name: Install Dependencies
run: pnpm install

- name: Build
run: pnpm run build

- name: Test
run: pnpm run test
110 changes: 0 additions & 110 deletions bin/cli.js

This file was deleted.

24 changes: 12 additions & 12 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,23 @@
"version": "1.4.0",
"description": "npm registry manager can help you easy and fast switch between different npm registries, now include: cnpm, taobao, nj(nodejitsu), edunpm",
"bin": {
"nrm": "bin/cli.js"
"nrm": "dist/index.js"
},
"type": "module",
"type": "commonjs",
"repository": {
"type": "git",
"url": "git+https://github.com/Pana/nrm.git"
},
"files": [
"dist",
"bin"
"dist"
],
"scripts": {
"star": "npm star nrm",
"test": "vitest run",
"build": "tsup",
"test": "pnpm build && vitest run",
"build": "tsc",
"test:watch": "vitest",
"changeset:version": "changeset version",
"changeset:publish": "changeset publish",
"check": "npx @biomejs/biome check --write ."
"check": "biome check --write ."
},
"keywords": [
"npm",
Expand All @@ -35,24 +33,26 @@
"homepage": "https://github.com/Pana/nrm",
"dependencies": {
"@inquirer/select": "^4.0.2",
"chalk": "^5.3.0",
"chalk": "4.1.2",
"commander": "^8.3.0",
"fs-extra": "^11.2.0",
"ini": "4.1.3",
"open": "^10.1.0",
"open": "8.4.2",
"undici": "5.28.2"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@changesets/cli": "^2.27.8",
"@types/fs-extra": "^11.0.4",
"@types/ini": "^4.1.1",
"@types/node": "18",
"coffee": "^5.4.0",
"mock-fs": "^5.4.1",
"tsup": "8.3.0",
"strip-ansi": "^7.1.0",
"typescript": "^5.7.2",
"vitest": "2.1.6"
},
"engines": {
"node": ">=18"
}
}
}
Loading

0 comments on commit ebe94ff

Please sign in to comment.