Skip to content

Commit 74bd8b6

Browse files
author
yuzhe.sun
committed
exclude js file in public
1 parent acd8904 commit 74bd8b6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,7 @@ async function init() {
505505
() => {},
506506
(filepath) => {
507507
if (filepath.endsWith('.js')) {
508+
if (filepath.indexOf('\\public\\') !== -1) return
508509
const tsFilePath = filepath.replace(/\.js$/, '.ts')
509510
if (fs.existsSync(tsFilePath)) {
510511
fs.unlinkSync(filepath)

0 commit comments

Comments
 (0)