mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 01:12:56 +03:00
ca61619c06
I found myself wanting to rewrite JSON files with `sed`. The problem is, then I want to run a formatter over them afterwards, and this will change the whole file, not just the area I touched. I would like to propose the nuclear option in remedying this: format everything now. This is a very large change that should make it easier to keep files to a consistent format in the future. I have chosen to use Prettier for this because (a) it has a useful `--write` command and (b) it also does GraphQL, Markdown, YAML, etc. I've elected to exclude two sets of files: 1. `crates/custom-connector/data/*.json`, because they are actually multiple JSON objects, one per line, which Prettier cannot parse. 2. `crates/lang-graphql/tests/**/*.graphql`, because it contains invalid GraphQL, and the parser is intended to work with strangely-formatted GraphQL. The main changes are standardizing whitespace, adding a newline at the end of files, and putting JSON arrays on one line when they fit. V3_GIT_ORIGIN_REV_ID: 92d4a535c34a3cc00721e8ddc6f17c5717e8ff76
100 lines
2.5 KiB
JSON
100 lines
2.5 KiB
JSON
{
|
|
"nodes": {
|
|
"crane": {
|
|
"inputs": {
|
|
"nixpkgs": ["nixpkgs"]
|
|
},
|
|
"locked": {
|
|
"lastModified": 1711407199,
|
|
"narHash": "sha256-A/nB4j3JHL51ztlMQdfKw6y8tUJJzai3bLsZUEEaBxY=",
|
|
"owner": "ipetkov",
|
|
"repo": "crane",
|
|
"rev": "7e468a455506f2e65550e08dfd45092f0857a009",
|
|
"type": "github"
|
|
},
|
|
"original": {
|
|
"owner": "ipetkov",
|
|
"repo": "crane",
|
|
"type": "github"
|
|
}
|
|
},
|
|
"flake-utils": {
|
|
"inputs": {
|
|
"systems": "systems"
|
|
},
|
|
"locked": {
|
|
"lastModified": 1710146030,
|
|
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
|
"owner": "numtide",
|
|
"repo": "flake-utils",
|
|
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
|
"type": "github"
|
|
},
|
|
"original": {
|
|
"owner": "numtide",
|
|
"repo": "flake-utils",
|
|
"type": "github"
|
|
}
|
|
},
|
|
"nixpkgs": {
|
|
"locked": {
|
|
"lastModified": 1711461781,
|
|
"narHash": "sha256-nI/IhcOS7r8EOe6wMojDptDL0VFVbl05gPd0EW1COts=",
|
|
"owner": "NixOS",
|
|
"repo": "nixpkgs",
|
|
"rev": "b776d8d98eaa689c6a4b23fe84eb8ea241bf4861",
|
|
"type": "github"
|
|
},
|
|
"original": {
|
|
"owner": "NixOS",
|
|
"repo": "nixpkgs",
|
|
"type": "github"
|
|
}
|
|
},
|
|
"root": {
|
|
"inputs": {
|
|
"crane": "crane",
|
|
"flake-utils": "flake-utils",
|
|
"nixpkgs": "nixpkgs",
|
|
"rust-overlay": "rust-overlay"
|
|
}
|
|
},
|
|
"rust-overlay": {
|
|
"inputs": {
|
|
"flake-utils": ["flake-utils"],
|
|
"nixpkgs": ["nixpkgs"]
|
|
},
|
|
"locked": {
|
|
"lastModified": 1711419061,
|
|
"narHash": "sha256-+5M/czgYGqs/jKmi8bvYC+JUYboUKNTfkRiesXopeXQ=",
|
|
"owner": "oxalica",
|
|
"repo": "rust-overlay",
|
|
"rev": "4c11d2f698ff1149f76b69e72852d5d75f492d0c",
|
|
"type": "github"
|
|
},
|
|
"original": {
|
|
"owner": "oxalica",
|
|
"repo": "rust-overlay",
|
|
"type": "github"
|
|
}
|
|
},
|
|
"systems": {
|
|
"locked": {
|
|
"lastModified": 1681028828,
|
|
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
"owner": "nix-systems",
|
|
"repo": "default",
|
|
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
"type": "github"
|
|
},
|
|
"original": {
|
|
"owner": "nix-systems",
|
|
"repo": "default",
|
|
"type": "github"
|
|
}
|
|
}
|
|
},
|
|
"root": "root",
|
|
"version": 7
|
|
}
|