preferred-node-version
Advanced tools
Comparing version 3.5.0 to 3.6.0
@@ -50,5 +50,5 @@ import{readFile}from"node:fs/promises"; | ||
"package.json":loadPackageJson}; | ||
"package.json":loadPackageJson | ||
}; | ||
export const NODE_VERSION_FILES=Object.keys(LOAD_FUNCTIONS); | ||
//# sourceMappingURL=load.js.map |
{ | ||
"name": "preferred-node-version", | ||
"version": "3.5.0", | ||
"version": "3.6.0", | ||
"type": "module", | ||
"exports": { | ||
"types": "./build/types/main.d.ts", | ||
"types": "./build/src/main.d.ts", | ||
"default": "./build/src/main.js" | ||
}, | ||
"main": "./build/src/main.js", | ||
"types": "./build/types/main.d.ts", | ||
"types": "./build/src/main.d.ts", | ||
"files": [ | ||
"build/src/**/*.{js,json}", | ||
"build/types/**/*.d.ts" | ||
"build/src/**/*.{js,json,d.ts}", | ||
"!build/src/**/*.test.js", | ||
"!build/src/{helpers,fixtures}" | ||
], | ||
@@ -60,5 +61,5 @@ "sideEffects": false, | ||
"devDependencies": { | ||
"@ehmicky/dev-tasks": "^1.0.102", | ||
"@types/node": "^18.0.0", | ||
"test-each": "^5.5.0" | ||
"@ehmicky/dev-tasks": "^2.0.8", | ||
"@types/node": "^18.11.9", | ||
"test-each": "^5.6.0" | ||
}, | ||
@@ -65,0 +66,0 @@ "engines": { |
[![Node](https://img.shields.io/badge/-Node.js-808080?logo=node.js&colorA=404040&logoColor=66cc33)](https://www.npmjs.com/package/preferred-node-version) | ||
[![TypeScript](https://img.shields.io/badge/-Typed-808080?logo=typescript&colorA=404040&logoColor=0096ff)](/types/main.d.ts) | ||
[![TypeScript](https://img.shields.io/badge/-Typed-808080?logo=typescript&colorA=404040&logoColor=0096ff)](/src/main.d.ts) | ||
[![Codecov](https://img.shields.io/badge/-Tested%20100%25-808080?logo=codecov&colorA=404040)](https://codecov.io/gh/ehmicky/preferred-node-version) | ||
[![Twitter](https://img.shields.io/badge/-Twitter-808080.svg?logo=twitter&colorA=404040)](https://twitter.com/intent/follow?screen_name=ehmicky) | ||
[![Mastodon](https://img.shields.io/badge/-Mastodon-808080.svg?logo=mastodon&colorA=404040&logoColor=9590F9)](https://fosstodon.org/@ehmicky) | ||
[![Medium](https://img.shields.io/badge/-Medium-808080.svg?logo=medium&colorA=404040)](https://medium.com/@ehmicky) | ||
@@ -9,18 +9,19 @@ | ||
This looks for any [`.nvmrc`](https://github.com/nvm-sh/nvm#nvmrc) or | ||
[`package.json` (`engines.node` field)](https://docs.npmjs.com/files/package.json#engines) | ||
in the current directory, parent directories or home directory. | ||
This looks for (from highest to lowest priority): | ||
- Any [`.n-node-version`](https://github.com/tj/n#specifying-node-versions), | ||
[`.naverc`](https://github.com/isaacs/nave#automagical), | ||
[`.node-version`](https://github.com/jasongin/nvs#automatic-switching-per-directory), | ||
[`.nodeenvrc`](https://github.com/ekalinin/nodeenv#configuration) | ||
[`.nvmrc`](https://github.com/nvm-sh/nvm#nvmrc) or | ||
[`package.json` (`engines.node` field)](https://docs.npmjs.com/files/package.json#engines) | ||
in the current directory, parent directories, or home directory | ||
- Any | ||
[`NODE_VERSION`](https://docs.netlify.com/configure-builds/manage-dependencies/#node-js-and-javascript), | ||
[`NODIST_NODE_VERSION`](https://github.com/nullivex/nodist#scope-precedence) | ||
environment variable | ||
`nvm` aliases (like `current` or `lts/erbium`) and version ranges (like `12` or | ||
`>=12`) are resolved to regular `"major.minor.patch"` version strings. | ||
This also looks for any | ||
[`.node-version`](https://github.com/jasongin/nvs#automatic-switching-per-directory), | ||
[`.n-node-version`](https://github.com/tj/n#specifying-node-versions), | ||
[`.naverc`](https://github.com/isaacs/nave#automagical), | ||
[`.nodeenvrc`](https://github.com/ekalinin/nodeenv#configuration) file or | ||
[`NODE_VERSION`](https://docs.netlify.com/configure-builds/manage-dependencies/#node-js-and-javascript), | ||
[`NODIST_NODE_VERSION`](https://github.com/nullivex/nodist#scope-precedence) | ||
environment variable. | ||
# Examples | ||
@@ -182,3 +183,3 @@ | ||
<tr> | ||
<td align="center"><a href="https://twitter.com/ehmicky"><img src="https://avatars2.githubusercontent.com/u/8136211?v=4" width="100px;" alt=""/><br /><sub><b>ehmicky</b></sub></a><br /><a href="https://github.com/ehmicky/preferred-node-version/commits?author=ehmicky" title="Code">💻</a> <a href="#design-ehmicky" title="Design">🎨</a> <a href="#ideas-ehmicky" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ehmicky/preferred-node-version/commits?author=ehmicky" title="Documentation">📖</a></td> | ||
<td align="center"><a href="https://fosstodon.org/@ehmicky"><img src="https://avatars2.githubusercontent.com/u/8136211?v=4" width="100px;" alt=""/><br /><sub><b>ehmicky</b></sub></a><br /><a href="https://github.com/ehmicky/preferred-node-version/commits?author=ehmicky" title="Code">💻</a> <a href="#design-ehmicky" title="Design">🎨</a> <a href="#ideas-ehmicky" title="Ideas, Planning, & Feedback">🤔</a> <a href="https://github.com/ehmicky/preferred-node-version/commits?author=ehmicky" title="Documentation">📖</a></td> | ||
<td align="center"><a href="https://twitter.com/adrieankhisbe"><img src="https://avatars1.githubusercontent.com/u/2601132?v=4" width="100px;" alt=""/><br /><sub><b>Adrien Becchis</b></sub></a><br /><a href="https://github.com/ehmicky/preferred-node-version/commits?author=AdrieanKhisbe" title="Code">💻</a> <a href="https://github.com/ehmicky/preferred-node-version/commits?author=AdrieanKhisbe" title="Tests">⚠️</a> <a href="#ideas-AdrieanKhisbe" title="Ideas, Planning, & Feedback">🤔</a></td> | ||
@@ -185,0 +186,0 @@ </tr> |
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
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
29842
303
191