Skip to content

Commit

Permalink
Fixed a typo in an IF statement (#5976)
Browse files Browse the repository at this point in the history
Signed-off-by: Nikola Stancic <[email protected]>
  • Loading branch information
Nikoraii authored Feb 24, 2025
1 parent 355025d commit 8cc1d40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,9 @@ function updatePackage(packageRoot, templates) {
const preferedOrder = ['name', 'version', 'main', 'svelte', 'types', 'files', 'author', 'template', 'license', 'scripts', 'devDependencies', 'dependencies', 'repository', 'publishConfig']

Object.keys(currentPackage).forEach(it => {
if( !preferedOrder.includes(it)) [
if( !preferedOrder.includes(it)) {
preferedOrder.push(it)
]
}
})

const ordered = preferedOrder.reduce(
Expand Down

0 comments on commit 8cc1d40

Please sign in to comment.