codemodctl 0.1.22 → 0.1.25
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-BQQPxYTD.js → codemod-cli-Bg-LwFEk.js} +1 -1
- package/dist/{codeowner-analysis-D3XpZOO4.js → codeowner-analysis-pEygA0IV.js} +1 -1
- package/dist/codeowners.js +2 -2
- package/dist/{directory-analysis-DMLZDexQ.js → directory-analysis-C4q0A0YM.js} +1 -1
- package/dist/directory.js +2 -2
- package/dist/index.js +2 -2
- package/package.json +2 -2
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-Bg-LwFEk.js";
|
|
3
|
+
import { t as analyzeCodeowners } from "./codeowner-analysis-pEygA0IV.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-C4q0A0YM.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@latest jssg list-applicable --no-interactive --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-Bg-LwFEk.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-Bg-LwFEk.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-pEygA0IV.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-Bg-LwFEk.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-Bg-LwFEk.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-C4q0A0YM.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-Bg-LwFEk.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-pEygA0IV.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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codemodctl",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.25",
|
|
4
4
|
"description": "CLI tool and utilities for workflow engine operations, file sharding, and codeowner analysis",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"@typescript/native-preview": "7.0.0-dev.20251018.1",
|
|
37
37
|
"oxlint": "^1.23.0",
|
|
38
38
|
"tsdown": "^0.15.4",
|
|
39
|
-
"typescript": "^5.
|
|
39
|
+
"typescript": "^5.9.3",
|
|
40
40
|
"vitest": "^3.0.5",
|
|
41
41
|
"@acme/tsconfig": "0.1.0"
|
|
42
42
|
},
|