Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

capi sync package json insertion ordering should be alphabetical #980

Closed
ryanleecode opened this issue May 8, 2023 · 1 comment
Closed
Assignees

Comments

@ryanleecode
Copy link
Contributor

When running capi sync --package-json package.json, any dependencies are added to the bottom of the dependencies {} block, this should be alphabetically instead.

Current:

"dependencies": {
  "@headlessui/react": "^1.7.11",
  "@preact/signals": "^1.1.3",
  "@talisman-connect/wallets": "^1.1.3",
  "capi": "0.1.0-beta.37",
  "dotenv": "^16.0.3",
  "preact": "^10.12.1",
  "react-hook-form": "^7.43.3",
  "react-router-dom": "^6.8.1",
  "scale-codec": "0.11.2",
  "tailwind-merge": "^1.10.0",
  "vite-tsconfig-paths": "^4.0.5",
  "zod": "^3.21.4",
  "@capi/westend": "https://capi.dev/9fccbde64e0e4b10/westend.tar"
}

Desired:

"dependencies": {
  "@capi/westend": "https://capi.dev/9fccbde64e0e4b10/westend.tar",
  "@headlessui/react": "^1.7.11",
  "@preact/signals": "^1.1.3",
  "@talisman-connect/wallets": "^1.1.3",
  "capi": "0.1.0-beta.37",
  "dotenv": "^16.0.3",
  "preact": "^10.12.1",
  "react-hook-form": "^7.43.3",
  "react-router-dom": "^6.8.1",
  "scale-codec": "0.11.2",
  "tailwind-merge": "^1.10.0",
  "vite-tsconfig-paths": "^4.0.5",
  "zod": "^3.21.4"
}
@ryanleecode
Copy link
Contributor Author

#1046

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

1 participant