Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
Expand All @@ -18,3 +18,8 @@ repos:
- ts
- json
pass_filenames: false
- id: rehash
name: rehash
language: system
entry: just rehash-npm-nix
pass_filenames: false
7 changes: 3 additions & 4 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,10 @@ lint:
npm run lint

update:
pre-commit autoupdate
nix flake update
npm update
just rehash-npm-nix

nix develop --command pre-commit autoupdate
nix develop --command npm update
nix develop --command just rehash-npm-nix

rehash-npm-nix:
sd 'npmDepsHash = ".*";' "npmDepsHash = \"$(nix hash convert --to sri $(prefetch-npm-deps ./package-lock.json))\";" vsix.nix
6 changes: 3 additions & 3 deletions flake.lock

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

29 changes: 14 additions & 15 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,20 @@
npm ci
pre-commit install
'';
packages =
[
vscode
nodejs
typescript
vsce
pre-commit
just
nodePackages.typescript-language-server
prefetch-npm-deps
sd
]
++ pkgs.lib.optionals pkgs.stdenv.isLinux [
xvfb-run
];
packages = [
vscode
nodejs
typescript
vsce
pre-commit
just
nodePackages.typescript-language-server
prefetch-npm-deps
sd
]
++ pkgs.lib.optionals pkgs.stdenv.isLinux [
xvfb-run
];
};

formatter = pkgs.nixfmt-rfc-style;
Expand Down
Loading
Loading