From 954fa45e38090e00ed9d07747eb86a6de3839f27 Mon Sep 17 00:00:00 2001 From: Vasco Santos <vasco.santos@moxy.studio> Date: Fri, 16 Apr 2021 12:39:20 +0200 Subject: [PATCH] chore: prepare needs to move proto file to src --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 31d88987..af7df366 100644 --- a/package.json +++ b/package.json @@ -12,13 +12,14 @@ "scripts": { "lint": "eslint --ext .ts ts", "release": "aegir release --no-types", - "prebuild": "tsc && cp -R ts/message src", + "prebuild": "tsc", + "postbuild": "cp -R ts/message src", "build": "npm run build:proto && npm run build:proto-types && npm run build:types", "build:proto": "pbjs -t static-module --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o ts/message/rpc.js ./ts/message/rpc.proto", "build:proto-types": "pbts -o ts/message/rpc.d.ts ts/message/rpc.js", "build:types": "aegir build --no-types", - "prepare": "tsc", - "pretest": "tsc", + "prepare": "npm run build", + "pretest": "npm run build", "test": "aegir test", "test:node": "aegir test --target node", "test:browser": "aegir test --target browser"