From 853363fdf5aa55fcfa39b3cb73fbcc5f6eb8a92b Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Wed, 16 Dec 2020 15:13:43 +0000 Subject: [PATCH] Remove `postinstall` script which also runs as a dependency It seems I misunderstood the `postinstall` script and had thought it would only run when installing the project root. Instead, it seems to run also as a dependency as well. This change should be fine for release, but it does mean when developing the JS SDK, you'll need to manually build. CI pipelines will also need to be changed to call an extra build step. --- package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/package.json b/package.json index c5601f635..d5fb810a1 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,6 @@ "description": "Matrix Client-Server SDK for Javascript", "scripts": { "prepublishOnly": "yarn build", - "postinstall": "yarn build:dev", "start": "echo THIS IS FOR LEGACY PURPOSES ONLY. && babel src -w -s -d lib --verbose --extensions \".ts,.js\"", "dist": "echo 'This is for the release script so it can make assets (browser bundle).' && yarn build", "clean": "rimraf lib dist",