Comparing version 0.6.1 to 0.7.0
@@ -11,2 +11,4 @@ declare const AGENTS: { | ||
execute: string; | ||
uninstall: string; | ||
global_uninstall: string; | ||
}; | ||
@@ -22,2 +24,4 @@ yarn: { | ||
execute: string; | ||
uninstall: string; | ||
global_uninstall: string; | ||
}; | ||
@@ -33,2 +37,4 @@ pnpm: { | ||
execute: string; | ||
uninstall: string; | ||
global_uninstall: string; | ||
}; | ||
@@ -43,2 +49,3 @@ }; | ||
declare function parseNu(agent: Agent, args: string[]): string; | ||
declare function parseNrm(agent: Agent, args: string[]): string; | ||
declare function parseNx(agent: Agent, args: string[]): string; | ||
@@ -67,2 +74,2 @@ | ||
export { DetectOptions, Runner, cmdExists, detect, exclude, getCommand, getConfig, getDefaultAgent, getGlobalAgent, parseNi, parseNr, parseNu, parseNx, remove, run, runCli }; | ||
export { DetectOptions, Runner, cmdExists, detect, exclude, getCommand, getConfig, getDefaultAgent, getGlobalAgent, parseNi, parseNr, parseNrm, parseNu, parseNx, remove, run, runCli }; |
@@ -16,4 +16,4 @@ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); | ||
var _chunkNGSISS2Ajs = require('./chunk-NGSISS2A.js'); | ||
var _chunkJBT3DO44js = require('./chunk-JBT3DO44.js'); | ||
@@ -33,2 +33,4 @@ | ||
exports.cmdExists = _chunkNGSISS2Ajs.cmdExists; exports.detect = _chunkNGSISS2Ajs.detect; exports.exclude = _chunkNGSISS2Ajs.exclude; exports.getCommand = _chunkNGSISS2Ajs.getCommand; exports.getConfig = _chunkNGSISS2Ajs.getConfig; exports.getDefaultAgent = _chunkNGSISS2Ajs.getDefaultAgent; exports.getGlobalAgent = _chunkNGSISS2Ajs.getGlobalAgent; exports.parseNi = _chunkNGSISS2Ajs.parseNi; exports.parseNr = _chunkNGSISS2Ajs.parseNr; exports.parseNu = _chunkNGSISS2Ajs.parseNu; exports.parseNx = _chunkNGSISS2Ajs.parseNx; exports.remove = _chunkNGSISS2Ajs.remove; exports.run = _chunkNGSISS2Ajs.run; exports.runCli = _chunkNGSISS2Ajs.runCli; | ||
exports.cmdExists = _chunkJBT3DO44js.cmdExists; exports.detect = _chunkJBT3DO44js.detect; exports.exclude = _chunkJBT3DO44js.exclude; exports.getCommand = _chunkJBT3DO44js.getCommand; exports.getConfig = _chunkJBT3DO44js.getConfig; exports.getDefaultAgent = _chunkJBT3DO44js.getDefaultAgent; exports.getGlobalAgent = _chunkJBT3DO44js.getGlobalAgent; exports.parseNi = _chunkJBT3DO44js.parseNi; exports.parseNr = _chunkJBT3DO44js.parseNr; exports.parseNrm = _chunkJBT3DO44js.parseNrm; exports.parseNu = _chunkJBT3DO44js.parseNu; exports.parseNx = _chunkJBT3DO44js.parseNx; exports.remove = _chunkJBT3DO44js.remove; exports.run = _chunkJBT3DO44js.run; exports.runCli = _chunkJBT3DO44js.runCli; |
"use strict"; | ||
var _chunkNGSISS2Ajs = require('./chunk-NGSISS2A.js'); | ||
var _chunkJBT3DO44js = require('./chunk-JBT3DO44.js'); | ||
// src/nci.ts | ||
_chunkNGSISS2Ajs.runCli.call(void 0, (agent, _, hasLock) => _chunkNGSISS2Ajs.parseNi.call(void 0, agent, ["--frozen-if-present"], hasLock), {autoInstall: true}); | ||
_chunkJBT3DO44js.runCli.call(void 0, (agent, _, hasLock) => _chunkJBT3DO44js.parseNi.call(void 0, agent, ["--frozen-if-present"], hasLock), {autoInstall: true}); |
"use strict"; | ||
var _chunkNGSISS2Ajs = require('./chunk-NGSISS2A.js'); | ||
var _chunkJBT3DO44js = require('./chunk-JBT3DO44.js'); | ||
// src/ni.ts | ||
_chunkNGSISS2Ajs.runCli.call(void 0, _chunkNGSISS2Ajs.parseNi); | ||
_chunkJBT3DO44js.runCli.call(void 0, _chunkJBT3DO44js.parseNi); |
@@ -6,6 +6,6 @@ "use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _chunkNGSISS2Ajs = require('./chunk-NGSISS2A.js'); | ||
var _chunkJBT3DO44js = require('./chunk-JBT3DO44.js'); | ||
// src/nr.ts | ||
var import_prompts = _chunkNGSISS2Ajs.__toModule.call(void 0, _chunkNGSISS2Ajs.require_prompts.call(void 0, )); | ||
var import_prompts = _chunkJBT3DO44js.__toModule.call(void 0, _chunkJBT3DO44js.require_prompts.call(void 0, )); | ||
@@ -30,3 +30,3 @@ // src/fs.ts | ||
// src/nr.ts | ||
_chunkNGSISS2Ajs.runCli.call(void 0, async (agent, args) => { | ||
_chunkJBT3DO44js.runCli.call(void 0, async (agent, args) => { | ||
if (args.length === 0) { | ||
@@ -51,3 +51,3 @@ const scripts = getPackageJSON().scripts || {}; | ||
} | ||
return _chunkNGSISS2Ajs.parseNr.call(void 0, agent, args); | ||
return _chunkJBT3DO44js.parseNr.call(void 0, agent, args); | ||
}); |
"use strict"; | ||
var _chunkNGSISS2Ajs = require('./chunk-NGSISS2A.js'); | ||
var _chunkJBT3DO44js = require('./chunk-JBT3DO44.js'); | ||
// src/nu.ts | ||
_chunkNGSISS2Ajs.runCli.call(void 0, _chunkNGSISS2Ajs.parseNu); | ||
_chunkJBT3DO44js.runCli.call(void 0, _chunkJBT3DO44js.parseNu); |
"use strict"; | ||
var _chunkNGSISS2Ajs = require('./chunk-NGSISS2A.js'); | ||
var _chunkJBT3DO44js = require('./chunk-JBT3DO44.js'); | ||
// src/nx.ts | ||
_chunkNGSISS2Ajs.runCli.call(void 0, _chunkNGSISS2Ajs.parseNx); | ||
_chunkJBT3DO44js.runCli.call(void 0, _chunkJBT3DO44js.parseNx); |
{ | ||
"name": "@antfu/ni", | ||
"version": "0.6.1", | ||
"version": "0.7.0", | ||
"description": "Use the right package manager", | ||
@@ -23,3 +23,4 @@ "license": "MIT", | ||
"nu": "bin/nu.js", | ||
"nx": "bin/nx.js" | ||
"nx": "bin/nx.js", | ||
"nrm": "bin/nrm.js" | ||
}, | ||
@@ -38,4 +39,5 @@ "bugs": { | ||
"nx": "esno src/nx.ts", | ||
"nrm": "esno src/nrm.ts", | ||
"dev": "esno src/ni.ts", | ||
"build": "rimraf dist && tsup src/ni.ts src/nci.ts src/nr.ts src/nu.ts src/nx.ts src/index.ts --format cjs,esm --dts", | ||
"build": "rimraf dist && tsup src/ni.ts src/nci.ts src/nr.ts src/nu.ts src/nx.ts src/nrm.ts src/index.ts --format cjs,esm --dts", | ||
"release": "npx git-ensure && npx bumpp --commit --push --tag", | ||
@@ -42,0 +44,0 @@ "lint": "eslint \"**/*.ts\"", |
@@ -85,6 +85,6 @@ # ni | ||
## `nx` - execute | ||
### `nx` - execute | ||
```bash | ||
nu jest | ||
nx jest | ||
@@ -132,2 +132,32 @@ # npx jest | ||
### `nrm` - remove | ||
```bash | ||
nrm axios | ||
# npm uninstall axios | ||
# yarn remove axios | ||
# pnpm remove axios | ||
``` | ||
```bash | ||
nrm @types/node -D | ||
# npm uninstall @types/node -D | ||
# yarn remove @types/node -D | ||
# pnpm remove @types/node -D | ||
``` | ||
```bash | ||
nrm -g iroiro | ||
# npm uninstall -g iroiro | ||
# yarn global remove iroiro | ||
# pnpm remove -g iroiro | ||
# this uses default agent, regardless your current working directory | ||
``` | ||
<br> | ||
### Config | ||
@@ -134,0 +164,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
487915
32
15497
180
7