codemodctl 0.1.21 → 0.1.22
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/dist/cli.js +3 -3
- package/dist/{codemod-cli-Cl-7TuC_.js → codemod-cli-BQQPxYTD.js} +1 -1
- package/dist/{codeowner-analysis-Bgj5KJGV.js → codeowner-analysis-D3XpZOO4.js} +1 -1
- package/dist/codeowners.js +2 -2
- package/dist/{directory-analysis-B78voaeo.js → directory-analysis-DMLZDexQ.js} +1 -1
- package/dist/directory.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./codemod-cli-
|
|
3
|
-
import { t as analyzeCodeowners } from "./codeowner-analysis-
|
|
2
|
+
import "./codemod-cli-BQQPxYTD.js";
|
|
3
|
+
import { t as analyzeCodeowners } from "./codeowner-analysis-D3XpZOO4.js";
|
|
4
4
|
import "./consistent-sharding-CQg-qiBA.js";
|
|
5
|
-
import { t as analyzeDirectories } from "./directory-analysis-
|
|
5
|
+
import { t as analyzeDirectories } from "./directory-analysis-DMLZDexQ.js";
|
|
6
6
|
import { defineCommand, runMain } from "citty";
|
|
7
7
|
import crypto from "node:crypto";
|
|
8
8
|
import { $ } from "execa";
|
|
@@ -7,7 +7,7 @@ import { execSync } from "node:child_process";
|
|
|
7
7
|
*/
|
|
8
8
|
async function getApplicableFiles(rulePath, language, projectRoot) {
|
|
9
9
|
try {
|
|
10
|
-
const command = `npx -y codemod@1.0.18 jssg list-applicable --
|
|
10
|
+
const command = `npx -y codemod@1.0.18 jssg list-applicable --language ${language} --target ${projectRoot} ${rulePath}`;
|
|
11
11
|
console.debug(`Executing: ${command}`);
|
|
12
12
|
const applicableFiles = execSync(command, {
|
|
13
13
|
encoding: "utf8",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as getApplicableFiles } from "./codemod-cli-
|
|
2
|
+
import { t as getApplicableFiles } from "./codemod-cli-BQQPxYTD.js";
|
|
3
3
|
import Codeowners from "codeowners";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import path, { resolve } from "node:path";
|
package/dist/codeowners.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./codemod-cli-
|
|
3
|
-
import { a as generateShards, i as findCodeownersFile, n as analyzeFilesByOwner, o as getTeamFileInfo, r as analyzeFilesWithoutOwner, s as normalizeOwnerName, t as analyzeCodeowners } from "./codeowner-analysis-
|
|
2
|
+
import "./codemod-cli-BQQPxYTD.js";
|
|
3
|
+
import { a as generateShards, i as findCodeownersFile, n as analyzeFilesByOwner, o as getTeamFileInfo, r as analyzeFilesWithoutOwner, s as normalizeOwnerName, t as analyzeCodeowners } from "./codeowner-analysis-D3XpZOO4.js";
|
|
4
4
|
|
|
5
5
|
export { analyzeCodeowners, analyzeFilesByOwner, analyzeFilesWithoutOwner, findCodeownersFile, generateShards, getTeamFileInfo, normalizeOwnerName };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as getApplicableFiles } from "./codemod-cli-
|
|
2
|
+
import { t as getApplicableFiles } from "./codemod-cli-BQQPxYTD.js";
|
|
3
3
|
import { n as calculateOptimalShardCount, r as distributeFilesAcrossShards } from "./consistent-sharding-CQg-qiBA.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
|
package/dist/directory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./codemod-cli-
|
|
2
|
+
import "./codemod-cli-BQQPxYTD.js";
|
|
3
3
|
import "./consistent-sharding-CQg-qiBA.js";
|
|
4
|
-
import { n as createDirectoryShards, r as groupFilesByDirectory, t as analyzeDirectories } from "./directory-analysis-
|
|
4
|
+
import { n as createDirectoryShards, r as groupFilesByDirectory, t as analyzeDirectories } from "./directory-analysis-DMLZDexQ.js";
|
|
5
5
|
|
|
6
6
|
export { analyzeDirectories, createDirectoryShards, groupFilesByDirectory };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./codemod-cli-
|
|
3
|
-
import { a as generateShards, i as findCodeownersFile, n as analyzeFilesByOwner, o as getTeamFileInfo, r as analyzeFilesWithoutOwner, s as normalizeOwnerName, t as analyzeCodeowners } from "./codeowner-analysis-
|
|
2
|
+
import "./codemod-cli-BQQPxYTD.js";
|
|
3
|
+
import { a as generateShards, i as findCodeownersFile, n as analyzeFilesByOwner, o as getTeamFileInfo, r as analyzeFilesWithoutOwner, s as normalizeOwnerName, t as analyzeCodeowners } from "./codeowner-analysis-D3XpZOO4.js";
|
|
4
4
|
import { a as getFileHashPosition, i as fitsInShard, n as calculateOptimalShardCount, o as getNumericFileNameSha1, r as distributeFilesAcrossShards, s as getShardForFilename, t as analyzeShardScaling } from "./consistent-sharding-CQg-qiBA.js";
|
|
5
5
|
|
|
6
6
|
export { analyzeCodeowners, analyzeFilesByOwner, analyzeFilesWithoutOwner, analyzeShardScaling, calculateOptimalShardCount, distributeFilesAcrossShards, findCodeownersFile, fitsInShard, generateShards, getFileHashPosition, getNumericFileNameSha1, getShardForFilename, getTeamFileInfo, normalizeOwnerName };
|