From 974224cee7088bbd24832c0b97e1c12e933068fa Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 20 Feb 2018 11:02:47 -0500 Subject: [PATCH] init submodules after npm install --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index bae17b5c..fe470922 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,9 @@ }, "license": "GPL-3.0", "scripts": { - "updatesub": "git submodule update --remote", - "postinstall": "./node_modules/.bin/electron-rebuild", + "sub:init": "git submodule update --init --recursive", + "sub:update": "git submodule update --remote", + "postinstall": "./node_modules/.bin/electron-rebuild && npm run sub:init", "lint": "tslint src/**/*.ts || true", "lint:fix": "tslint src/**/*.ts --fix", "build": "npm run build:main | npm run build:renderer",