Skip to content

Commit 3623ff5

Browse files
committed
feat: add remote fetch for validation caommand
- enable remote fetch for validation command - add test of validation after remote fetch Signed-off-by: Michael Dawson <[email protected]>
1 parent 6955583 commit 3623ff5

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

lib/cli/commands/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = function (opts) {
3838
path.join(process.cwd()),
3939
argv.canonical,
4040
argv['base-path'],
41-
false)
41+
argv.fetch)
4242
if (supportData.resolved) {
4343
const supportDataJSON = JSON.parse(supportData.contents)
4444
try {
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
validate --fetch
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
info › Your support information is valid!
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "@pkgjs/support-separate-repo",
3+
"version": "0.0.1",
4+
"support": {
5+
"path": "./examples/basic.json",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/pkgjs/support.git"
9+
}
10+
},
11+
"repository": {
12+
"type": "git",
13+
"url": "https://github.com/pkgjs/support-separate-repo.git"
14+
}
15+
}

0 commit comments

Comments
 (0)