[PCPlugin] Accept all valid file extensions, not just js

This commit is contained in:
Ducko 2021-06-07 18:49:22 +01:00 committed by Alyxia Sother
parent 9b36c9d799
commit e2f529d7fc
No known key found for this signature in database
GPG key ID: 355968D14144B739

View file

@ -41,7 +41,7 @@ export default (manifestPath, repo) => {
writeFileSync(join(baseDir, `index.js`), content);
for (const jsFile of glob.sync(`${baseDir}/**/*.js`)) {
for (const jsFile of glob.sync(`${baseDir}/**/*.{js,jsx,ts,tsx}`)) {
console.log(jsFile);
let content = readFileSync(jsFile, 'utf8');