Skip to content

Commit

Permalink
fix: 拷贝问题修复
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyatong committed Sep 25, 2024
1 parent 20abf57 commit 471061b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/rn/copy-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const removeFile = async (url) => {
}

const modify = (fileUrl, importStatement) => {
if(!fse.ensureFileSync(fileUrl)) return
// if(!fse.ensureFileSync(fileUrl)) return
fse.readFile(fileUrl, 'utf8').then((content) => {
let modifiedContent = content
modifiedContent = [importStatement, modifiedContent.slice(0)].join('')
Expand Down

0 comments on commit 471061b

Please sign in to comment.