diff --git a/index.js b/index.js index 298e87dd..a361b034 100755 --- a/index.js +++ b/index.js @@ -192,7 +192,8 @@ const fields = [ /* vscode */ { key: 'publisher' }, { key: 'sideEffects' }, { key: 'type' }, - { key: 'exports', over: sortObject }, + { key: 'imports' }, + { key: 'exports' }, { key: 'main' }, { key: 'umd:main' }, { key: 'jsdelivr' }, diff --git a/tests/fields.js b/tests/fields.js index 75a033b7..72bc18c7 100644 --- a/tests/fields.js +++ b/tests/fields.js @@ -44,7 +44,6 @@ for (const field of [ // fields sort alphabetically for (const field of [ - 'exports', 'bin', 'contributes', 'commitlint', diff --git a/tests/snapshots/cli.js.snap b/tests/snapshots/cli.js.snap index c35203fb..05b8477c 100644 Binary files a/tests/snapshots/cli.js.snap and b/tests/snapshots/cli.js.snap differ diff --git a/tests/snapshots/main.js.md b/tests/snapshots/main.js.md index de757e34..0219785f 100644 --- a/tests/snapshots/main.js.md +++ b/tests/snapshots/main.js.md @@ -53,6 +53,7 @@ Generated by [AVA](https://avajs.dev). "homepage": "homepage",␊ "husky": "husky",␊ "icon": "icon",␊ + "imports": "imports",␊ "jest": "jest",␊ "jsdelivr": "jsdelivr",␊ "jsnext:main": "jsnext:main",␊ @@ -121,6 +122,7 @@ Generated by [AVA](https://avajs.dev). "publisher": "publisher",␊ "sideEffects": "sideEffects",␊ "type": "type",␊ + "imports": "imports",␊ "exports": "exports",␊ "main": "main",␊ "umd:main": "umd:main",␊ diff --git a/tests/snapshots/main.js.snap b/tests/snapshots/main.js.snap index 83b9dd31..e0fb37f3 100644 Binary files a/tests/snapshots/main.js.snap and b/tests/snapshots/main.js.snap differ