joist-codegen 2.1.0-next.19 → 2.1.0-next.20
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/build/codemods/JscodeshiftMod.d.ts +1 -1
- package/build/codemods/JscodeshiftMod.d.ts.map +1 -1
- package/build/codemods/JscodeshiftMod.js +5 -1
- package/build/codemods/JscodeshiftMod.js.map +1 -1
- package/build/codemods/codemod_0001-rename_has_async_property.d.ts.map +1 -1
- package/build/codemods/codemod_0001-rename_has_async_property.js +1 -1
- package/build/codemods/codemod_0001-rename_has_async_property.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@ export declare class JscodeshiftMod implements Codemod {
|
|
|
5
5
|
name: string;
|
|
6
6
|
description: string;
|
|
7
7
|
private glob;
|
|
8
|
-
constructor(codemodVersion: number, name: string, description: string, glob
|
|
8
|
+
constructor(codemodVersion: number, name: string, description: string, glob?: (config: Config) => string);
|
|
9
9
|
run(config: Config): Promise<void>;
|
|
10
10
|
}
|
|
11
11
|
//# sourceMappingURL=JscodeshiftMod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JscodeshiftMod.d.ts","sourceRoot":"","sources":["../../src/codemods/JscodeshiftMod.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,qBAAa,cAAe,YAAW,OAAO;IAEnC,cAAc,EAAE,MAAM;IACtB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,MAAM;IAC1B,OAAO,CAAC,IAAI;gBAHL,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EAClB,IAAI,
|
|
1
|
+
{"version":3,"file":"JscodeshiftMod.d.ts","sourceRoot":"","sources":["../../src/codemods/JscodeshiftMod.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,qBAAa,cAAe,YAAW,OAAO;IAEnC,cAAc,EAAE,MAAM;IACtB,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,MAAM;IAC1B,OAAO,CAAC,IAAI;gBAHL,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,EAClB,IAAI,GAAE,CAAC,MAAM,EAAE,MAAM,KAAK,MAAoB;IAGlD,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAWzC"}
|
|
@@ -12,7 +12,7 @@ class JscodeshiftMod {
|
|
|
12
12
|
name;
|
|
13
13
|
description;
|
|
14
14
|
glob;
|
|
15
|
-
constructor(codemodVersion, name, description, glob) {
|
|
15
|
+
constructor(codemodVersion, name, description, glob = defaultGlob) {
|
|
16
16
|
this.codemodVersion = codemodVersion;
|
|
17
17
|
this.name = name;
|
|
18
18
|
this.description = description;
|
|
@@ -31,4 +31,8 @@ class JscodeshiftMod {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
exports.JscodeshiftMod = JscodeshiftMod;
|
|
34
|
+
/** Returns the default source tree for project-wide codemods. */
|
|
35
|
+
function defaultGlob(config) {
|
|
36
|
+
return `${path_1.default.dirname(config.entitiesDirectory)}/**/*.ts`;
|
|
37
|
+
}
|
|
34
38
|
//# sourceMappingURL=JscodeshiftMod.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JscodeshiftMod.js","sourceRoot":"","sources":["../../src/codemods/JscodeshiftMod.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAiC;AACjC,mDAA4D;AAC5D,gDAAwB;AAIxB,MAAa,cAAc;IAEhB;IACA;IACA;IACC;IAJV,YACS,cAAsB,EACtB,IAAY,EACZ,WAAmB,EAClB,
|
|
1
|
+
{"version":3,"file":"JscodeshiftMod.js","sourceRoot":"","sources":["../../src/codemods/JscodeshiftMod.ts"],"names":[],"mappings":";;;;;;AAAA,0DAAiC;AACjC,mDAA4D;AAC5D,gDAAwB;AAIxB,MAAa,cAAc;IAEhB;IACA;IACA;IACC;IAJV,YACS,cAAsB,EACtB,IAAY,EACZ,WAAmB,EAClB,OAAmC,WAAW;QAH/C,mBAAc,GAAd,cAAc,CAAQ;QACtB,SAAI,GAAJ,IAAI,CAAQ;QACZ,gBAAW,GAAX,WAAW,CAAQ;QAClB,SAAI,GAAJ,IAAI,CAA0C;IACrD,CAAC;IAEJ,KAAK,CAAC,GAAG,CAAC,MAAc;QACtB,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC/B,MAAM,aAAa,GAAG,cAAI,CAAC,OAAO,CAAC,GAAG,SAAS,IAAI,IAAI,CAAC,IAAI,KAAK,CAAC,CAAC;QACnE,MAAM,KAAK,GAAG,MAAM,IAAA,mBAAQ,EAAC,IAAI,CAAC,CAAC;QACnC,OAAO,CAAC,GAAG,CAAC,WAAW,aAAa,YAAY,KAAK,CAAC,MAAM,QAAQ,CAAC,CAAC;QACtE,OAAO,CAAC,GAAG,CAAC,+DAA+D,CAAC,CAAC;QAC7E,MAAM,IAAA,YAAW,EAAC,aAAa,EAAE,KAAK,EAAE;YACtC,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,IAAI;SACb,CAAC,CAAC;IACL,CAAC;CACF;AAnBD,wCAmBC;AAED,iEAAiE;AACjE,SAAS,WAAW,CAAC,MAAc;IACjC,OAAO,GAAG,cAAI,CAAC,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,UAAU,CAAC;AAC7D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codemod_0001-rename_has_async_property.d.ts","sourceRoot":"","sources":["../../src/codemods/codemod_0001-rename_has_async_property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAO,MAAM,sCAAsC,
|
|
1
|
+
{"version":3,"file":"codemod_0001-rename_has_async_property.d.ts","sourceRoot":"","sources":["../../src/codemods/codemod_0001-rename_has_async_property.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElD,eAAO,MAAM,sCAAsC,gBAIlD,CAAC;AAWF,+FAA+F;AAC/F,QAAA,MAAM,SAAS,EAAE,SAYhB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.codemod_0001_rename_has_async_property = void 0;
|
|
4
4
|
const JscodeshiftMod_1 = require("./JscodeshiftMod");
|
|
5
|
-
exports.codemod_0001_rename_has_async_property = new JscodeshiftMod_1.JscodeshiftMod(1, "codemod_0001-rename_has_async_property", "Rename `hasAsyncProperty` to `hasProperty`"
|
|
5
|
+
exports.codemod_0001_rename_has_async_property = new JscodeshiftMod_1.JscodeshiftMod(1, "codemod_0001-rename_has_async_property", "Rename `hasAsyncProperty` to `hasProperty`");
|
|
6
6
|
const renames = new Map([
|
|
7
7
|
["hasAsyncProperty", "hasProperty"],
|
|
8
8
|
["hasReactiveAsyncProperty", "hasReactiveProperty"],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codemod_0001-rename_has_async_property.js","sourceRoot":"","sources":["../../src/codemods/codemod_0001-rename_has_async_property.ts"],"names":[],"mappings":";;;AACA,qDAAkD;AAErC,QAAA,sCAAsC,GAAG,IAAI,+BAAc,CACtE,CAAC,EACD,wCAAwC,EACxC,4CAA4C,
|
|
1
|
+
{"version":3,"file":"codemod_0001-rename_has_async_property.js","sourceRoot":"","sources":["../../src/codemods/codemod_0001-rename_has_async_property.ts"],"names":[],"mappings":";;;AACA,qDAAkD;AAErC,QAAA,sCAAsC,GAAG,IAAI,+BAAc,CACtE,CAAC,EACD,wCAAwC,EACxC,4CAA4C,CAC7C,CAAC;AAEF,MAAM,OAAO,GAAG,IAAI,GAAG,CAAiB;IACtC,CAAC,kBAAkB,EAAE,aAAa,CAAC;IACnC,CAAC,0BAA0B,EAAE,qBAAqB,CAAC;IACnD,CAAC,eAAe,EAAE,UAAU,CAAC;IAC7B,CAAC,mBAAmB,EAAE,cAAc,CAAC;IACrC,CAAC,iBAAiB,EAAE,YAAY,CAAC;IACjC,CAAC,uBAAuB,EAAE,kBAAkB,CAAC;CAC9C,CAAC,CAAC;AAEH,+FAA+F;AAC/F,MAAM,SAAS,GAAc,UAAU,IAAI,EAAE,GAAG;IAC9C,MAAM,CAAC,GAAG,GAAG,CAAC,WAAW,CAAC;IAC1B,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;SAClB,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC;SAClB,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE;QAChB,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,OAAO;QACT,CAAC;QACD,CAAC,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5C,CAAC,CAAC;SACD,QAAQ,EAAE,CAAC;AAChB,CAAC,CAAC;AAEF,kBAAe,SAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "joist-codegen",
|
|
3
|
-
"version": "2.1.0-next.
|
|
3
|
+
"version": "2.1.0-next.20",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"build"
|
|
18
18
|
],
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"joist-utils": "2.1.0-next.
|
|
20
|
+
"joist-utils": "2.1.0-next.20",
|
|
21
21
|
"knex": "^3.1.0",
|
|
22
22
|
"pg": "^8.16.3"
|
|
23
23
|
},
|