From df280e3e517ec65fa5a8431d837b555ac0d941ff Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Mon, 28 Jun 2021 13:43:17 +0200 Subject: [PATCH] Chore: Small fixes for the deployment script --- theatre/README.md | 6 ++++++ theatre/devEnv/ensurePublishing.js | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 theatre/README.md diff --git a/theatre/README.md b/theatre/README.md new file mode 100644 index 0000000..c008567 --- /dev/null +++ b/theatre/README.md @@ -0,0 +1,6 @@ +## How to deploy + +Simply update the version of `theatre/package.json`, then run `$ yarn run deploy`. This script will: +1. Update the version of `@theatre/core` and `@theatre/studio`. +2. Bundle the `.js` and `.dts` files. +3. Publish both packages to npm. \ No newline at end of file diff --git a/theatre/devEnv/ensurePublishing.js b/theatre/devEnv/ensurePublishing.js index 531bd14..55983cf 100644 --- a/theatre/devEnv/ensurePublishing.js +++ b/theatre/devEnv/ensurePublishing.js @@ -1,5 +1,5 @@ if (process.env.THEATRE_IS_PUBLISHING !== 'true') { throw Error( - `This script may run only when the "prepare" command in root/theatre is running.`, + `This script may run only when the "deploy" command in root/theatre is running.`, ) }