From e32a4569662f7ec5ef6e5961def22d20c86bddb0 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Mon, 4 Oct 2021 13:17:29 +0200 Subject: [PATCH] Moved shell scripts to scripts/ --- package.json | 4 ++-- devEnv/api-docs.mjs => scripts/build-api-docs.mjs | 0 {devEnv => scripts}/deploy.mjs | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) rename devEnv/api-docs.mjs => scripts/build-api-docs.mjs (100%) rename {devEnv => scripts}/deploy.mjs (97%) diff --git a/package.json b/package.json index 46e5974..90b9683 100644 --- a/package.json +++ b/package.json @@ -13,8 +13,8 @@ "build:ts": "tsc --build ./devEnv/typecheck-all-projects/tsconfig.all.json", "test": "jest", "postinstall": "husky install", - "deploy": "zx devEnv/deploy.mjs", - "build:api-docs": "zx devEnv/api-docs.mjs", + "deploy": "zx scripts/deploy.mjs", + "build:api-docs": "zx scripts/build-api-docs.mjs", "lint:all": "eslint . --ext ts,tsx --ignore-path=.gitignore --rulesdir ./devEnv/eslint/rules" }, "lint-staged": { diff --git a/devEnv/api-docs.mjs b/scripts/build-api-docs.mjs similarity index 100% rename from devEnv/api-docs.mjs rename to scripts/build-api-docs.mjs diff --git a/devEnv/deploy.mjs b/scripts/deploy.mjs similarity index 97% rename from devEnv/deploy.mjs rename to scripts/deploy.mjs index 7a3550b..368aa94 100644 --- a/devEnv/deploy.mjs +++ b/scripts/deploy.mjs @@ -1,6 +1,13 @@ +/** + * The deploy script. This must be called with zx from the repo's root. + * Example: + * ``` + * $ cd /path/to/repo + * $ yarn run deploy 0.4.2 + * ``` + */ import path from 'path' import {readFileSync, writeFileSync} from 'fs' -import {keyBy} from 'lodash-es' /** * This script publishes all packages to npm.