Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add svelte to sort order list #260

Merged
merged 2 commits into from May 2, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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.