Skip to content

Commit

Permalink
build(deps): bump sort-package-json from 1.57.0 to 2.6.0 (#973)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alex Sanders <[email protected]>
  • Loading branch information
dependabot[bot] and sndrs authored Jan 8, 2024
1 parent 2ac0f87 commit 2742500
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 74 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"react": "18.2.0",
"react-dom": "18.2.0",
"require-from-string": "2.0.2",
"sort-package-json": "2.1.0",
"sort-package-json": "2.6.0",
"storybook": "7.6.5",
"ts-jest": "29.1.1",
"tsconfig-paths-webpack-plugin": "4.1.0",
Expand Down
86 changes: 15 additions & 71 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion tools/nx-plugins/npm-package/build/set-package-defaults.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import path from 'node:path';
import type * as ReadPackage from 'read-pkg';
import sortPkgJson from 'sort-package-json';
import type * as SortPkgJson from 'sort-package-json';
import type { JsonObject } from 'type-fest';
import type * as WritePackage from 'write-pkg';
import type { BuildExecutorOptions } from './schema';
Expand Down Expand Up @@ -69,6 +69,10 @@ export const setPackageDefaults = async (
);
}

const { default: sortPkgJson } = (await esmModuleImport(
'sort-package-json',
)) as typeof SortPkgJson;

const sortedPkg = sortPkgJson({
...pkgDefaults,
...pkg,
Expand Down
2 changes: 1 addition & 1 deletion tools/nx-plugins/npm-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"read-pkg": "9.0.1",
"rollup": "4.9.4",
"rollup-plugin-ts": "3.4.5",
"sort-package-json": "1.57.0",
"sort-package-json": "2.6.0",
"tslib": "2.6.2",
"type-fest": "4.9.0",
"typescript": "5.3.3",
Expand Down

0 comments on commit 2742500

Please sign in to comment.