+9
-3
@@ -11,3 +11,3 @@ #!/usr/bin/env node | ||
| var name = "nypm"; | ||
| var version = "0.6.5"; | ||
| var version = "0.6.6"; | ||
| var description = "Unified Package Manager for Node.js"; | ||
@@ -21,2 +21,7 @@ const packageManagers = [ | ||
| { | ||
| name: "aube", | ||
| command: "aube", | ||
| lockFile: "aube-lock.yaml" | ||
| }, | ||
| { | ||
| name: "pnpm", | ||
@@ -138,3 +143,3 @@ command: "pnpm", | ||
| async function executeCommand(command, args, options = {}) { | ||
| const xArgs = command !== "npm" && command !== "bun" && command !== "deno" && options.corepack !== false && await hasCorepack() ? ["corepack", [command, ...args]] : [command, args]; | ||
| const xArgs = command !== "npm" && command !== "bun" && command !== "deno" && command !== "aube" && options.corepack !== false && await hasCorepack() ? ["corepack", [command, ...args]] : [command, args]; | ||
| const { exitCode, stdout, stderr } = await x(xArgs[0], xArgs[1], { nodeOptions: { | ||
@@ -204,3 +209,4 @@ cwd: resolve(options.cwd || process.cwd()), | ||
| pnpm: ["install", "--frozen-lockfile"], | ||
| deno: ["install", "--frozen"] | ||
| deno: ["install", "--frozen"], | ||
| aube: ["install", "--frozen-lockfile"] | ||
| }[resolvedOptions.packageManager.name] : ["install"]; | ||
@@ -207,0 +213,0 @@ if (options.ignoreWorkspace && resolvedOptions.packageManager.name === "pnpm") commandArgs.push("--ignore-workspace"); |
+1
-1
@@ -1,2 +0,2 @@ | ||
| type PackageManagerName = "npm" | "yarn" | "pnpm" | "bun" | "deno"; | ||
| type PackageManagerName = "npm" | "yarn" | "pnpm" | "bun" | "deno" | "aube"; | ||
| type PackageManager = { | ||
@@ -3,0 +3,0 @@ name: PackageManagerName; |
+14
-6
@@ -63,3 +63,3 @@ import { createRequire } from "node:module"; | ||
| async function executeCommand(command, args, options = {}) { | ||
| const xArgs = command !== "npm" && command !== "bun" && command !== "deno" && options.corepack !== false && await hasCorepack() ? ["corepack", [command, ...args]] : [command, args]; | ||
| const xArgs = command !== "npm" && command !== "bun" && command !== "deno" && command !== "aube" && options.corepack !== false && await hasCorepack() ? ["corepack", [command, ...args]] : [command, args]; | ||
| const { exitCode, stdout, stderr } = await x(xArgs[0], xArgs[1], { nodeOptions: { | ||
@@ -149,2 +149,7 @@ cwd: resolve(options.cwd || process.cwd()), | ||
| { | ||
| name: "aube", | ||
| command: "aube", | ||
| lockFile: "aube-lock.yaml" | ||
| }, | ||
| { | ||
| name: "pnpm", | ||
@@ -212,3 +217,3 @@ command: "pnpm", | ||
| function installDependenciesCommand(packageManager, options = {}) { | ||
| const installCmd = options.short ? "i" : "install"; | ||
| const installCmd = options.short && packageManager !== "aube" ? "i" : "install"; | ||
| const pmToFrozenLockfileInstallCommand = { | ||
@@ -219,3 +224,4 @@ npm: ["ci"], | ||
| pnpm: [installCmd, "--frozen-lockfile"], | ||
| deno: [installCmd, "--frozen"] | ||
| deno: [installCmd, "--frozen"], | ||
| aube: [installCmd, "--frozen-lockfile"] | ||
| }; | ||
@@ -244,3 +250,3 @@ return fmtCommand([packageManager, ...options.frozenLockFile ? pmToFrozenLockfileInstallCommand[packageManager] : [installCmd]]); | ||
| }), | ||
| options.dev ? options.short ? "-D" : "--dev" : "", | ||
| options.dev ? options.short ? "-D" : packageManager === "aube" ? "--save-dev" : "--dev" : "", | ||
| options.global ? "-g" : "", | ||
@@ -263,3 +269,4 @@ ...names | ||
| bun: options.short ? "bunx" : "bun x", | ||
| deno: "deno run -A" | ||
| deno: "deno run -A", | ||
| aube: options.short ? "aubx" : "aube dlx" | ||
| }[packageManager]; | ||
@@ -292,3 +299,4 @@ let packages = options.packages || []; | ||
| pnpm: ["install", "--frozen-lockfile"], | ||
| deno: ["install", "--frozen"] | ||
| deno: ["install", "--frozen"], | ||
| aube: ["install", "--frozen-lockfile"] | ||
| }[resolvedOptions.packageManager.name] : ["install"]; | ||
@@ -295,0 +303,0 @@ if (options.ignoreWorkspace && resolvedOptions.packageManager.name === "pnpm") commandArgs.push("--ignore-workspace"); |
+17
-13
| { | ||
| "name": "nypm", | ||
| "version": "0.6.6", | ||
| "version": "0.6.7", | ||
| "description": "Unified Package Manager for Node.js", | ||
| "license": "MIT", | ||
| "repository": "unjs/nypm", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "unjs/nypm" | ||
| }, | ||
| "bin": { | ||
@@ -23,19 +26,20 @@ "nypm": "./dist/cli.mjs" | ||
| "pathe": "^2.0.3", | ||
| "tinyexec": "^1.1.1" | ||
| "tinyexec": "^1.2.4" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/node": "^25.6.0", | ||
| "@typescript/native-preview": "^7.0.0-dev.20260424.1", | ||
| "@vitest/coverage-v8": "^4.1.5", | ||
| "@types/node": "^25.9.2", | ||
| "@typescript/native-preview": "7.0.0-dev.20260609.1", | ||
| "@vitest/coverage-v8": "^4.1.8", | ||
| "automd": "^0.4.3", | ||
| "changelogen": "^0.6.2", | ||
| "eslint-config-unjs": "^0.6.2", | ||
| "obuild": "^0.4.33", | ||
| "oxfmt": "^0.46.0", | ||
| "oxlint": "^1.61.0", | ||
| "pkg-types": "^2.3.0", | ||
| "expect-type": "^1.3.0", | ||
| "obuild": "^0.4.36", | ||
| "oxfmt": "^0.54.0", | ||
| "oxlint": "^1.69.0", | ||
| "pkg-types": "^2.3.1", | ||
| "std-env": "^4.1.0", | ||
| "typescript": "^6.0.3", | ||
| "ufo": "^1.6.3", | ||
| "vitest": "^4.1.5" | ||
| "ufo": "^1.6.4", | ||
| "vitest": "^4.1.8" | ||
| }, | ||
@@ -49,3 +53,3 @@ "engines": { | ||
| "lint": "oxlint . && oxfmt --check src test", | ||
| "lint:fix": "oxlint . --fix && oxfmt src test", | ||
| "fmt": "oxlint . --fix && oxfmt src test", | ||
| "nypm": "node ./src/cli.ts", | ||
@@ -52,0 +56,0 @@ "release": "pnpm test && pnpm build && changelogen --release --push && pnpm publish", |
+1
-1
@@ -13,3 +13,3 @@ # 🌈 nypm | ||
| ✅ Supports [npm](https://docs.npmjs.com/cli/v10/commands/npm), [yarn](https://yarnpkg.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/package-manager) and [deno](https://deno.com/) out of the box with a unified API. | ||
| ✅ Supports [npm](https://docs.npmjs.com/cli/v10/commands/npm), [yarn](https://yarnpkg.com/), [pnpm](https://pnpm.io/), [bun](https://bun.sh/package-manager), [deno](https://deno.com/) and [aube](https://github.com/jdx/aube) out of the box with a unified API. | ||
@@ -16,0 +16,0 @@ ✅ Provides an **API interface** to interact with package managers. |
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
48010
1.13%943
1.51%10
-9.09%15
7.14%Updated