We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a21514f commit a820620Copy full SHA for a820620
bin/vue-codemod.ts
@@ -136,7 +136,7 @@ function processTransformation(
136
debug(`Processing ${p}…`)
137
const fileInfo = {
138
path: p,
139
- source: fs.readFileSync(p).toString()
+ source: fs.readFileSync(p).toString().split('\r\n').join('\n'),
140
}
141
const extension = (/\.([^.]*)$/.exec(fileInfo.path) || [])[0]
142
if (!extensions.includes(extension)) {
@@ -151,7 +151,7 @@ function processTransformation(
151
params as object
152
)
153
154
- if (fs.readFileSync(p).toString() != result) {
+ if (fileInfo.source != result) {
155
fs.writeFileSync(p, result)
156
if (util.inspect(processFilePath).indexOf(util.inspect(p)) == -1) {
157
processFilePath.push(p)
0 commit comments