Skip to content

Commit

Permalink
fix(v1.87.0): remove postinstall script
Browse files Browse the repository at this point in the history
  • Loading branch information
willruggiano committed Feb 22, 2024
1 parent 2c8ecd6 commit 1496a7a
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 14 deletions.
2 changes: 1 addition & 1 deletion default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
];

mkDerivation = {
inherit (config.deps) src;
inherit (config.deps) patches src;
buildPhase = ''
gulp compile && gulp vsDebugServerBundle:webpack-bundle
'';
Expand Down
23 changes: 12 additions & 11 deletions flake.lock

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

11 changes: 9 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,21 @@

packages.${system} = let
sources = import ./nix/sources.nix {};
patches = import ./patches;
mkName = lib.replaceStrings ["."] ["-"];
mkPackage = version: src:
mkPackage = srcVersion: src:
dream2nix.lib.evalModules {
packageSets.nixpkgs = pkgs;
modules = [
{
config.deps = {
config.deps = let
version =
if srcVersion == "latest"
then src.rev
else srcVersion;
in {
inherit src version;
patches = patches.${version} or [];
};
}
./default.nix
Expand Down
5 changes: 5 additions & 0 deletions patches/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"v1.87.0" = [
./v1.87.0.patch
];
}
21 changes: 21 additions & 0 deletions patches/v1.87.0.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
From 9c640e131233208c91e1ef798f6f7de082580394 Mon Sep 17 00:00:00 2001
From: Will Ruggiano <[email protected]>
Date: Thu, 22 Feb 2024 15:27:52 -0700
Subject: [PATCH] Remove postinstall script

---
package.json | 1 -
1 file changed, 1 deletion(-)

diff --git a/package.json b/package.json
index 1c8ecad5f..33c4ddbb0 100644
--- a/package.json
+++ b/package.json
@@ -38,7 +38,6 @@
"prepare": "husky install",
"package": "gulp package",
"publish": "gulp publish",
- "postinstall": "playwright install chromium",
"precommit": "npm-run-all --parallel test:lint test:types",
"updatetypes": "cd src/typings && npx -y @vscode/dts dev && npx -y @vscode/dts master",
"updatenodeapi": "python src/build/getNodePdl.py && prettier --write src/build/nodeCustom.ts",

0 comments on commit 1496a7a

Please sign in to comment.