diff --git a/.nix/pkgs/graphite.nix b/.nix/pkgs/graphite.nix index 8a4fa78251..1517869bc4 100644 --- a/.nix/pkgs/graphite.nix +++ b/.nix/pkgs/graphite.nix @@ -44,18 +44,15 @@ let // { cargoArtifacts = deps.crane.lib.buildDepsOnly resourcesCommon; - # TODO: Remove the need for this hash by using individual package resolutions and hashes from package-lock.json - npmDeps = pkgs.fetchNpmDeps { - inherit (info) pname version; - src = "${info.src}/frontend"; - hash = "sha256-WlwzWGoFi3hjRuM5ucrgavko/gg4iFAwMc6uMLjT/FI="; + npmDeps = pkgs.importNpmLock { + npmRoot = "${info.src}/frontend"; }; npmRoot = "frontend"; npmConfigScript = "setup"; makeCacheWritable = true; - nativeBuildInputs = tools.frontend ++ [ pkgs.npmHooks.npmConfigHook ]; + nativeBuildInputs = tools.frontend ++ [ pkgs.importNpmLock.npmConfigHook ]; prePatch = '' mkdir branding diff --git a/.vscode/settings.json b/.vscode/settings.json index a7531b59f8..2b554eefae 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -67,6 +67,9 @@ "cSpell.language": "en-US", "cSpell.logLevel": "Information", "cSpell.allowCompoundWords": true, + // Other extensions config + "evenBetterToml.formatter.alignComments": false, + "package-json-upgrade.ignorePatterns": ["source-sans-pro"], // VS Code config "html.format.wrapLineLength": 200, "files.eol": "\n", @@ -75,6 +78,5 @@ "*.graphite": "json" }, "editor.renderWhitespace": "boundary", - "editor.minimap.markSectionHeaderRegex": "// ===+\\n\\s*//\\s*(?