regressify 1.0.24 → 1.0.26
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/cli/update-package.js
CHANGED
|
@@ -5,7 +5,7 @@ import path from 'path';
|
|
|
5
5
|
async function updatePackageJson() {
|
|
6
6
|
const packageJsonPath = path.join(process.cwd(), 'package.json');
|
|
7
7
|
if (!fs.existsSync(packageJsonPath)) {
|
|
8
|
-
console.log(chalk.red("package.json file doesn't exists")
|
|
8
|
+
console.log(chalk.red("package.json file doesn't exists"));
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
11
|
|
package/cli.js
CHANGED
|
@@ -42,12 +42,12 @@ if (command === 'init') {
|
|
|
42
42
|
const __filename = fileURLToPath(import.meta.url);
|
|
43
43
|
const __dirname = dirname(__filename);
|
|
44
44
|
|
|
45
|
-
const postInstallPath = pathToFileURL(path.join(__dirname, 'cli', '
|
|
45
|
+
const postInstallPath = pathToFileURL(path.join(__dirname, 'cli', 'generate-tests.js'));
|
|
46
46
|
if (fs.existsSync(postInstallPath)) {
|
|
47
47
|
console.log(chalk.yellow('Generate folder visual_tests ...'));
|
|
48
48
|
await import(postInstallPath);
|
|
49
49
|
} else {
|
|
50
|
-
console.log(chalk.red('
|
|
50
|
+
console.log(chalk.red('generate-tests.js not found!'));
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
const updatePackageJsonPath = pathToFileURL(path.join(__dirname, 'cli', 'update-package.js'));
|
package/package.json
CHANGED
|
File without changes
|