Comparing version 0.4.1 to 0.5.0
"use strict"; | ||
var _chunkOL65XJENjs = require('./chunk.OL65XJEN.js'); | ||
require('./chunk.GEBZB6LS.js'); | ||
var _chunk2L5QMXIQjs = require('./chunk.2L5QMXIQ.js'); | ||
require('./chunk.M3AUZMHG.js'); | ||
var _chunk6QJ5NK4Cjs = require('./chunk.6QJ5NK4C.js'); | ||
var _chunkGVX3S7QZjs = require('./chunk.GVX3S7QZ.js'); | ||
// src/nci.ts | ||
_chunk6QJ5NK4Cjs.run.call(void 0, async (agent, _, hasLock) => { | ||
return _chunkOL65XJENjs.parseNi.call(void 0, agent, ["--frozen-if-present"], hasLock); | ||
_chunkGVX3S7QZjs.run.call(void 0, async (agent, _, hasLock) => { | ||
return _chunk2L5QMXIQjs.parseNi.call(void 0, agent, ["--frozen-if-present"], hasLock); | ||
}, {autoInstall: true}); |
"use strict"; | ||
var _chunkOL65XJENjs = require('./chunk.OL65XJEN.js'); | ||
require('./chunk.GEBZB6LS.js'); | ||
var _chunk2L5QMXIQjs = require('./chunk.2L5QMXIQ.js'); | ||
require('./chunk.M3AUZMHG.js'); | ||
var _chunk6QJ5NK4Cjs = require('./chunk.6QJ5NK4C.js'); | ||
var _chunkGVX3S7QZjs = require('./chunk.GVX3S7QZ.js'); | ||
// src/ni.ts | ||
_chunk6QJ5NK4Cjs.run.call(void 0, async (agent, args, hasLock) => { | ||
return _chunkOL65XJENjs.parseNi.call(void 0, agent, args, hasLock); | ||
_chunkGVX3S7QZjs.run.call(void 0, async (agent, args, hasLock) => { | ||
return _chunk2L5QMXIQjs.parseNi.call(void 0, agent, args, hasLock); | ||
}); |
"use strict"; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
var _chunk6QJ5NK4Cjs = require('./chunk.6QJ5NK4C.js'); | ||
var _chunkGVX3S7QZjs = require('./chunk.GVX3S7QZ.js'); | ||
// src/nr.ts | ||
var _inquirer = require('inquirer'); var _inquirer2 = _interopRequireDefault(_inquirer); | ||
var _prompts = require('prompts'); var _prompts2 = _interopRequireDefault(_prompts); | ||
@@ -13,3 +13,3 @@ // src/commands.ts | ||
args.push("start"); | ||
return _chunk6QJ5NK4Cjs.getCommand.call(void 0, agent, "run", args); | ||
return _chunkGVX3S7QZjs.getCommand.call(void 0, agent, "run", args); | ||
} | ||
@@ -35,15 +35,14 @@ | ||
// src/nr.ts | ||
_chunk6QJ5NK4Cjs.run.call(void 0, async (agent, args) => { | ||
_chunkGVX3S7QZjs.run.call(void 0, async (agent, args) => { | ||
if (args.length === 0) { | ||
const scripts = getPackageJSON().scripts || {}; | ||
const names = Object.keys(scripts); | ||
const names = Object.entries(scripts); | ||
if (!names.length) | ||
return; | ||
try { | ||
const {fn} = await _inquirer2.default.prompt({ | ||
const {fn} = await _prompts2.default.call(void 0, { | ||
name: "fn", | ||
message: "script to run", | ||
pageSize: 20, | ||
type: "list", | ||
choices: names | ||
type: "select", | ||
choices: names.map(([value, description]) => ({title: value, value, description})) | ||
}); | ||
@@ -54,4 +53,3 @@ if (!fn) | ||
} catch (e) { | ||
console.error(e); | ||
process.exit(1); | ||
process.exit(0); | ||
} | ||
@@ -58,0 +56,0 @@ } |
"use strict"; | ||
var _chunkGEBZB6LSjs = require('./chunk.GEBZB6LS.js'); | ||
var _chunkM3AUZMHGjs = require('./chunk.M3AUZMHG.js'); | ||
var _chunk6QJ5NK4Cjs = require('./chunk.6QJ5NK4C.js'); | ||
var _chunkGVX3S7QZjs = require('./chunk.GVX3S7QZ.js'); | ||
@@ -12,9 +12,9 @@ // src/commands.ts | ||
if (args.includes("-i")) | ||
return _chunk6QJ5NK4Cjs.getCommand.call(void 0, agent, "upgrade-interactive", _chunkGEBZB6LSjs.exclude.call(void 0, args, "-i")); | ||
return _chunk6QJ5NK4Cjs.getCommand.call(void 0, agent, "upgrade", args); | ||
return _chunkGVX3S7QZjs.getCommand.call(void 0, agent, "upgrade-interactive", _chunkM3AUZMHGjs.exclude.call(void 0, args, "-i")); | ||
return _chunkGVX3S7QZjs.getCommand.call(void 0, agent, "upgrade", args); | ||
} | ||
// src/nu.ts | ||
_chunk6QJ5NK4Cjs.run.call(void 0, async (agent, args) => { | ||
_chunkGVX3S7QZjs.run.call(void 0, async (agent, args) => { | ||
return parseNu(agent, args); | ||
}); |
{ | ||
"name": "@antfu/ni", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "Use the right package manager", | ||
@@ -42,9 +42,9 @@ "author": "Anthony Fu <anthonyfu117@hotmail.com>", | ||
"ini": "^1.3.8", | ||
"inquirer": "^7.3.3", | ||
"prompts": "^2.4.0", | ||
"terminal-link": "^2.1.1" | ||
}, | ||
"devDependencies": { | ||
"@types/prompts": "^2.0.9", | ||
"@antfu/eslint-config-ts": "^0.4.3", | ||
"@types/ini": "^1.3.30", | ||
"@types/inquirer": "^7.3.1", | ||
"@types/node": "^14.14.20", | ||
@@ -51,0 +51,0 @@ "ava": "^3.15.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
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
21603
572
5
+ Addedprompts@^2.4.0
+ Addedkleur@3.0.3(transitive)
+ Addedprompts@2.4.2(transitive)
+ Addedsisteransi@1.0.5(transitive)
- Removedinquirer@^7.3.3
- Removedansi-regex@5.0.1(transitive)
- Removedansi-styles@4.3.0(transitive)
- Removedchalk@4.1.2(transitive)
- Removedchardet@0.7.0(transitive)
- Removedcli-cursor@3.1.0(transitive)
- Removedcli-width@3.0.0(transitive)
- Removedcolor-convert@2.0.1(transitive)
- Removedcolor-name@1.1.4(transitive)
- Removedemoji-regex@8.0.0(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedexternal-editor@3.1.0(transitive)
- Removedfigures@3.2.0(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedinquirer@7.3.3(transitive)
- Removedis-fullwidth-code-point@3.0.0(transitive)
- Removedlodash@4.17.21(transitive)
- Removedmimic-fn@2.1.0(transitive)
- Removedmute-stream@0.0.8(transitive)
- Removedonetime@5.1.2(transitive)
- Removedos-tmpdir@1.0.2(transitive)
- Removedrestore-cursor@3.1.0(transitive)
- Removedrun-async@2.4.1(transitive)
- Removedrxjs@6.6.7(transitive)
- Removedsafer-buffer@2.1.2(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedstring-width@4.2.3(transitive)
- Removedstrip-ansi@6.0.1(transitive)
- Removedthrough@2.3.8(transitive)
- Removedtmp@0.0.33(transitive)
- Removedtslib@1.14.1(transitive)