Skip to content

Commit

Permalink
fix(js): fix typo so exports field in package.json is properly sorted
Browse files Browse the repository at this point in the history
  • Loading branch information
leosvelperez committed Jan 16, 2025
1 parent d0078d0 commit 2a1e2dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/js/src/utils/package-json/sort-fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function sortPackageJsonFields(tree: Tree, projectRoot: string) {
'main',
'module',
'types',
'exported',
'exports',
]);
const orderedBottomFields = new Set([
'dependencies',
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/generators/library/library.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1027,8 +1027,8 @@ module.exports = withNx(
"main",
"module",
"types",
"nx",
"exports",
"nx",
]
`);
expect(readJson(tree, 'mylib/tsconfig.json')).toMatchInlineSnapshot(`
Expand Down

0 comments on commit 2a1e2dd

Please sign in to comment.