repository-provider-cli-support 2.0.0 → 2.1.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 +1 -0
- package/package.json +19 -10
- package/types/setup-provider.d.mts +12 -0
package/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
[](https://www.npmjs.com/package/repository-provider-cli-support)
|
|
2
2
|
[](https://opensource.org/licenses/BSD-3-Clause)
|
|
3
|
+
[](https://typescriptlang.org)
|
|
3
4
|
[](https://bundlejs.com/?q=repository-provider-cli-support)
|
|
4
5
|
[](https://npmjs.org/package/repository-provider-cli-support)
|
|
5
6
|
[](https://github.com/arlac77/repository-provider-cli-support/issues)
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider-cli-support",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
7
7
|
},
|
|
8
|
+
"types": "./types/setup-provider.d.mts",
|
|
8
9
|
"exports": {
|
|
9
|
-
".":
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./types/setup-provider.d.mts",
|
|
12
|
+
"default": "./src/setup-provider.mjs"
|
|
13
|
+
}
|
|
10
14
|
},
|
|
11
15
|
"description": "helper functions for repository-provider cli apps",
|
|
12
16
|
"keywords": [
|
|
@@ -20,33 +24,37 @@
|
|
|
20
24
|
],
|
|
21
25
|
"license": "BSD-2-Clause",
|
|
22
26
|
"scripts": {
|
|
27
|
+
"prepare": "tsc --allowJs --declaration --emitDeclarationOnly --declarationDir types -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs",
|
|
23
28
|
"test": "npm run test:ava",
|
|
24
29
|
"test:ava": "ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs",
|
|
25
30
|
"cover": "c8 -x 'tests/**/*' --temp-directory build/tmp ava --timeout 4m tests/*-ava.mjs tests/*-ava-node.mjs && c8 report -r lcov -o build/coverage --temp-directory build/tmp",
|
|
26
31
|
"docs": "documentation readme --section=API ./src/**/*.mjs",
|
|
27
|
-
"lint": "npm run lint:docs",
|
|
28
|
-
"lint:docs": "documentation lint ./src/**/*.mjs"
|
|
32
|
+
"lint": "npm run lint:docs && npm run lint:tsc",
|
|
33
|
+
"lint:docs": "documentation lint ./src/**/*.mjs",
|
|
34
|
+
"lint:tsc": "tsc --allowJs --checkJs --noEmit -t esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
|
|
29
35
|
},
|
|
30
36
|
"dependencies": {
|
|
31
|
-
"aggregation-repository-provider": "^6.0.
|
|
37
|
+
"aggregation-repository-provider": "^6.0.6",
|
|
32
38
|
"etag-cache-leveldb": "^2.0.3",
|
|
33
39
|
"leveldown": "^6.1.1",
|
|
34
40
|
"levelup": "^5.1.1"
|
|
35
41
|
},
|
|
36
42
|
"devDependencies": {
|
|
43
|
+
"@types/node": "^20.11.17",
|
|
37
44
|
"ava": "^6.1.1",
|
|
38
45
|
"c8": "^9.1.0",
|
|
39
|
-
"commander": "^
|
|
46
|
+
"commander": "^12.0.0",
|
|
40
47
|
"documentation": "^14.0.3",
|
|
41
|
-
"github-repository-provider": "^8.0.
|
|
42
|
-
"semantic-release": "^23.0.
|
|
48
|
+
"github-repository-provider": "^8.0.37",
|
|
49
|
+
"semantic-release": "^23.0.2",
|
|
50
|
+
"typescript": "^5.3.3"
|
|
43
51
|
},
|
|
44
52
|
"engines": {
|
|
45
53
|
"node": ">=20.11.0"
|
|
46
54
|
},
|
|
47
55
|
"repository": {
|
|
48
56
|
"type": "git",
|
|
49
|
-
"url": "https://github.com/arlac77/repository-provider-cli-support"
|
|
57
|
+
"url": "git+https://github.com/arlac77/repository-provider-cli-support.git"
|
|
50
58
|
},
|
|
51
59
|
"bugs": {
|
|
52
60
|
"url": "https://github.com/arlac77/repository-provider-cli-support/issues"
|
|
@@ -55,7 +63,8 @@
|
|
|
55
63
|
"template": {
|
|
56
64
|
"inheritFrom": [
|
|
57
65
|
"arlac77/template-arlac77-github",
|
|
58
|
-
"arlac77/template-
|
|
66
|
+
"arlac77/template-javascript-component",
|
|
67
|
+
"arlac77/template-typescript"
|
|
59
68
|
]
|
|
60
69
|
}
|
|
61
70
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {*} program
|
|
4
|
+
* @param {Object} properties
|
|
5
|
+
* @returns {Promise<Object>} with provider, options, and cache
|
|
6
|
+
*/
|
|
7
|
+
export function initializeRepositoryProvider(program: any, properties: any): Promise<any>;
|
|
8
|
+
/**
|
|
9
|
+
* Add extra cli options.
|
|
10
|
+
* @param {*} program
|
|
11
|
+
*/
|
|
12
|
+
export function initializeCommandLine(program: any): void;
|