Move all zx scripts to typescript

This commit is contained in:
Aria Minaei 2023-08-06 10:15:37 +02:00
parent d228b7635c
commit 4fefee863e
9 changed files with 94 additions and 368 deletions

View file

@ -61,6 +61,8 @@ module.exports = {
'./packages/*/devEnv/tsconfig.json', './packages/*/devEnv/tsconfig.json',
'./examples/*/tsconfig.json', './examples/*/tsconfig.json',
'./devEnv/tsconfig.json', './devEnv/tsconfig.json',
'./compat-tests/tsconfig.json',
'./scripts/tsconfig.json',
], ],
}, },
rules: { rules: {

View file

@ -12,6 +12,7 @@
{"path": "../../packages/benchmarks"}, {"path": "../../packages/benchmarks"},
{"path": "../../packages/r3f"}, {"path": "../../packages/r3f"},
{"path": "../../examples/basic-dom"}, {"path": "../../examples/basic-dom"},
{"path": "../../compat-tests"} {"path": "../../compat-tests"},
{"path": "../../scripts"}
] ]
} }

View file

@ -14,18 +14,18 @@
"test:e2e": "yarn workspace playground run test", "test:e2e": "yarn workspace playground run test",
"test:e2e:ci": "yarn workspace playground run test:ci", "test:e2e:ci": "yarn workspace playground run test:ci",
"typecheck": "yarn run build:ts", "typecheck": "yarn run build:ts",
"build": "zx scripts/build.mjs", "build": "node -r esbuild-register scripts/build.ts",
"clean": "zx scripts/clean.mjs", "clean": "node -r esbuild-register scripts/clean.ts",
"build:ts": "tsc --build ./devEnv/typecheck-all-projects/tsconfig.all.json", "build:ts": "tsc --build ./devEnv/typecheck-all-projects/tsconfig.all.json",
"test": "jest", "test": "jest",
"test:compat:install": "yarn workspace @theatre/compat-tests run install-fixtures", "test:compat:install": "yarn workspace @theatre/compat-tests run install-fixtures",
"test:compat:run": "jest --config jest.compat-tests.config.js", "test:compat:run": "jest --config jest.compat-tests.config.js",
"postinstall": "husky install", "postinstall": "husky install",
"release": "zx scripts/release.mjs", "release": "node -r esbuild-register scripts/release.ts",
"lint:all": "eslint . --ext ts,tsx --ignore-path=.gitignore --rulesdir ./devEnv/eslint/rules" "lint:all": "eslint . --ext ts,tsx --ignore-path=.gitignore --rulesdir ./devEnv/eslint/rules"
}, },
"lint-staged": { "lint-staged": {
"(theatre|packages)/**/*.(t|j)s?(x)": [ "(theatre|packages|scripts|compat-tests)/**/*.(t|j)s?(x)": [
"eslint --rulesdir ./devEnv/eslint/rules --fix" "eslint --rulesdir ./devEnv/eslint/rules --fix"
], ],
"**/*.(t|j)s?(x)": [ "**/*.(t|j)s?(x)": [
@ -33,12 +33,14 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@cspotcode/zx": "^6.1.2",
"@microsoft/api-documenter": "^7.19.0", "@microsoft/api-documenter": "^7.19.0",
"@microsoft/api-extractor": "^7.28.6", "@microsoft/api-extractor": "^7.28.6",
"@types/eslint": "^8.44.1", "@types/eslint": "^8.44.1",
"@typescript-eslint/eslint-plugin": "^5.30.7", "@typescript-eslint/eslint-plugin": "^5.30.7",
"@typescript-eslint/parser": "^5.30.7", "@typescript-eslint/parser": "^5.30.7",
"esbuild": "^0.18.13", "esbuild": "^0.18.18",
"esbuild-register": "^3.4.2",
"eslint": "^8.20.0", "eslint": "^8.20.0",
"eslint-plugin-import": "2.28.0", "eslint-plugin-import": "2.28.0",
"eslint-plugin-jsx-a11y": "^6.6.1", "eslint-plugin-jsx-a11y": "^6.6.1",
@ -54,8 +56,7 @@
"lint-staged": "^13.0.3", "lint-staged": "^13.0.3",
"node-gyp": "^9.1.0", "node-gyp": "^9.1.0",
"prettier": "^2.3.2", "prettier": "^2.3.2",
"typescript": "4.6.4", "typescript": "4.6.4"
"zx": "^2.0.0"
}, },
"packageManager": "yarn@3.2.0", "packageManager": "yarn@3.2.0",
"dependencies": { "dependencies": {

View file

@ -1,3 +1,4 @@
import {$} from '@cspotcode/zx'
/** /**
* Builds all the packages for production * Builds all the packages for production
*/ */
@ -10,7 +11,7 @@ const packagesToBuild = [
'@theatre/r3f', '@theatre/r3f',
'theatric', 'theatric',
] ]
;(async function () { async function build() {
// better quote function from https://github.com/google/zx/pull/167 // better quote function from https://github.com/google/zx/pull/167
$.quote = function quote(arg) { $.quote = function quote(arg) {
if (/^[a-z0-9/_.-]+$/i.test(arg)) { if (/^[a-z0-9/_.-]+$/i.test(arg)) {
@ -37,4 +38,6 @@ const packagesToBuild = [
(workspace) => $`yarn workspace ${workspace} run build`, (workspace) => $`yarn workspace ${workspace} run build`,
), ),
]) ])
})() }
void build()

View file

@ -1,3 +1,5 @@
import {$} from '@cspotcode/zx'
/** /**
* cleans the build artifacts of all packages * cleans the build artifacts of all packages
*/ */
@ -11,7 +13,7 @@ const packages = [
'theatric', 'theatric',
] ]
;(async function () { async function clean() {
// better quote function from https://github.com/google/zx/pull/167 // better quote function from https://github.com/google/zx/pull/167
$.quote = function quote(arg) { $.quote = function quote(arg) {
if (/^[a-z0-9/_.-]+$/i.test(arg)) { if (/^[a-z0-9/_.-]+$/i.test(arg)) {
@ -35,4 +37,6 @@ const packages = [
await Promise.all([ await Promise.all([
...packages.map((workspace) => $`yarn workspace ${workspace} run clean`), ...packages.map((workspace) => $`yarn workspace ${workspace} run clean`),
]) ])
})() }
void clean()

View file

@ -2,9 +2,10 @@
* This script publishes the insider packages from the CI. You can't run it locally unless you have a a valid npm access token and you store its value in the `NPM_TOKEN` environmental variable. * This script publishes the insider packages from the CI. You can't run it locally unless you have a a valid npm access token and you store its value in the `NPM_TOKEN` environmental variable.
*/ */
import os from 'os' import * as os from 'os'
import path from 'path' import * as path from 'path'
import * as core from '@actions/core' import * as core from '@actions/core'
import {$} from '@cspotcode/zx'
const packagesToPublish = [ const packagesToPublish = [
'@theatre/core', '@theatre/core',
@ -19,7 +20,7 @@ const packagesToPublish = [
/** /**
* Receives a version number and returns it without the tags, if there are any * Receives a version number and returns it without the tags, if there are any
* *
* @param {string} version - Version number * @param version - Version number
* @returns Version number without the tags * @returns Version number without the tags
* *
* @example * @example
@ -30,7 +31,7 @@ const packagesToPublish = [
* stripTag(version_1) === stripTag(version_2) === '0.4.8' // returns `true` * stripTag(version_1) === stripTag(version_2) === '0.4.8' // returns `true`
* ``` * ```
*/ */
function stripTag(version) { function stripTag(version: string) {
const regExp = /^[0-9]+\.[0-9]+\.[0-9]+/g const regExp = /^[0-9]+\.[0-9]+\.[0-9]+/g
const matches = version.match(regExp) const matches = version.match(regExp)
if (!matches) { if (!matches) {
@ -43,10 +44,10 @@ function stripTag(version) {
/** /**
* Creates a version number like `0.4.8-insiders.ec175817` * Creates a version number like `0.4.8-insiders.ec175817`
* *
* @param {string} packageName - Name of the package * @param packageName - Name of the package
* @param {string} commitHash - A commit hash * @param commitHash - A commit hash
*/ */
function getNewVersionName(packageName, commitHash) { function getNewVersionName(packageName: string, commitHash: string) {
// The `r3f` package has its own release schedule, so its version numbers // The `r3f` package has its own release schedule, so its version numbers
// are almost always different from the rest of the packages. // are almost always different from the rest of the packages.
const pathToPackageJson = const pathToPackageJson =
@ -65,16 +66,15 @@ function getNewVersionName(packageName, commitHash) {
/** /**
* Assigns the latest version names ({@link getNewVersionName}) to the packages' `package.json`s * Assigns the latest version names ({@link getNewVersionName}) to the packages' `package.json`s
* *
* @param {{name: string, location: string}[]} workspacesListObjects - An Array of objects containing information about the workspaces * @param workspacesListObjects - An Array of objects containing information about the workspaces
* @param {string} latestCommitHash - Hash of the latest commit * @param latestCommitHash - Hash of the latest commit
* @returns {Promise<Record<string, string>>} - A record of {[packageId]: assignedVersion} * @returns - A record of `{[packageId]: assignedVersion}`
*/ */
async function writeVersionsToPackageJSONs( async function writeVersionsToPackageJSONs(
workspacesListObjects, workspacesListObjects: {name: string; location: string}[],
latestCommitHash, latestCommitHash: string,
) { ): Promise<Record<string, string>> {
/** @type {Record<string, string>} */ const assignedVersionByPackageName: Record<string, string> = {}
const assignedVersionByPackageName = {}
for (const workspaceData of workspacesListObjects) { for (const workspaceData of workspacesListObjects) {
const pathToPackage = path.resolve( const pathToPackage = path.resolve(
__dirname, __dirname,
@ -124,7 +124,7 @@ async function writeVersionsToPackageJSONs(
return assignedVersionByPackageName return assignedVersionByPackageName
} }
;(async function () { async function prerelease() {
// @ts-ignore ignore // @ts-ignore ignore
process.env.THEATRE_IS_PUBLISHING = true process.env.THEATRE_IS_PUBLISHING = true
// In the CI `git log -1` points to a fake merge commit, // In the CI `git log -1` points to a fake merge commit,
@ -180,4 +180,6 @@ async function writeVersionsToPackageJSONs(
await $`echo ${`Published ${packageName}@${assignedVersionByPackageName[packageName]}`}` await $`echo ${`Published ${packageName}@${assignedVersionByPackageName[packageName]}`}`
} }
} }
})() }
void prerelease()

View file

@ -6,15 +6,15 @@
* $ yarn run release 0.4.2 * $ yarn run release 0.4.2
* ``` * ```
*/ */
import path from 'path' import * as path from 'path'
import {readFileSync, writeFileSync} from 'fs' import {readFileSync, writeFileSync} from 'fs'
import {$} from '@cspotcode/zx'
/** /**
* This script publishes all packages to npm. * This script publishes all packages to npm.
* *
* It assigns the same version number to all packages (like lerna's fixed mode). * It assigns the same version number to all packages (like lerna's fixed mode).
**/ **/
// It's written in .mjs because I kept running into issues with zx+typescript
const packagesToBuild = [ const packagesToBuild = [
'theatre', 'theatre',
'@theatre/dataverse', '@theatre/dataverse',
@ -49,7 +49,6 @@ const packagesWhoseVersionsShouldBump = [
'packages/theatric', 'packages/theatric',
] ]
;(async function () {
// our packages will check for this env variable to make sure their // our packages will check for this env variable to make sure their
// prepublish script is only called from the `$ cd /path/to/monorepo; yarn run release` // prepublish script is only called from the `$ cd /path/to/monorepo; yarn run release`
// @ts-ignore ignore // @ts-ignore ignore
@ -75,6 +74,7 @@ const packagesWhoseVersionsShouldBump = [
) )
} }
async function release() {
$.verbose = false $.verbose = false
const gitTags = (await $`git tag --list`).toString().split('\n') const gitTags = (await $`git tag --list`).toString().split('\n')
@ -188,10 +188,11 @@ const packagesWhoseVersionsShouldBump = [
$`yarn workspace ${workspace} npm publish --access public --tag ${npmTag}`, $`yarn workspace ${workspace} npm publish --access public --tag ${npmTag}`,
), ),
) )
})() }
/** @param {string} monorepoVersion */ void release()
async function writeVersionsToPackageJSONs(monorepoVersion) {
async function writeVersionsToPackageJSONs(monorepoVersion: string) {
for (const packagePathRelativeFromRoot of packagesWhoseVersionsShouldBump) { for (const packagePathRelativeFromRoot of packagesWhoseVersionsShouldBump) {
const pathToPackage = path.resolve( const pathToPackage = path.resolve(
__dirname, __dirname,

View file

@ -1,11 +1,11 @@
{ {
"extends": "../tsconfig.base.json", "extends": "../tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"allowJs": true,
"checkJs": true,
"noEmit": true, "noEmit": true,
"resolveJsonModule": true, "resolveJsonModule": true,
"types": ["zx", "node"] "types": ["node"],
"composite": true,
"target": "es6"
}, },
"include": ["*.mjs", "**/*.mjs"] "include": ["*.ts", "**/*.ts"]
} }

326
yarn.lock
View file

@ -5134,13 +5134,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/android-arm64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/android-arm64@npm:0.18.13"
conditions: os=android & cpu=arm64
languageName: node
linkType: hard
"@esbuild/android-arm64@npm:0.18.17": "@esbuild/android-arm64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/android-arm64@npm:0.18.17" resolution: "@esbuild/android-arm64@npm:0.18.17"
@ -5169,13 +5162,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/android-arm@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/android-arm@npm:0.18.13"
conditions: os=android & cpu=arm
languageName: node
linkType: hard
"@esbuild/android-arm@npm:0.18.17": "@esbuild/android-arm@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/android-arm@npm:0.18.17" resolution: "@esbuild/android-arm@npm:0.18.17"
@ -5197,13 +5183,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/android-x64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/android-x64@npm:0.18.13"
conditions: os=android & cpu=x64
languageName: node
linkType: hard
"@esbuild/android-x64@npm:0.18.17": "@esbuild/android-x64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/android-x64@npm:0.18.17" resolution: "@esbuild/android-x64@npm:0.18.17"
@ -5225,13 +5204,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/darwin-arm64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/darwin-arm64@npm:0.18.13"
conditions: os=darwin & cpu=arm64
languageName: node
linkType: hard
"@esbuild/darwin-arm64@npm:0.18.17": "@esbuild/darwin-arm64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/darwin-arm64@npm:0.18.17" resolution: "@esbuild/darwin-arm64@npm:0.18.17"
@ -5253,13 +5225,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/darwin-x64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/darwin-x64@npm:0.18.13"
conditions: os=darwin & cpu=x64
languageName: node
linkType: hard
"@esbuild/darwin-x64@npm:0.18.17": "@esbuild/darwin-x64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/darwin-x64@npm:0.18.17" resolution: "@esbuild/darwin-x64@npm:0.18.17"
@ -5281,13 +5246,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/freebsd-arm64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/freebsd-arm64@npm:0.18.13"
conditions: os=freebsd & cpu=arm64
languageName: node
linkType: hard
"@esbuild/freebsd-arm64@npm:0.18.17": "@esbuild/freebsd-arm64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/freebsd-arm64@npm:0.18.17" resolution: "@esbuild/freebsd-arm64@npm:0.18.17"
@ -5309,13 +5267,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/freebsd-x64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/freebsd-x64@npm:0.18.13"
conditions: os=freebsd & cpu=x64
languageName: node
linkType: hard
"@esbuild/freebsd-x64@npm:0.18.17": "@esbuild/freebsd-x64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/freebsd-x64@npm:0.18.17" resolution: "@esbuild/freebsd-x64@npm:0.18.17"
@ -5337,13 +5288,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/linux-arm64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/linux-arm64@npm:0.18.13"
conditions: os=linux & cpu=arm64
languageName: node
linkType: hard
"@esbuild/linux-arm64@npm:0.18.17": "@esbuild/linux-arm64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/linux-arm64@npm:0.18.17" resolution: "@esbuild/linux-arm64@npm:0.18.17"
@ -5365,13 +5309,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/linux-arm@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/linux-arm@npm:0.18.13"
conditions: os=linux & cpu=arm
languageName: node
linkType: hard
"@esbuild/linux-arm@npm:0.18.17": "@esbuild/linux-arm@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/linux-arm@npm:0.18.17" resolution: "@esbuild/linux-arm@npm:0.18.17"
@ -5393,13 +5330,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/linux-ia32@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/linux-ia32@npm:0.18.13"
conditions: os=linux & cpu=ia32
languageName: node
linkType: hard
"@esbuild/linux-ia32@npm:0.18.17": "@esbuild/linux-ia32@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/linux-ia32@npm:0.18.17" resolution: "@esbuild/linux-ia32@npm:0.18.17"
@ -5435,13 +5365,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/linux-loong64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/linux-loong64@npm:0.18.13"
conditions: os=linux & cpu=loong64
languageName: node
linkType: hard
"@esbuild/linux-loong64@npm:0.18.17": "@esbuild/linux-loong64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/linux-loong64@npm:0.18.17" resolution: "@esbuild/linux-loong64@npm:0.18.17"
@ -5463,13 +5386,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/linux-mips64el@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/linux-mips64el@npm:0.18.13"
conditions: os=linux & cpu=mips64el
languageName: node
linkType: hard
"@esbuild/linux-mips64el@npm:0.18.17": "@esbuild/linux-mips64el@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/linux-mips64el@npm:0.18.17" resolution: "@esbuild/linux-mips64el@npm:0.18.17"
@ -5491,13 +5407,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/linux-ppc64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/linux-ppc64@npm:0.18.13"
conditions: os=linux & cpu=ppc64
languageName: node
linkType: hard
"@esbuild/linux-ppc64@npm:0.18.17": "@esbuild/linux-ppc64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/linux-ppc64@npm:0.18.17" resolution: "@esbuild/linux-ppc64@npm:0.18.17"
@ -5519,13 +5428,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/linux-riscv64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/linux-riscv64@npm:0.18.13"
conditions: os=linux & cpu=riscv64
languageName: node
linkType: hard
"@esbuild/linux-riscv64@npm:0.18.17": "@esbuild/linux-riscv64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/linux-riscv64@npm:0.18.17" resolution: "@esbuild/linux-riscv64@npm:0.18.17"
@ -5547,13 +5449,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/linux-s390x@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/linux-s390x@npm:0.18.13"
conditions: os=linux & cpu=s390x
languageName: node
linkType: hard
"@esbuild/linux-s390x@npm:0.18.17": "@esbuild/linux-s390x@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/linux-s390x@npm:0.18.17" resolution: "@esbuild/linux-s390x@npm:0.18.17"
@ -5575,13 +5470,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/linux-x64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/linux-x64@npm:0.18.13"
conditions: os=linux & cpu=x64
languageName: node
linkType: hard
"@esbuild/linux-x64@npm:0.18.17": "@esbuild/linux-x64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/linux-x64@npm:0.18.17" resolution: "@esbuild/linux-x64@npm:0.18.17"
@ -5603,13 +5491,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/netbsd-x64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/netbsd-x64@npm:0.18.13"
conditions: os=netbsd & cpu=x64
languageName: node
linkType: hard
"@esbuild/netbsd-x64@npm:0.18.17": "@esbuild/netbsd-x64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/netbsd-x64@npm:0.18.17" resolution: "@esbuild/netbsd-x64@npm:0.18.17"
@ -5631,13 +5512,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/openbsd-x64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/openbsd-x64@npm:0.18.13"
conditions: os=openbsd & cpu=x64
languageName: node
linkType: hard
"@esbuild/openbsd-x64@npm:0.18.17": "@esbuild/openbsd-x64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/openbsd-x64@npm:0.18.17" resolution: "@esbuild/openbsd-x64@npm:0.18.17"
@ -5659,13 +5533,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/sunos-x64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/sunos-x64@npm:0.18.13"
conditions: os=sunos & cpu=x64
languageName: node
linkType: hard
"@esbuild/sunos-x64@npm:0.18.17": "@esbuild/sunos-x64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/sunos-x64@npm:0.18.17" resolution: "@esbuild/sunos-x64@npm:0.18.17"
@ -5687,13 +5554,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/win32-arm64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/win32-arm64@npm:0.18.13"
conditions: os=win32 & cpu=arm64
languageName: node
linkType: hard
"@esbuild/win32-arm64@npm:0.18.17": "@esbuild/win32-arm64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/win32-arm64@npm:0.18.17" resolution: "@esbuild/win32-arm64@npm:0.18.17"
@ -5715,13 +5575,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/win32-ia32@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/win32-ia32@npm:0.18.13"
conditions: os=win32 & cpu=ia32
languageName: node
linkType: hard
"@esbuild/win32-ia32@npm:0.18.17": "@esbuild/win32-ia32@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/win32-ia32@npm:0.18.17" resolution: "@esbuild/win32-ia32@npm:0.18.17"
@ -5743,13 +5596,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@esbuild/win32-x64@npm:0.18.13":
version: 0.18.13
resolution: "@esbuild/win32-x64@npm:0.18.13"
conditions: os=win32 & cpu=x64
languageName: node
linkType: hard
"@esbuild/win32-x64@npm:0.18.17": "@esbuild/win32-x64@npm:0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "@esbuild/win32-x64@npm:0.18.17" resolution: "@esbuild/win32-x64@npm:0.18.17"
@ -8625,23 +8471,13 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/minimist@npm:^1.2.1, @types/minimist@npm:^1.2.2": "@types/minimist@npm:^1.2.2":
version: 1.2.2 version: 1.2.2
resolution: "@types/minimist@npm:1.2.2" resolution: "@types/minimist@npm:1.2.2"
checksum: b8da83c66eb4aac0440e64674b19564d9d86c80ae273144db9681e5eeff66f238ade9515f5006ffbfa955ceff8b89ad2bd8ec577d7caee74ba101431fb07045d checksum: b8da83c66eb4aac0440e64674b19564d9d86c80ae273144db9681e5eeff66f238ade9515f5006ffbfa955ceff8b89ad2bd8ec577d7caee74ba101431fb07045d
languageName: node languageName: node
linkType: hard linkType: hard
"@types/node-fetch@npm:^2.5.10":
version: 2.6.2
resolution: "@types/node-fetch@npm:2.6.2"
dependencies:
"@types/node": "*"
form-data: ^3.0.0
checksum: 6f73b1470000d303d25a6fb92875ea837a216656cb7474f66cdd67bb014aa81a5a11e7ac9c21fe19bee9ecb2ef87c1962bceeaec31386119d1ac86e4c30ad7a6
languageName: node
linkType: hard
"@types/node@npm:*": "@types/node@npm:*":
version: 14.14.37 version: 14.14.37
resolution: "@types/node@npm:14.14.37" resolution: "@types/node@npm:14.14.37"
@ -8670,13 +8506,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/node@npm:^16.0":
version: 16.11.45
resolution: "@types/node@npm:16.11.45"
checksum: 57d61c951024f66d796e71e4a972faef266007398cd4e93a195822fea2d5deb41d0615f394a99ece89772b145ff057321d138c7e3442455dc7d785ff67cebde3
languageName: node
linkType: hard
"@types/node@npm:^17.0": "@types/node@npm:^17.0":
version: 17.0.45 version: 17.0.45
resolution: "@types/node@npm:17.0.45" resolution: "@types/node@npm:17.0.45"
@ -10867,13 +10696,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"array-union@npm:^3.0.1":
version: 3.0.1
resolution: "array-union@npm:3.0.1"
checksum: 47b29f88258e8f37ffb93ddaa327d4308edd950b52943c172b73558afdd3fa74cfd68816ba5aa4b894242cf281fa3c6d0362ae057e4a18bddbaedbe46ebe7112
languageName: node
linkType: hard
"array-uniq@npm:^1.0.1": "array-uniq@npm:^1.0.1":
version: 1.0.3 version: 1.0.3
resolution: "array-uniq@npm:1.0.3" resolution: "array-uniq@npm:1.0.3"
@ -12627,7 +12449,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"chalk@npm:^4.0.2, chalk@npm:^4.1.1, chalk@npm:^4.1.2": "chalk@npm:^4.0.2, chalk@npm:^4.1.2":
version: 4.1.2 version: 4.1.2
resolution: "chalk@npm:4.1.2" resolution: "chalk@npm:4.1.2"
dependencies: dependencies:
@ -16050,83 +15872,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"esbuild@npm:^0.18.13":
version: 0.18.13
resolution: "esbuild@npm:0.18.13"
dependencies:
"@esbuild/android-arm": 0.18.13
"@esbuild/android-arm64": 0.18.13
"@esbuild/android-x64": 0.18.13
"@esbuild/darwin-arm64": 0.18.13
"@esbuild/darwin-x64": 0.18.13
"@esbuild/freebsd-arm64": 0.18.13
"@esbuild/freebsd-x64": 0.18.13
"@esbuild/linux-arm": 0.18.13
"@esbuild/linux-arm64": 0.18.13
"@esbuild/linux-ia32": 0.18.13
"@esbuild/linux-loong64": 0.18.13
"@esbuild/linux-mips64el": 0.18.13
"@esbuild/linux-ppc64": 0.18.13
"@esbuild/linux-riscv64": 0.18.13
"@esbuild/linux-s390x": 0.18.13
"@esbuild/linux-x64": 0.18.13
"@esbuild/netbsd-x64": 0.18.13
"@esbuild/openbsd-x64": 0.18.13
"@esbuild/sunos-x64": 0.18.13
"@esbuild/win32-arm64": 0.18.13
"@esbuild/win32-ia32": 0.18.13
"@esbuild/win32-x64": 0.18.13
dependenciesMeta:
"@esbuild/android-arm":
optional: true
"@esbuild/android-arm64":
optional: true
"@esbuild/android-x64":
optional: true
"@esbuild/darwin-arm64":
optional: true
"@esbuild/darwin-x64":
optional: true
"@esbuild/freebsd-arm64":
optional: true
"@esbuild/freebsd-x64":
optional: true
"@esbuild/linux-arm":
optional: true
"@esbuild/linux-arm64":
optional: true
"@esbuild/linux-ia32":
optional: true
"@esbuild/linux-loong64":
optional: true
"@esbuild/linux-mips64el":
optional: true
"@esbuild/linux-ppc64":
optional: true
"@esbuild/linux-riscv64":
optional: true
"@esbuild/linux-s390x":
optional: true
"@esbuild/linux-x64":
optional: true
"@esbuild/netbsd-x64":
optional: true
"@esbuild/openbsd-x64":
optional: true
"@esbuild/sunos-x64":
optional: true
"@esbuild/win32-arm64":
optional: true
"@esbuild/win32-ia32":
optional: true
"@esbuild/win32-x64":
optional: true
bin:
esbuild: bin/esbuild
checksum: 6512b7e186cffb4546f3508f1e2d1dd27eb43a8a8a79d4ea7eb34ae3dbdc647679ae96b29c54a4951c355ee3168e8ad9c128cbfc033154b0849e269276d5bc9c
languageName: node
linkType: hard
"esbuild@npm:^0.18.17": "esbuild@npm:^0.18.17":
version: 0.18.17 version: 0.18.17
resolution: "esbuild@npm:0.18.17" resolution: "esbuild@npm:0.18.17"
@ -17589,7 +17334,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"fast-glob@npm:^3.2.11, fast-glob@npm:^3.2.7, fast-glob@npm:^3.2.9": "fast-glob@npm:^3.2.11, fast-glob@npm:^3.2.9":
version: 3.2.11 version: 3.2.11
resolution: "fast-glob@npm:3.2.11" resolution: "fast-glob@npm:3.2.11"
dependencies: dependencies:
@ -18587,20 +18332,6 @@ fsevents@^1.2.7:
languageName: node languageName: node
linkType: hard linkType: hard
"globby@npm:^12.0.0":
version: 12.2.0
resolution: "globby@npm:12.2.0"
dependencies:
array-union: ^3.0.1
dir-glob: ^3.0.1
fast-glob: ^3.2.7
ignore: ^5.1.9
merge2: ^1.4.1
slash: ^4.0.0
checksum: 2539379a7fff3473d3e7c68b4540ba38f36970f43f760e36e301515d5cb98a0c5736554957d90390906bee632327beb2f9518d1acd6911f61e436db11b0da5b5
languageName: node
linkType: hard
"globby@npm:^13.1.1": "globby@npm:^13.1.1":
version: 13.1.3 version: 13.1.3
resolution: "globby@npm:13.1.3" resolution: "globby@npm:13.1.3"
@ -19492,7 +19223,7 @@ fsevents@^1.2.7:
languageName: node languageName: node
linkType: hard linkType: hard
"ignore@npm:^5.1.8, ignore@npm:^5.1.9, ignore@npm:^5.2.0": "ignore@npm:^5.1.8, ignore@npm:^5.2.0":
version: 5.2.0 version: 5.2.0
resolution: "ignore@npm:5.2.0" resolution: "ignore@npm:5.2.0"
checksum: 6b1f926792d614f64c6c83da3a1f9c83f6196c2839aa41e1e32dd7b8d174cef2e329d75caabb62cb61ce9dc432f75e67d07d122a037312db7caa73166a1bdb77 checksum: 6b1f926792d614f64c6c83da3a1f9c83f6196c2839aa41e1e32dd7b8d174cef2e329d75caabb62cb61ce9dc432f75e67d07d122a037312db7caa73166a1bdb77
@ -24068,7 +23799,18 @@ fsevents@^1.2.7:
languageName: node languageName: node
linkType: hard linkType: hard
"node-fetch@npm:^2.6.1, node-fetch@npm:cjs": "node-fetch@npm:^3.2.3":
version: 3.3.0
resolution: "node-fetch@npm:3.3.0"
dependencies:
data-uri-to-buffer: ^4.0.0
fetch-blob: ^3.1.4
formdata-polyfill: ^4.0.10
checksum: e9936908d2783d3c48a038e187f8062de294d75ef43ec8ab812d7cbd682be2b67605868758d2e9cad6103706dcfe4a9d21d78f6df984e8edf10e7a5ce2e665f8
languageName: node
linkType: hard
"node-fetch@npm:cjs":
version: 2.6.7 version: 2.6.7
resolution: "node-fetch@npm:2.6.7" resolution: "node-fetch@npm:2.6.7"
dependencies: dependencies:
@ -24082,17 +23824,6 @@ fsevents@^1.2.7:
languageName: node languageName: node
linkType: hard linkType: hard
"node-fetch@npm:^3.2.3":
version: 3.3.0
resolution: "node-fetch@npm:3.3.0"
dependencies:
data-uri-to-buffer: ^4.0.0
fetch-blob: ^3.1.4
formdata-polyfill: ^4.0.10
checksum: e9936908d2783d3c48a038e187f8062de294d75ef43ec8ab812d7cbd682be2b67605868758d2e9cad6103706dcfe4a9d21d78f6df984e8edf10e7a5ce2e665f8
languageName: node
linkType: hard
"node-forge@npm:^0.10.0": "node-forge@npm:^0.10.0":
version: 0.10.0 version: 0.10.0
resolution: "node-forge@npm:0.10.0" resolution: "node-forge@npm:0.10.0"
@ -31705,12 +31436,14 @@ fsevents@^1.2.7:
resolution: "theatre-monorepo@workspace:." resolution: "theatre-monorepo@workspace:."
dependencies: dependencies:
"@actions/core": ^1.10.0 "@actions/core": ^1.10.0
"@cspotcode/zx": ^6.1.2
"@microsoft/api-documenter": ^7.19.0 "@microsoft/api-documenter": ^7.19.0
"@microsoft/api-extractor": ^7.28.6 "@microsoft/api-extractor": ^7.28.6
"@types/eslint": ^8.44.1 "@types/eslint": ^8.44.1
"@typescript-eslint/eslint-plugin": ^5.30.7 "@typescript-eslint/eslint-plugin": ^5.30.7
"@typescript-eslint/parser": ^5.30.7 "@typescript-eslint/parser": ^5.30.7
esbuild: ^0.18.13 esbuild: ^0.18.18
esbuild-register: ^3.4.2
eslint: ^8.20.0 eslint: ^8.20.0
eslint-plugin-import: 2.28.0 eslint-plugin-import: 2.28.0
eslint-plugin-jsx-a11y: ^6.6.1 eslint-plugin-jsx-a11y: ^6.6.1
@ -31727,7 +31460,6 @@ fsevents@^1.2.7:
node-gyp: ^9.1.0 node-gyp: ^9.1.0
prettier: ^2.3.2 prettier: ^2.3.2
typescript: 4.6.4 typescript: 4.6.4
zx: ^2.0.0
languageName: unknown languageName: unknown
linkType: soft linkType: soft
@ -34672,23 +34404,3 @@ fsevents@^1.2.7:
checksum: 18f025b1b666a311121d3855303ff58e6a21fd107920ca474307e86984c13338d6c4cfa5cdf13382a9e0f76821f2554a12d4d200a98a66b58637e729f149797b checksum: 18f025b1b666a311121d3855303ff58e6a21fd107920ca474307e86984c13338d6c4cfa5cdf13382a9e0f76821f2554a12d4d200a98a66b58637e729f149797b
languageName: node languageName: node
linkType: hard linkType: hard
"zx@npm:^2.0.0":
version: 2.1.0
resolution: "zx@npm:2.1.0"
dependencies:
"@types/fs-extra": ^9.0.11
"@types/minimist": ^1.2.1
"@types/node": ^16.0
"@types/node-fetch": ^2.5.10
chalk: ^4.1.1
fs-extra: ^10.0.0
globby: ^12.0.0
minimist: ^1.2.5
node-fetch: ^2.6.1
which: ^2.0.2
bin:
zx: zx.mjs
checksum: cecb75747561c44fd75c8c6d12c0c9d3f4803231846c3ec308dcf2ffbef4f9d53c306152690ea4a5169b92c7f21f1402b2c9a5dff41632cc33ba7dad22a00e14
languageName: node
linkType: hard