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 a41fd45 commit 3a8018bCopy full SHA for 3a8018b
scripts/rn/copy-file.js
@@ -76,6 +76,7 @@ const removeFile = async (url) => {
76
}
77
78
const modify = (fileUrl, importStatement) => {
79
+ if(!fse.ensureFileSync(fileUrl)) return
80
fse.readFile(fileUrl, 'utf8').then((content) => {
81
let modifiedContent = content
82
modifiedContent = [importStatement, modifiedContent.slice(0)].join('')
0 commit comments