@percy/cli-command 1.0.5 → 1.0.6
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/bin/{readme → readme.js} +3 -2
- package/package.json +6 -6
package/bin/{readme → readme.js}
RENAMED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const fs = await import('fs');
|
|
4
|
+
const url = await import('url');
|
|
4
5
|
const path = await import('path');
|
|
5
|
-
const { formatHelp } = await import('../dist/help');
|
|
6
|
+
const { formatHelp } = await import('../dist/help.js');
|
|
6
7
|
|
|
7
8
|
async function updateReadmeCommands(cwd = process.cwd()) {
|
|
8
9
|
let readmePath = path.join(cwd, 'README.md');
|
|
@@ -14,7 +15,7 @@ async function updateReadmeCommands(cwd = process.cwd()) {
|
|
|
14
15
|
if (!pkg['@percy/cli']?.commands) return '';
|
|
15
16
|
|
|
16
17
|
for (let cmdPath of pkg['@percy/cli'].commands) {
|
|
17
|
-
let cmdURL = url.pathToFileURL(path.join(
|
|
18
|
+
let cmdURL = url.pathToFileURL(path.join(cwd, cmdPath));
|
|
18
19
|
let { default: command } = await import(cmdURL.href);
|
|
19
20
|
command = { ...command, parent: { name: 'percy' } };
|
|
20
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@percy/cli-command",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"node": ">=14"
|
|
19
19
|
},
|
|
20
20
|
"bin": {
|
|
21
|
-
"percy-cli-readme": "./bin/readme"
|
|
21
|
+
"percy-cli-readme": "./bin/readme.js"
|
|
22
22
|
},
|
|
23
23
|
"main": "./dist/index.js",
|
|
24
24
|
"type": "module",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
"test:coverage": "yarn test --coverage"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@percy/config": "1.0.
|
|
38
|
-
"@percy/core": "1.0.
|
|
39
|
-
"@percy/logger": "1.0.
|
|
37
|
+
"@percy/config": "1.0.6",
|
|
38
|
+
"@percy/core": "1.0.6",
|
|
39
|
+
"@percy/logger": "1.0.6"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "f883f713ac513635245301622392870ba4018706"
|
|
42
42
|
}
|