javascript: simplify and update setup
1 file changed, 8 insertions(+), 32 deletions(-)
changed files
M user/settings/development/javascript.nix → user/settings/development/javascript.nix
@@ -3,33 +3,16 @@ , pkgs , ... }: let - nodejs = pkgs.nodejs-18_x; + nodejs = pkgs.nodejs; in { - nixpkgs.overlays = [ - (self: super: { - node2nixPackages = super.callPackage ../../packages/node2nix { - inherit nodejs; - }; - }) - ]; home.packages = - (with pkgs; - [ + (with pkgs; [ nodejs bun - ] - ++ ( - if stdenv.isDarwin - then [ - ] - else [ - # npm install may use any of these - binutils - gnumake - gcc - ] - )) + pnpm-shell-completion + bunyan-rs + ]) ++ (with pkgs.nodePackages; [ node2nix nodemon@@ -37,15 +20,8 @@ javascript-typescript-langserver typescript-language-server eslint_d typescript - - node-gyp - node-gyp-build - node-pre-gyp - ]) - ++ (with pkgs.node2nixPackages; [ - pkgs.node2nixPackages."pnpm-7.12" - - pino-pretty + pnpm + npm-merge-driver ]); home.sessionVariables = {@@ -68,7 +44,7 @@ avaw = "bunx ava --watch"; avaf = "bunx ava --fail-fast"; avafw = "bunx ava --fail-fast --watch"; avawf = "bunx ava --fail-fast --watch"; - pino = "pino-pretty"; + pino = "bunyan"; mocha = "bunx mocha"; standard = "bunx standard"; tsc = "bunx tsc";