@kamaalio/codemod-kit 0.0.31 → 0.0.32
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.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -553,7 +553,7 @@ async function runCodemod(codemod, transformationPath, options) {
|
|
|
553
553
|
hasChanges,
|
|
554
554
|
content: modifiedContent,
|
|
555
555
|
fullPath,
|
|
556
|
-
root: filepath.split('/')[0]
|
|
556
|
+
root: external_node_path_default().resolve(transformationPath, filepath.split('/')[0])
|
|
557
557
|
});
|
|
558
558
|
} catch (error) {
|
|
559
559
|
if (enableLogging) console.error(`\u{274C} '${codemod.name}' failed to parse file`, filepath, error);
|
package/dist/index.js
CHANGED
|
@@ -504,7 +504,7 @@ async function runCodemod(codemod, transformationPath, options) {
|
|
|
504
504
|
hasChanges,
|
|
505
505
|
content: modifiedContent,
|
|
506
506
|
fullPath,
|
|
507
|
-
root: filepath.split('/')[0]
|
|
507
|
+
root: node_path.resolve(transformationPath, filepath.split('/')[0])
|
|
508
508
|
});
|
|
509
509
|
} catch (error) {
|
|
510
510
|
if (enableLogging) console.error(`\u{274C} '${codemod.name}' failed to parse file`, filepath, error);
|