Skip to content

Commit

Permalink
refac(back): #1045 remove islinux
Browse files Browse the repository at this point in the history
- Remove unnecessary condition over `isLinux`

Signed-off-by: John Perez <[email protected]>
  • Loading branch information
jpverde committed Mar 16, 2023
1 parent 1960239 commit a173c02
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions docs/src/api/extensions/node.js.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,6 @@ Example:

## makeNodeJsModules

???+ warning

This function is only available on Linux at the moment.

Cook the `node_modules` directory
for the given Node.js project.

Expand Down
3 changes: 1 addition & 2 deletions src/args/make-node-js-modules/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
__nixpkgs__,
attrsGet,
fromJsonFile,
isLinux,
makeDerivation,
makeNodeJsVersion,
makeSearchPaths,
Expand All @@ -17,7 +16,7 @@
searchPaths ? {},
shouldIgnoreScripts ? false,
}:
assert isLinux; let
let
nodeJs = makeNodeJsVersion nodeJsVersion;
packageLock = fromJsonFile packageLockJson;

Expand Down

0 comments on commit a173c02

Please sign in to comment.