@wise/wds-codemods 0.0.1-experimental-4e597ee → 0.0.1-experimental-cd881b3
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/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/{reportManualReview-cd73vDXT.js → reportManualReview-CQm-npxR.js} +4 -3
- package/dist/{reportManualReview-cd73vDXT.js.map → reportManualReview-CQm-npxR.js.map} +1 -1
- package/dist/transforms/button.js +10 -7
- package/dist/transforms/button.js.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const require_reportManualReview = require('./reportManualReview-
|
|
2
|
+
const require_reportManualReview = require('./reportManualReview-CQm-npxR.js');
|
|
3
3
|
const node_child_process = require_reportManualReview.__toESM(require("node:child_process"));
|
|
4
4
|
const node_fs_promises = require_reportManualReview.__toESM(require("node:fs/promises"));
|
|
5
5
|
const node_path = require_reportManualReview.__toESM(require("node:path"));
|
|
@@ -158,6 +158,7 @@ async function getOptions({ transformFiles, packages, root }) {
|
|
|
158
158
|
useGitIgnore
|
|
159
159
|
};
|
|
160
160
|
}
|
|
161
|
+
var getOptions_default = getOptions;
|
|
161
162
|
|
|
162
163
|
//#endregion
|
|
163
164
|
//#region src/utils/loadTransformModules.ts
|
|
@@ -178,6 +179,7 @@ async function loadTransformModules(transformsDir) {
|
|
|
178
179
|
transformFiles
|
|
179
180
|
};
|
|
180
181
|
}
|
|
182
|
+
var loadTransformModules_default = loadTransformModules;
|
|
181
183
|
|
|
182
184
|
//#endregion
|
|
183
185
|
//#region src/utils/repository.ts
|
|
@@ -5446,9 +5448,9 @@ async function runCodemod(transformsDir) {
|
|
|
5446
5448
|
const resolvedTransformsDir = transformsDir ?? node_path.default.resolve(currentDirPath, "../dist/transforms");
|
|
5447
5449
|
console.debug(`Resolved transforms directory: ${resolvedTransformsDir}`);
|
|
5448
5450
|
await resetReportFile(reportPath);
|
|
5449
|
-
const { transformFiles } = await
|
|
5451
|
+
const { transformFiles } = await loadTransformModules_default(resolvedTransformsDir);
|
|
5450
5452
|
if (transformFiles.length === 0) throw new Error(`No transform scripts found in directory: ${resolvedTransformsDir}`);
|
|
5451
|
-
const options = await
|
|
5453
|
+
const options = await getOptions_default({
|
|
5452
5454
|
packages,
|
|
5453
5455
|
root: findProjectRoot(),
|
|
5454
5456
|
transformFiles: await Promise.all(transformFiles)
|