Skip to content

Commit

Permalink
feat: add svelte to sort order list
Browse files Browse the repository at this point in the history
This keeps svelte entry points on the same level as main, unpkg, module etc.
  • Loading branch information
mrtnbroder committed May 2, 2022
1 parent 2cfaa5a commit aedee8e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
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 aedee8e

Please sign in to comment.