addons-scanner-utils 12.1.0 → 13.0.0
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/README.md +11 -11
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -7,48 +7,48 @@ Various addons related helpers to build scanners.
|
|
|
7
7
|
## Usage
|
|
8
8
|
|
|
9
9
|
```
|
|
10
|
-
|
|
10
|
+
npm install addons-scanner-utils
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## Requirements
|
|
14
14
|
|
|
15
|
-
- You need [Node](https://nodejs.org/)
|
|
16
|
-
- You need [
|
|
15
|
+
- You need [Node](https://nodejs.org/) 22, which is the current [LTS](https://github.com/nodejs/LTS) (long term support) release.
|
|
16
|
+
- You need [npm](https://www.npmjs.com/) to manage dependencies and run commands.
|
|
17
17
|
|
|
18
18
|
## Development
|
|
19
19
|
|
|
20
20
|
- Read [our contributing guidelines](./CONTRIBUTING.md) to get started on your first patch
|
|
21
21
|
- Clone this repository
|
|
22
|
-
- Type `
|
|
23
|
-
- Run the test suite to make sure everything is set up: `
|
|
22
|
+
- Type `npm install` to install everything
|
|
23
|
+
- Run the test suite to make sure everything is set up: `npm test`
|
|
24
24
|
|
|
25
25
|
### Available development commands
|
|
26
26
|
|
|
27
27
|
In the project directory, you can run the following commands. There are a few commands not mentioned here (see `package.json`) but those are only used by internal processes.
|
|
28
28
|
|
|
29
|
-
#### `
|
|
29
|
+
#### `npm run eslint`
|
|
30
30
|
|
|
31
31
|
This runs [ESLint][] to discover problems within our codebase without executing it. ESLint also enforces some patterns and practices.
|
|
32
32
|
|
|
33
|
-
#### `
|
|
33
|
+
#### `npm run lint`
|
|
34
34
|
|
|
35
35
|
This runs all the _lint_ commands at once.
|
|
36
36
|
|
|
37
|
-
#### `
|
|
37
|
+
#### `npm run prettier`
|
|
38
38
|
|
|
39
39
|
This runs [Prettier][] to automatically format the entire codebase.
|
|
40
40
|
|
|
41
|
-
#### `
|
|
41
|
+
#### `npm run prettier-dev`
|
|
42
42
|
|
|
43
43
|
This runs [Prettier][] on only your changed files. This is intended for development.
|
|
44
44
|
|
|
45
|
-
#### `
|
|
45
|
+
#### `npm test`
|
|
46
46
|
|
|
47
47
|
This launches [Jest][] in the interactive watch mode.
|
|
48
48
|
|
|
49
49
|
### Prettier
|
|
50
50
|
|
|
51
|
-
We use [Prettier][] to automatically format our JavaScript code and stop all the on-going debates over styles. As a developer, you have to run it (with `
|
|
51
|
+
We use [Prettier][] to automatically format our JavaScript code and stop all the on-going debates over styles. As a developer, you have to run it (with `npm run prettier-dev`) before submitting a Pull Request.
|
|
52
52
|
|
|
53
53
|
### Versioning
|
|
54
54
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "addons-scanner-utils",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "13.0.0",
|
|
4
4
|
"description": "Various addons related helpers to build CLIs.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@types/jest": "^30.0.0",
|
|
39
39
|
"@types/node": "^25.0.1",
|
|
40
40
|
"@types/safe-compare": "^1.1.0",
|
|
41
|
-
"@types/supertest": "^
|
|
41
|
+
"@types/supertest": "^7.2.0",
|
|
42
42
|
"@types/yauzl": "2.10.3",
|
|
43
43
|
"@typescript-eslint/eslint-plugin": "^8.46.2",
|
|
44
44
|
"@typescript-eslint/parser": "^8.46.2",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"eslint": "^8.1.0",
|
|
47
47
|
"eslint-config-amo": "^6.1.0",
|
|
48
48
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
49
|
-
"eslint-plugin-amo": "^
|
|
49
|
+
"eslint-plugin-amo": "^3.0.0",
|
|
50
50
|
"express": "5.2.1",
|
|
51
51
|
"jest": "^30.2.0",
|
|
52
52
|
"prettier": "3.8.1",
|
|
@@ -60,13 +60,13 @@
|
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"eslint": "eslint --ext ts --ext js src/",
|
|
63
|
-
"lint": "
|
|
63
|
+
"lint": "npm run eslint",
|
|
64
64
|
"prepack": "rimraf dist/ && tsc --outDir dist/ && rimraf -g 'dist/**/*.spec.*' 'dist/*.spec.*'",
|
|
65
65
|
"prettier": "prettier --write '**'",
|
|
66
|
-
"prettier-ci": "prettier --list-different '**' || (echo '\n\nThis failure means you did not run `
|
|
66
|
+
"prettier-ci": "prettier --list-different '**' || (echo '\n\nThis failure means you did not run `npm run prettier-dev` before committing\n\n' && exit 1)",
|
|
67
67
|
"prettier-dev": "pretty-quick --branch master",
|
|
68
68
|
"test": "jest",
|
|
69
|
-
"test-ci": "
|
|
69
|
+
"test-ci": "npm test -- --coverage",
|
|
70
70
|
"type-coverage": "type-coverage",
|
|
71
71
|
"typecheck": "tsc --noEmit"
|
|
72
72
|
},
|