Skip to content

Commit

Permalink
feat: add svelte to sort order list (#260)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrtnbroder committed May 2, 2022
1 parent 2cfaa5a commit 50f9102
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions defaultRules.md
Expand Up @@ -29,6 +29,7 @@ _Note: when a specific key order is used, any other keys will be sorted in the e
| imports | |
| exports | |
| main | |
| svelte | |
| umd:main | |
| jsdelivr | |
| unpkg | |
Expand Down
1 change: 1 addition & 0 deletions index.js
Expand Up @@ -215,6 +215,7 @@ const fields = [
{ key: 'imports' },
{ key: 'exports' },
{ key: 'main' },
{ key: 'svelte' },
{ key: 'umd:main' },
{ key: 'jsdelivr' },
{ key: 'unpkg' },
Expand Down
1 change: 1 addition & 0 deletions tests/fields.js
Expand Up @@ -15,6 +15,7 @@ for (const field of [
'publisher',
'type',
'main',
'svelte',
'umd:main',
'jsdelivr',
'unpkg',
Expand Down
2 changes: 2 additions & 0 deletions tests/snapshots/main.js.md
Expand Up @@ -99,6 +99,7 @@ Generated by [AVA](https://avajs.dev).
"source": "source",␊
"style": "style",␊
"stylelint": "stylelint",␊
"svelte": "svelte",␊
"tap": "tap",␊
"type": "type",␊
"types": "types",␊
Expand Down Expand Up @@ -136,6 +137,7 @@ Generated by [AVA](https://avajs.dev).
"imports": "imports",␊
"exports": "exports",␊
"main": "main",␊
"svelte": "svelte",␊
"umd:main": "umd:main",␊
"jsdelivr": "jsdelivr",␊
"unpkg": "unpkg",␊
Expand Down
Binary file modified tests/snapshots/main.js.snap
Binary file not shown.

0 comments on commit 50f9102

Please sign in to comment.