codemodctl 0.1.26 → 0.1.28
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 +4 -4
- package/dist/{codemod-cli-LxoQiHPE.js → codemod-cli-Bf23tAfy.js} +1 -1
- package/dist/{codeowner-analysis-C9Zb2kkv.js → codeowner-analysis-CV8ViyRo.js} +1 -1
- package/dist/{codeowners.d.ts → codeowners-wUVZpo5a.d.ts} +1 -1
- package/dist/codeowners.js +2 -2
- package/dist/{directory-analysis-BEyqWlEM.js → directory-analysis-BrskPjFj.js} +2 -2
- package/dist/directory.js +3 -3
- package/dist/{index.d.ts → index-B8UaFL07.d.ts} +2 -2
- package/dist/index.js +3 -3
- package/dist/{sharding.d.ts → sharding-mTVJuvng.d.ts} +1 -1
- package/dist/sharding.js +1 -1
- package/package.json +4 -4
- /package/dist/{cli.d.ts → cli-Baw84_F1.d.ts} +0 -0
- /package/dist/{codeowner-analysis-BAoreMb0.d.ts → codeowner-analysis-Db2TrMsU.d.ts} +0 -0
- /package/dist/{consistent-sharding-bHfBogeY.d.ts → consistent-sharding-BzehCX2u.d.ts} +0 -0
- /package/dist/{consistent-sharding-CQg-qiBA.js → consistent-sharding-jDHVRq1U.js} +0 -0
- /package/dist/{directory.d.ts → directory-DDTTPOKF.d.ts} +0 -0
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-
|
|
4
|
-
import "./consistent-sharding-
|
|
5
|
-
import { t as analyzeDirectories } from "./directory-analysis-
|
|
2
|
+
import "./codemod-cli-Bf23tAfy.js";
|
|
3
|
+
import { t as analyzeCodeowners } from "./codeowner-analysis-CV8ViyRo.js";
|
|
4
|
+
import "./consistent-sharding-jDHVRq1U.js";
|
|
5
|
+
import { t as analyzeDirectories } from "./directory-analysis-BrskPjFj.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@
|
|
10
|
+
const command = `npx -y codemod@1.2.1 jssg list-applicable --allow-fs --allow-fetch --allow-child-process --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-Bf23tAfy.js";
|
|
3
3
|
import Codeowners from "codeowners";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
import path, { resolve } from "node:path";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as analyzeCodeowners, c as findCodeownersFile, d as normalizeOwnerName, i as TeamFileInfo, l as generateShards, n as CodeownerAnalysisResult, o as analyzeFilesByOwner, r as ShardResult, s as analyzeFilesWithoutOwner, t as CodeownerAnalysisOptions, u as getTeamFileInfo } from "./codeowner-analysis-
|
|
1
|
+
import { a as analyzeCodeowners, c as findCodeownersFile, d as normalizeOwnerName, i as TeamFileInfo, l as generateShards, n as CodeownerAnalysisResult, o as analyzeFilesByOwner, r as ShardResult, s as analyzeFilesWithoutOwner, t as CodeownerAnalysisOptions, u as getTeamFileInfo } from "./codeowner-analysis-Db2TrMsU.js";
|
|
2
2
|
export { CodeownerAnalysisOptions, CodeownerAnalysisResult, ShardResult, TeamFileInfo, analyzeCodeowners, analyzeFilesByOwner, analyzeFilesWithoutOwner, findCodeownersFile, generateShards, getTeamFileInfo, normalizeOwnerName };
|
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-Bf23tAfy.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-CV8ViyRo.js";
|
|
4
4
|
|
|
5
5
|
export { analyzeCodeowners, analyzeFilesByOwner, analyzeFilesWithoutOwner, findCodeownersFile, generateShards, getTeamFileInfo, normalizeOwnerName };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { t as getApplicableFiles } from "./codemod-cli-
|
|
3
|
-
import { n as calculateOptimalShardCount, r as distributeFilesAcrossShards } from "./consistent-sharding-
|
|
2
|
+
import { t as getApplicableFiles } from "./codemod-cli-Bf23tAfy.js";
|
|
3
|
+
import { n as calculateOptimalShardCount, r as distributeFilesAcrossShards } from "./consistent-sharding-jDHVRq1U.js";
|
|
4
4
|
import path from "node:path";
|
|
5
5
|
|
|
6
6
|
//#region src/utils/directory-analysis.ts
|
package/dist/directory.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import "./codemod-cli-
|
|
3
|
-
import "./consistent-sharding-
|
|
4
|
-
import { n as createDirectoryShards, r as groupFilesByDirectory, t as analyzeDirectories } from "./directory-analysis-
|
|
2
|
+
import "./codemod-cli-Bf23tAfy.js";
|
|
3
|
+
import "./consistent-sharding-jDHVRq1U.js";
|
|
4
|
+
import { n as createDirectoryShards, r as groupFilesByDirectory, t as analyzeDirectories } from "./directory-analysis-BrskPjFj.js";
|
|
5
5
|
|
|
6
6
|
export { analyzeDirectories, createDirectoryShards, groupFilesByDirectory };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
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-
|
|
2
|
-
import { a as analyzeCodeowners, c as findCodeownersFile, d as normalizeOwnerName, i as TeamFileInfo, l as generateShards, n as CodeownerAnalysisResult, o as analyzeFilesByOwner, r as ShardResult, s as analyzeFilesWithoutOwner, t as CodeownerAnalysisOptions, u as getTeamFileInfo } from "./codeowner-analysis-
|
|
1
|
+
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-BzehCX2u.js";
|
|
2
|
+
import { a as analyzeCodeowners, c as findCodeownersFile, d as normalizeOwnerName, i as TeamFileInfo, l as generateShards, n as CodeownerAnalysisResult, o as analyzeFilesByOwner, r as ShardResult, s as analyzeFilesWithoutOwner, t as CodeownerAnalysisOptions, u as getTeamFileInfo } from "./codeowner-analysis-Db2TrMsU.js";
|
|
3
3
|
export { CodeownerAnalysisOptions, CodeownerAnalysisResult, ShardResult, TeamFileInfo, analyzeCodeowners, analyzeFilesByOwner, analyzeFilesWithoutOwner, analyzeShardScaling, calculateOptimalShardCount, distributeFilesAcrossShards, findCodeownersFile, fitsInShard, generateShards, getFileHashPosition, getNumericFileNameSha1, getShardForFilename, getTeamFileInfo, normalizeOwnerName };
|
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-
|
|
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-
|
|
2
|
+
import "./codemod-cli-Bf23tAfy.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-CV8ViyRo.js";
|
|
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-jDHVRq1U.js";
|
|
5
5
|
|
|
6
6
|
export { analyzeCodeowners, analyzeFilesByOwner, analyzeFilesWithoutOwner, analyzeShardScaling, calculateOptimalShardCount, distributeFilesAcrossShards, findCodeownersFile, fitsInShard, generateShards, getFileHashPosition, getNumericFileNameSha1, getShardForFilename, getTeamFileInfo, normalizeOwnerName };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
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-
|
|
1
|
+
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-BzehCX2u.js";
|
|
2
2
|
export { analyzeShardScaling, calculateOptimalShardCount, distributeFilesAcrossShards, fitsInShard, getFileHashPosition, getNumericFileNameSha1, getShardForFilename };
|
package/dist/sharding.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
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-
|
|
2
|
+
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-jDHVRq1U.js";
|
|
3
3
|
|
|
4
4
|
export { analyzeShardScaling, calculateOptimalShardCount, distributeFilesAcrossShards, fitsInShard, getFileHashPosition, getNumericFileNameSha1, getShardForFilename };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codemodctl",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.28",
|
|
4
4
|
"description": "CLI tool and utilities for workflow engine operations, file sharding, and codeowner analysis",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@types/node": "^22.16.5",
|
|
36
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
37
|
-
"oxlint": "^1.
|
|
36
|
+
"@typescript/native-preview": "7.0.0-dev.20251120.1",
|
|
37
|
+
"oxlint": "^1.29.0",
|
|
38
38
|
"tsdown": "^0.15.4",
|
|
39
39
|
"typescript": "^5.9.3",
|
|
40
|
-
"vitest": "^
|
|
40
|
+
"vitest": "^4.0.9",
|
|
41
41
|
"@acme/tsconfig": "0.1.0"
|
|
42
42
|
},
|
|
43
43
|
"keywords": [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|