Skip to content

Commit c1987da

Browse files
committed
fix: files that upgrade type is keep was covered when upgrade and update
1 parent 14bef25 commit c1987da

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/commands/update.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ module.exports = async (options) => {
8585
})
8686

8787
await prompt(config)
88+
config.template.files = config.template.files.filter(file => file.upgrade !== 'keep')
8889
await applyTemplate(cwd, config)
8990
await config.template.hooks('afterUpdate')
9091
}

src/commands/upgrade.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ module.exports = async (options = {}) => {
3434
})
3535

3636
await prompt(config)
37+
config.template.files = config.template.files.filter(file => file.upgrade !== 'keep')
3738
await applyTemplate(cwd, config)
3839
await config.template.hooks('afterUpgrade')
3940
}

0 commit comments

Comments
 (0)