@smarlhens/npm-check-engines 0.1.3 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ### [0.1.5](https://github.com/smarlhens/npm-check-engines/compare/v0.1.4...v0.1.5) (2022-05-30)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **npm:** remove latest changes regarding publish ([1f9c0d1](https://github.com/smarlhens/npm-check-engines/commit/1f9c0d15931d5696889ec4a50fd990276b676d6f))
9
+
10
+ ### [0.1.4](https://github.com/smarlhens/npm-check-engines/compare/v0.1.3...v0.1.4) (2022-05-30)
11
+
12
+
13
+ ### Miscellaneous
14
+
15
+ * **npm:** remove npmignore ([0b4662f](https://github.com/smarlhens/npm-check-engines/commit/0b4662f9a50b967edfcc68b8bd57364f3a0dbb2f))
16
+ * **publish:** revert publish script, move to release ci job ([a6288d3](https://github.com/smarlhens/npm-check-engines/commit/a6288d3a3882b09d34f18c1ddff5380fdbf2c027))
17
+
3
18
  ### [0.1.3](https://github.com/smarlhens/npm-check-engines/compare/v0.1.2...v0.1.3) (2022-05-30)
4
19
 
5
20
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smarlhens/npm-check-engines",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "description": "Node.JS engines constraint checker written in TypeScript.",
5
5
  "keywords": [
6
6
  "node",
@@ -23,22 +23,20 @@
23
23
  "url": "https://github.com/smarlhens"
24
24
  },
25
25
  "bin": {
26
- "nce": "bin/nce.js",
27
- "npm-check-engines": "bin/nce.js"
26
+ "nce": "./dist/bin/nce.js",
27
+ "npm-check-engines": "./dist/bin/nce.js"
28
28
  },
29
29
  "scripts": {
30
30
  "prebuild": "rimraf dist",
31
31
  "build": "tsc",
32
- "dev": "ts-node bin/nce.ts",
32
+ "dev": "ts-node ./bin/nce.ts",
33
33
  "postinstall": "npm run sort-package-json",
34
34
  "lint": "npm run prettier:check",
35
35
  "lint-staged": "lint-staged",
36
36
  "precommit": "npm run lint-staged && npm run build",
37
37
  "prepare": "husky install",
38
- "prepublishOnly": "copyfiles package.json LICENSE README.md CHANGELOG.md dist",
39
38
  "prettier:check": "prettier --check ./**/*.{ts,json,yml}",
40
39
  "prettier:write": "prettier --write ./**/*.{ts,json,yml}",
41
- "publish": "npm publish dist --access public",
42
40
  "sort-package-json": "sort-package-json",
43
41
  "test": "jest --watchAll=false",
44
42
  "test:ci": "npm run test:coverage",
@@ -78,7 +76,6 @@
78
76
  "@types/semver": "7.3.9",
79
77
  "@types/yargs": "17.0.10",
80
78
  "babel-jest": "28.1.0",
81
- "copyfiles": "2.4.1",
82
79
  "cz-conventional-changelog": "3.3.0",
83
80
  "execa": "5.1.1",
84
81
  "husky": "8.0.1",
package/dist/CHANGELOG.md DELETED
@@ -1,46 +0,0 @@
1
- # Changelog
2
-
3
- ### [0.1.3](https://github.com/smarlhens/npm-check-engines/compare/v0.1.2...v0.1.3) (2022-05-30)
4
-
5
-
6
- ### Bug Fixes
7
-
8
- * **npm:** update publish script, bin path ([5e65712](https://github.com/smarlhens/npm-check-engines/commit/5e65712ba43b9aa5a5c6b519bffffb80ba075fc3))
9
-
10
-
11
- ### Miscellaneous
12
-
13
- * **gh-actions:** provide registry-url to setup-node ([14d4428](https://github.com/smarlhens/npm-check-engines/commit/14d4428ae4b185557b49b468350969ce19b5fdf5))
14
-
15
- ### [0.1.2](https://github.com/smarlhens/npm-check-engines/compare/v0.1.1...v0.1.2) (2022-05-30)
16
-
17
-
18
- ### Bug Fixes
19
-
20
- * **npm:** provide NODE_AUTH_TOKEN ([1ce6ddc](https://github.com/smarlhens/npm-check-engines/commit/1ce6ddcc5872af3d179b9cc6ac925f1827c61d76))
21
- * **npm:** publish config, auth, remove main entry ([09bf0ab](https://github.com/smarlhens/npm-check-engines/commit/09bf0aba33f1559ec200da491ed93fd62b9d4ad3))
22
- * **npm:** registry auth ([bcfc95c](https://github.com/smarlhens/npm-check-engines/commit/bcfc95cc5a0436414f588919ae0fc0e022981134))
23
-
24
-
25
- ### Miscellaneous
26
-
27
- * **CHANGELOG:** enhance commit description ([bb6c5ac](https://github.com/smarlhens/npm-check-engines/commit/bb6c5acad40999afcd28bd7adc3bb2ede2f1cf91))
28
- * **gh-actions:** escaped colon char not interpreted as expected ([40b3242](https://github.com/smarlhens/npm-check-engines/commit/40b3242cd0a778a4f23f89cb193dc23909cd29f4))
29
- * **gh-actions:** provide NPM_TOKEN ([fb9a53c](https://github.com/smarlhens/npm-check-engines/commit/fb9a53c7063de588eef75311e7a7c5fb4b177ed2))
30
-
31
- ### [0.1.1](https://github.com/smarlhens/npm-check-engines/compare/v0.1.0...v0.1.1) (2022-05-30)
32
-
33
-
34
- ### Miscellaneous
35
-
36
- * **gitignore:** do not share idea config ([ecd59e0](https://github.com/smarlhens/npm-check-engines/commit/ecd59e0a16f27d8d187a160bbce27b0ea91cc442))
37
- * **README:** add readme ([9828158](https://github.com/smarlhens/npm-check-engines/commit/9828158b52ab4b957b73e92b76677c61c45053c5))
38
- * **gh-actions:** split publish job, refactor ci & manual release ([e394792](https://github.com/smarlhens/npm-check-engines/commit/e3947923d7d88d94cab789969154ab87fb2ed706))
39
- * **yargs:** enhance options help ([13958a7](https://github.com/smarlhens/npm-check-engines/commit/13958a7ff3db35fa4b80952dc8cb968020508317))
40
-
41
- ## 0.1.0 (2022-05-29)
42
-
43
-
44
- ### Features
45
-
46
- * initial commit ([4726940](https://github.com/smarlhens/npm-check-engines/commit/4726940760863bfdbbe937347d08087556eaa327))
package/dist/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 Samuel MARLHENS
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
package/dist/README.md DELETED
@@ -1,135 +0,0 @@
1
- # NPM check engines
2
-
3
- [![GitHub CI](https://github.com/smarlhens/npm-check-engines/workflows/ci/badge.svg)](https://github.com/smarlhens/npm-check-engines/actions/workflows/ci.yml)
4
- ![node-current (scoped)](https://img.shields.io/node/v/@smarlhens/npm-check-engines)
5
- [![GitHub license](https://img.shields.io/github/license/smarlhens/npm-check-engines)](https://github.com/smarlhens/npm-check-engines)
6
- [![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
7
- [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
8
- [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org)
9
-
10
- **npm-check-engines upgrades your package.json node engines constraint to the most restrictive used by your dependencies.**
11
-
12
- ---
13
-
14
- ## Table of Contents
15
-
16
- - [Prerequisites](#prerequisites)
17
- - [Installation](#installation)
18
- - [Usage](#usage)
19
- - [Options](#options)
20
- - [Debug](#debug)
21
-
22
- ---
23
-
24
- ## Prerequisites
25
-
26
- - [Node.JS](https://nodejs.org/en/download/) **version ^14.17.0 || ^16.10.0 || ^18.0.0**
27
-
28
- ---
29
-
30
- ## Installation
31
-
32
- Install globally:
33
-
34
- ```sh
35
- npm install -g @smarlhens/npm-check-engines
36
- ```
37
-
38
- Or run with [npx](https://docs.npmjs.com/cli/v8/commands/npx):
39
-
40
- ```sh
41
- npx @smarlhens/npm-check-engines
42
- ```
43
-
44
- ---
45
-
46
- ## Usage
47
-
48
- Show the most restrictive constraint (**opinionated**) of the node engine for the project in the current directory based on the npm `package-lock.json` file:
49
-
50
- ```sh
51
- $ nce
52
- ✔ Computed node engines range: ^14.17.0 || ^16.10.0 || ^18.0.0
53
- ```
54
-
55
- Upgrade a project's `package.json` file:
56
-
57
- ```sh
58
- $ nce -u
59
- ✔ Computed node engines range: ^14.17.0 || ^16.10.0 || ^18.0.0
60
- ```
61
-
62
- ---
63
-
64
- ## Options
65
-
66
- ```text
67
- Usage: nce [options]
68
-
69
- Options:
70
- -p, --path Path to the NPM package folder. Default will use current folder. [string]
71
- -q, --quiet Enable quiet mode. [boolean] [default: false]
72
- -d, --debug Enable debug mode. Can be used with environment variable DEBUG=nce. [boolean] [default: false]
73
- -v, --verbose A little more detailed than the default output. [boolean] [default: false]
74
- -u, --update Update engines in package.json file. [boolean] [default: false]
75
- --help Show help [boolean]
76
- --version Show version number [boolean]
77
-
78
- Examples:
79
- nce Check package-lock.json file in current working directory.
80
- nce -p examples -u Check package-lock.json file and update engines in package.json in relative examples directory.
81
-
82
- ```
83
-
84
- ---
85
-
86
- ## Debug
87
-
88
- ```sh
89
- $ DEBUG=nce nce -d
90
- ```
91
-
92
- <details>
93
-
94
- <summary>output with debug</summary>
95
-
96
- ```text
97
- [STARTED] Checking npm package node engines constraints in package-lock.json file...
98
- [TITLE] Checking npm package node engines constraints in examples\package-lock.json file...
99
- [STARTED] Load package-lock.json file...
100
- [SUCCESS] Load package-lock.json file...
101
- [STARTED] Compute node engines constraints...
102
- nce Package has no constraints for node engines +0ms
103
- nce New most restrictive range: >=6.9.0 +3ms
104
- nce Compare: >=6.9.0 and >=12.22.0 +1ms
105
- nce Range >=12.22.0 is a subset of >=6.9.0 +1ms
106
- nce New most restrictive range: >=12.22.0 +0ms
107
- nce Compare: >=12.22.0 and * +0ms
108
- nce Range >=12.22.0 is a subset of * +0ms
109
- nce Compare: >=12.22.0 and >=7.0.0 +1ms
110
- nce Range >=12.22.0 is a subset of >=7.0.0 +0ms
111
- nce Package node_modules/noengines has no constraints for node engines +0ms
112
- nce Compare: >=12.22.0 and >=12.13.0 <13.0.0-0||>=14.15.0 <15.0.0-0||>=16.10.0 <17.0.0-0||>=17.0.0 +1ms
113
- nce Applying minimal version 12.22.0 to both ranges. +1ms
114
- nce Compare: >=12.22.0 and >=12.22.0 <13.0.0-0||>=14.15.0 <15.0.0-0||>=16.10.0 <17.0.0-0||>=17.0.0 +0ms
115
- nce Range >=12.22.0 <13.0.0-0||>=14.15.0 <15.0.0-0||>=16.10.0 <17.0.0-0||>=17.0.0 is a subset of >=12.22.0 +0ms
116
- nce New most restrictive range: >=12.22.0 <13.0.0-0||>=14.15.0 <15.0.0-0||>=16.10.0 <17.0.0-0||>=17.0.0 +1ms
117
- nce Compare: >=12.22.0 <13.0.0-0||>=14.15.0 <15.0.0-0||>=16.10.0 <17.0.0-0||>=17.0.0 and >=16.0.0||>=14.17.0 <15.0.0-0 +0ms
118
- nce Applying minimal version 14.17.0 to both ranges. +0ms
119
- nce Compare: >=14.17.0 <15.0.0-0||>=16.10.0 <17.0.0-0||>=17.0.0 and >=14.17.0 <15.0.0-0||>=16.0.0 +1ms
120
- nce Range >=14.17.0 <15.0.0-0||>=16.10.0 <17.0.0-0||>=17.0.0 is a subset of >=14.17.0 <15.0.0-0||>=16.0.0 +0ms
121
- nce New most restrictive range: >=14.17.0 <15.0.0-0||>=16.10.0 <17.0.0-0||>=17.0.0 +0ms
122
- nce Final computed node engines range: >=14.17.0 <15.0.0-0||>=16.10.0 <17.0.0-0||>=17.0.0 +0ms
123
- [SUCCESS] Compute node engines constraints...
124
- [STARTED] Output computed node engines constraints...
125
- [TITLE] Computed node engines range: ^14.17.0 || ^16.10.0 || >=17.0.0
126
- nce Simplified computed node engines range: ^14.17.0 || ^16.10.0 || >=17.0.0 +1ms
127
- [SUCCESS] Output computed node engines constraints...
128
- [STARTED] Update package.json file...
129
- [SKIPPED] Update is disabled by default.
130
- [SUCCESS] Computed node engines range: ^14.17.0 || ^16.10.0 || >=17.0.0
131
- ```
132
-
133
- </details>
134
-
135
- ---
package/dist/package.json DELETED
@@ -1,101 +0,0 @@
1
- {
2
- "name": "@smarlhens/npm-check-engines",
3
- "version": "0.1.3",
4
- "description": "Node.JS engines constraint checker written in TypeScript.",
5
- "keywords": [
6
- "node",
7
- "npm",
8
- "engines",
9
- "typescript"
10
- ],
11
- "homepage": "https://github.com/smarlhens/npm-check-engines#readme",
12
- "bugs": {
13
- "url": "https://github.com/smarlhens/npm-check-engines/issues"
14
- },
15
- "repository": {
16
- "type": "git",
17
- "url": "https://github.com/smarlhens/npm-check-engines.git"
18
- },
19
- "license": "MIT",
20
- "author": {
21
- "name": "Samuel MARLHENS",
22
- "email": "samuel.marlhens@gmail.com",
23
- "url": "https://github.com/smarlhens"
24
- },
25
- "bin": {
26
- "nce": "bin/nce.js",
27
- "npm-check-engines": "bin/nce.js"
28
- },
29
- "scripts": {
30
- "prebuild": "rimraf dist",
31
- "build": "tsc",
32
- "dev": "ts-node bin/nce.ts",
33
- "postinstall": "npm run sort-package-json",
34
- "lint": "npm run prettier:check",
35
- "lint-staged": "lint-staged",
36
- "precommit": "npm run lint-staged && npm run build",
37
- "prepare": "husky install",
38
- "prepublishOnly": "copyfiles package.json LICENSE README.md CHANGELOG.md dist",
39
- "prettier:check": "prettier --check ./**/*.{ts,json,yml}",
40
- "prettier:write": "prettier --write ./**/*.{ts,json,yml}",
41
- "publish": "npm publish dist --access public",
42
- "sort-package-json": "sort-package-json",
43
- "test": "jest --watchAll=false",
44
- "test:ci": "npm run test:coverage",
45
- "test:coverage": "npm run test -- --coverage",
46
- "test:e2e": "npm run test -- --selectProjects e2e",
47
- "test:e2e:coverage": "npm run test:e2e -- --coverage",
48
- "test:unit": "npm run test -- --selectProjects unit",
49
- "test:unit:coverage": "npm run test:unit -- --coverage",
50
- "test:watch": "jest"
51
- },
52
- "dependencies": {
53
- "ajv": "8.11.0",
54
- "ajv-draft-04": "1.0.0",
55
- "ajv-formats": "2.1.1",
56
- "colorette": "2.0.16",
57
- "debug": "4.3.4",
58
- "fs-extra": "10.1.0",
59
- "listr2": "4.0.5",
60
- "lodash": "4.17.21",
61
- "rimraf": "3.0.2",
62
- "semver": "7.3.7",
63
- "sort-package-json": "1.57.0",
64
- "tslib": "2.4.0",
65
- "yargs": "17.5.1"
66
- },
67
- "devDependencies": {
68
- "@babel/core": "7.18.2",
69
- "@babel/preset-env": "7.18.2",
70
- "@babel/preset-typescript": "7.17.12",
71
- "@commitlint/cli": "17.0.1",
72
- "@commitlint/config-conventional": "17.0.0",
73
- "@types/debug": "4.1.7",
74
- "@types/fs-extra": "9.0.13",
75
- "@types/jest": "27.5.1",
76
- "@types/lodash": "4.14.182",
77
- "@types/node": "17.0.36",
78
- "@types/semver": "7.3.9",
79
- "@types/yargs": "17.0.10",
80
- "babel-jest": "28.1.0",
81
- "copyfiles": "2.4.1",
82
- "cz-conventional-changelog": "3.3.0",
83
- "execa": "5.1.1",
84
- "husky": "8.0.1",
85
- "jest": "28.1.0",
86
- "lint-staged": "12.4.2",
87
- "prettier": "2.6.2",
88
- "ts-node": "10.8.0",
89
- "typescript": "4.7.2"
90
- },
91
- "engines": {
92
- "node": "^14.17.0 || ^16.10.0 || ^18.0.0"
93
- },
94
- "publishConfig": {
95
- "tag": "latest"
96
- },
97
- "overrides": {
98
- "minimist": "1.2.6",
99
- "lodash": "4.17.21"
100
- }
101
- }