joist-codegen 1.275.0 → 1.276.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/codemods/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAQnC,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/codemods/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAQnC,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAiDtE;AAED,wBAAgB,cAAc,IAAI,MAAM,CAIvC"}
|
package/build/codemods/index.js
CHANGED
|
@@ -13,7 +13,7 @@ const v1_151_0_rename_derived_async_reference_1 = require("./v1_151_0_rename_der
|
|
|
13
13
|
const v1_226_0_rename_current_txn_knex_1 = require("./v1_226_0_rename_current_txn_knex");
|
|
14
14
|
const v1_245_0_upsert_rename_1 = require("./v1_245_0_upsert_rename");
|
|
15
15
|
async function maybeRunTransforms(config) {
|
|
16
|
-
const {
|
|
16
|
+
const { confirm } = await import("@inquirer/prompts");
|
|
17
17
|
const confVersion = config.version;
|
|
18
18
|
// Look for `0.0.1` as a hint that a) we're running in the Joist repo and
|
|
19
19
|
// b) aren't manually testing any transformers, so just early return.
|
|
@@ -33,9 +33,7 @@ async function maybeRunTransforms(config) {
|
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
console.log(`Your project is on Joist ${confVersion} and there are ${mods.length} codemods to help upgrade to ${thisVersion}.`);
|
|
36
|
-
const run = await
|
|
37
|
-
name: "run",
|
|
38
|
-
type: "confirm",
|
|
36
|
+
const run = await confirm({
|
|
39
37
|
message: `Would you like to run them?`,
|
|
40
38
|
});
|
|
41
39
|
// They opted out
|
|
@@ -45,9 +43,7 @@ async function maybeRunTransforms(config) {
|
|
|
45
43
|
}
|
|
46
44
|
// Otherwise run them
|
|
47
45
|
for (const mod of mods) {
|
|
48
|
-
const run = await
|
|
49
|
-
name: "run",
|
|
50
|
-
type: "confirm",
|
|
46
|
+
const run = await confirm({
|
|
51
47
|
message: `Do you want to run ${mod.description}?`,
|
|
52
48
|
});
|
|
53
49
|
if (!run)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/codemods/index.ts"],"names":[],"mappings":";;;;;AAUA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/codemods/index.ts"],"names":[],"mappings":";;;;;AAUA,gDAiDC;AAED,wCAIC;AAjED,oDAA4B;AAC5B,oDAAkE;AAGlE,qGAAkG;AAClG,+EAA4E;AAC5E,uGAA8F;AAC9F,yFAAsF;AACtF,qEAAkE;AAE3D,KAAK,UAAU,kBAAkB,CAAC,MAAc;IACrD,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,MAAM,CAAC,mBAAmB,CAAC,CAAC;IACtD,MAAM,WAAW,GAAG,MAAM,CAAC,OAAO,CAAC;IAEnC,yEAAyE;IACzE,qEAAqE;IACrE,IAAI,WAAW,KAAK,OAAO;QAAE,OAAO;IACpC,oDAAoD;IACpD,IAAI,WAAW,KAAK,OAAO;QAAE,OAAO;IAEpC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,IAAI,gBAAM,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,CAAC,EAAE,CAAC;QACxC,OAAO;IACT,CAAC;IAED,MAAM,IAAI,GAAG,qBAAqB,CAAC,WAAW,CAAC,CAAC;IAChD,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACtB,6CAA6C;QAC7C,MAAM,CAAC,OAAO,GAAG,WAAW,CA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
"version": "1.
|
|
3
|
+
"version": "1.276.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,14 +19,13 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@dprint/formatter": "^0.2.1",
|
|
21
21
|
"@dprint/json": "0.15.6",
|
|
22
|
-
"@
|
|
22
|
+
"@inquirer/prompts": "^7.8.6",
|
|
23
23
|
"@types/jscodeshift": "^17.3.0",
|
|
24
24
|
"@types/pluralize": "^0.0.33",
|
|
25
25
|
"@types/semver": "^7.7.1",
|
|
26
26
|
"change-case": "^4.1.2",
|
|
27
27
|
"fast-glob": "^3.3.3",
|
|
28
|
-
"
|
|
29
|
-
"joist-utils": "1.275.0",
|
|
28
|
+
"joist-utils": "1.276.0",
|
|
30
29
|
"jscodeshift": "^17.3.0",
|
|
31
30
|
"knex": "^3.1.0",
|
|
32
31
|
"pg": "^8.16.3",
|