From 2d95745d56b003d2968d74dd162e7d87d4d5ab29 Mon Sep 17 00:00:00 2001 From: Daniel Gasienica Date: Mon, 7 May 2018 11:59:04 -0400 Subject: [PATCH] Add `yarn build-protobuf` command --- .prettierignore | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/.prettierignore b/.prettierignore index ed8fd952d..548f19628 100644 --- a/.prettierignore +++ b/.prettierignore @@ -10,6 +10,7 @@ libtextsecure/components.js libtextsecure/test/test.js test/test.js ts/**/*.js +ts/protobuf/** # Third-party files components/** diff --git a/package.json b/package.json index f1be43651..1af087b47 100644 --- a/package.json +++ b/package.json @@ -18,6 +18,7 @@ "generate": "npm run icon-gen && grunt", "build": "build --config.extraMetadata.environment=$SIGNAL_ENV", "build-release": "SIGNAL_ENV=production npm run build -- --config.directories.output=release", + "build-protobuf": "pbjs --target static-module --wrap commonjs --out ts/protobuf/SignalService.js protos/SignalService.proto && pbts --out ts/protobuf/SignalService.d.ts ts/protobuf/SignalService.js", "prepare-beta-build": "node prepare_beta_build.js", "prepare-import-build": "node prepare_import_build.js", "publish-to-apt": "NAME=$npm_package_name VERSION=$npm_package_version ./aptly.sh",