full site update
This commit is contained in:
45
node_modules/package-manager-detector/dist/constants.mjs
generated
vendored
Normal file
45
node_modules/package-manager-detector/dist/constants.mjs
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
const AGENTS = [
|
||||
"npm",
|
||||
"yarn",
|
||||
"yarn@berry",
|
||||
"pnpm",
|
||||
"pnpm@6",
|
||||
"bun",
|
||||
"deno"
|
||||
];
|
||||
const LOCKS = {
|
||||
"bun.lock": "bun",
|
||||
"bun.lockb": "bun",
|
||||
"deno.lock": "deno",
|
||||
"pnpm-lock.yaml": "pnpm",
|
||||
"pnpm-workspace.yaml": "pnpm",
|
||||
"yarn.lock": "yarn",
|
||||
"package-lock.json": "npm",
|
||||
"npm-shrinkwrap.json": "npm"
|
||||
};
|
||||
const INSTALL_METADATA = {
|
||||
"node_modules/.deno/": "deno",
|
||||
"node_modules/.pnpm/": "pnpm",
|
||||
"node_modules/.yarn-state.yml": "yarn",
|
||||
// yarn v2+ (node-modules)
|
||||
"node_modules/.yarn_integrity": "yarn",
|
||||
// yarn v1
|
||||
"node_modules/.package-lock.json": "npm",
|
||||
".pnp.cjs": "yarn",
|
||||
// yarn v3+ (pnp)
|
||||
".pnp.js": "yarn",
|
||||
// yarn v2 (pnp)
|
||||
"bun.lock": "bun",
|
||||
"bun.lockb": "bun"
|
||||
};
|
||||
const INSTALL_PAGE = {
|
||||
"bun": "https://bun.sh",
|
||||
"deno": "https://deno.com",
|
||||
"pnpm": "https://pnpm.io/installation",
|
||||
"pnpm@6": "https://pnpm.io/6.x/installation",
|
||||
"yarn": "https://classic.yarnpkg.com/en/docs/install",
|
||||
"yarn@berry": "https://yarnpkg.com/getting-started/install",
|
||||
"npm": "https://docs.npmjs.com/cli/configuring-npm/install"
|
||||
};
|
||||
|
||||
export { AGENTS, INSTALL_METADATA, INSTALL_PAGE, LOCKS };
|
Reference in New Issue
Block a user