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.