@next/codemod 13.4.12 → 13.4.13-canary.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/bin/cli.js +2 -2
- package/lib/install.js +3 -3
- package/package.json +3 -3
package/bin/cli.js
CHANGED
|
@@ -18,7 +18,7 @@ const inquirer_1 = __importDefault(require("inquirer"));
|
|
|
18
18
|
const meow_1 = __importDefault(require("meow"));
|
|
19
19
|
const path_1 = __importDefault(require("path"));
|
|
20
20
|
const execa_1 = __importDefault(require("execa"));
|
|
21
|
-
const
|
|
21
|
+
const picocolors_1 = require("picocolors");
|
|
22
22
|
const is_git_clean_1 = __importDefault(require("is-git-clean"));
|
|
23
23
|
const uninstall_package_1 = require("../lib/uninstall-package");
|
|
24
24
|
exports.jscodeshiftExecutable = require.resolve('.bin/jscodeshift');
|
|
@@ -41,7 +41,7 @@ function checkGitStatus(force) {
|
|
|
41
41
|
}
|
|
42
42
|
else {
|
|
43
43
|
console.log('Thank you for using @next/codemod!');
|
|
44
|
-
console.log(
|
|
44
|
+
console.log((0, picocolors_1.yellow)('\nBut before we continue, please stash or commit your git changes.'));
|
|
45
45
|
console.log('\nYou may use the --force flag to override this safety check.');
|
|
46
46
|
process.exit(1);
|
|
47
47
|
}
|
package/lib/install.js
CHANGED
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.install = void 0;
|
|
7
7
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
8
|
-
const
|
|
8
|
+
const picocolors_1 = require("picocolors");
|
|
9
9
|
const cross_spawn_1 = __importDefault(require("cross-spawn"));
|
|
10
10
|
/**
|
|
11
11
|
* Spawn a package manager installation with either Yarn or NPM.
|
|
@@ -59,9 +59,9 @@ function install(root, dependencies, { useYarn, isOnline, devDependencies }) {
|
|
|
59
59
|
*/
|
|
60
60
|
args = ['install'];
|
|
61
61
|
if (!isOnline) {
|
|
62
|
-
console.log(
|
|
62
|
+
console.log((0, picocolors_1.yellow)('You appear to be offline.'));
|
|
63
63
|
if (useYarn) {
|
|
64
|
-
console.log(
|
|
64
|
+
console.log((0, picocolors_1.yellow)('Falling back to the local Yarn cache.'));
|
|
65
65
|
console.log();
|
|
66
66
|
args.push('--offline');
|
|
67
67
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@next/codemod",
|
|
3
|
-
"version": "13.4.
|
|
3
|
+
"version": "13.4.13-canary.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
"directory": "packages/next-codemod"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"chalk": "4.1.0",
|
|
12
11
|
"cheerio": "1.0.0-rc.9",
|
|
13
12
|
"execa": "4.0.3",
|
|
14
13
|
"globby": "11.0.1",
|
|
15
14
|
"inquirer": "7.3.3",
|
|
16
15
|
"is-git-clean": "1.1.0",
|
|
17
16
|
"jscodeshift": "0.13.1",
|
|
18
|
-
"meow": "7.0.1"
|
|
17
|
+
"meow": "7.0.1",
|
|
18
|
+
"picocolors": "1.0.0"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"transforms/*.js",
|