diff --git a/.prettierignore b/.prettierignore index ed8fd952d76..548f196286c 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 f1be43651af..1af087b47d2 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",