From d228b7635c4c013656283088ea78ec68b1d14822 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Sun, 6 Aug 2023 09:53:32 +0200 Subject: [PATCH] Switch compat-test scripts to typescript --- compat-tests/integrity.compat-test.ts | 4 +- compat-tests/package.json | 11 +- compat-tests/scripts/ci.mjs | 5 - compat-tests/scripts/clean.mjs | 3 - compat-tests/scripts/clean.ts | 3 + compat-tests/scripts/install-fixtures.mjs | 3 - compat-tests/scripts/install-fixtures.ts | 3 + .../scripts/{scripts.mjs => scripts.ts} | 89 ++-- compat-tests/tsconfig.json | 19 + .../typecheck-all-projects/tsconfig.all.json | 3 +- yarn.lock | 385 +++++++++++------- 11 files changed, 326 insertions(+), 202 deletions(-) delete mode 100644 compat-tests/scripts/ci.mjs delete mode 100644 compat-tests/scripts/clean.mjs create mode 100644 compat-tests/scripts/clean.ts delete mode 100644 compat-tests/scripts/install-fixtures.mjs create mode 100644 compat-tests/scripts/install-fixtures.ts rename compat-tests/scripts/{scripts.mjs => scripts.ts} (86%) create mode 100644 compat-tests/tsconfig.json diff --git a/compat-tests/integrity.compat-test.ts b/compat-tests/integrity.compat-test.ts index ff23c7b..f509185 100644 --- a/compat-tests/integrity.compat-test.ts +++ b/compat-tests/integrity.compat-test.ts @@ -1,5 +1,5 @@ -import path from 'path' -import fs from 'fs' +import * as path from 'path' +import * as fs from 'fs' describe(`Compat tests`, () => { test(`all fixtures should have an App/ directory identical to that of vite4's`, async () => { diff --git a/compat-tests/package.json b/compat-tests/package.json index 5e7e649..d3061ff 100644 --- a/compat-tests/package.json +++ b/compat-tests/package.json @@ -1,20 +1,21 @@ { "name": "@theatre/compat-tests", "private": true, - "type": "module", "scripts": { - "install-fixtures": "zx ./scripts/install-fixtures.mjs", - "clean": "zx ./scripts/clean.mjs" + "install-fixtures": "node -r esbuild-register ./scripts/install-fixtures.ts", + "clean": "node -r esbuild-register ./scripts/clean.ts" }, "dependencies": { "@cspotcode/zx": "^6.1.2", + "@verdaccio/types": "^10.8.0", + "esbuild": "^0.18.18", + "esbuild-register": "^3.4.2", "node-cleanup": "^2.1.2", "playwright": "^1.29.1", "prettier": "^2.6.2", "verdaccio": "^5.26.1", "verdaccio-auth-memory": "^10.2.2", - "verdaccio-memory": "^10.3.2", - "zx": "^7.1.1" + "verdaccio-memory": "^10.3.2" }, "version": "0.0.1-COMPAT.1" } diff --git a/compat-tests/scripts/ci.mjs b/compat-tests/scripts/ci.mjs deleted file mode 100644 index c0fad2e..0000000 --- a/compat-tests/scripts/ci.mjs +++ /dev/null @@ -1,5 +0,0 @@ -import {installTests} from './scripts.mjs' -;(async function runCI() { - await installTests() - process.exit(0) -})() diff --git a/compat-tests/scripts/clean.mjs b/compat-tests/scripts/clean.mjs deleted file mode 100644 index 7939c80..0000000 --- a/compat-tests/scripts/clean.mjs +++ /dev/null @@ -1,3 +0,0 @@ -import {clean} from './scripts.mjs' - -await clean() diff --git a/compat-tests/scripts/clean.ts b/compat-tests/scripts/clean.ts new file mode 100644 index 0000000..e3899bd --- /dev/null +++ b/compat-tests/scripts/clean.ts @@ -0,0 +1,3 @@ +import {clean} from './scripts' + +clean() diff --git a/compat-tests/scripts/install-fixtures.mjs b/compat-tests/scripts/install-fixtures.mjs deleted file mode 100644 index 193db52..0000000 --- a/compat-tests/scripts/install-fixtures.mjs +++ /dev/null @@ -1,3 +0,0 @@ -import {installFixtures} from './scripts.mjs' - -installFixtures() diff --git a/compat-tests/scripts/install-fixtures.ts b/compat-tests/scripts/install-fixtures.ts new file mode 100644 index 0000000..15a8f11 --- /dev/null +++ b/compat-tests/scripts/install-fixtures.ts @@ -0,0 +1,3 @@ +import {installFixtures} from './scripts' + +installFixtures() diff --git a/compat-tests/scripts/scripts.mjs b/compat-tests/scripts/scripts.ts similarity index 86% rename from compat-tests/scripts/scripts.mjs rename to compat-tests/scripts/scripts.ts index 82c5fda..6aa35a1 100644 --- a/compat-tests/scripts/scripts.mjs +++ b/compat-tests/scripts/scripts.ts @@ -2,11 +2,12 @@ * Utility functions for the compatibility tests */ -import prettier from 'prettier' -import path from 'path' -import {globby, argv, YAML, $, fs, cd, os, within} from 'zx' +import * as prettier from 'prettier' +import * as path from 'path' +import {globby, argv, YAML, $, fs, cd, os} from '@cspotcode/zx' import onCleanup from 'node-cleanup' -import * as verdaccioPackage from 'verdaccio' +import startVerdaccioServer from 'verdaccio' +import {defer} from '../utils/testUtils' /** * @param {string} pkg @@ -24,10 +25,6 @@ if (!verbose) { ) } -// 'verdaccio' is not an es module so we have to do this: -// @ts-ignore -const startVerdaccioServer = verdaccioPackage.default.default - const config = { VERDACCIO_PORT: 4823, VERDACCIO_HOST: `localhost`, @@ -60,7 +57,7 @@ const keepAlive = !!argv['keep-alive'] * This script starts verdaccio and publishes all the packages in the monorepo to it, then * it runs `npm install` on all the test packages, and finally it closes verdaccio. */ -export async function installFixtures() { +export async function installFixtures(): Promise { onCleanup((exitCode, signal) => { onCleanup.uninstall() restoreTestPackageJsons() @@ -197,7 +194,7 @@ async function patchTheatreDependencies(pathToPackageJson, version) { fs.writeFileSync(pathToPackageJson, jsonStringPrettified, {encoding: 'utf-8'}) } -async function patchTestPackageJsons() { +async function patchTestPackageJsons(): Promise<() => void> { const packagePaths = (await getCompatibilityTestSetups()).map( (pathToPackageDir) => path.join(pathToPackageDir, 'package.json'), ) @@ -220,42 +217,49 @@ async function patchTestPackageJsons() { * * Credit: https://github.com/storybookjs/storybook/blob/92b23c080d03433765cbc7a60553d036a612a501/scripts/run-registry.ts */ -const startVerdaccio = (port) => { +async function startVerdaccio(port: number): Promise<{close: () => void}> { let resolved = false - return Promise.race([ - new Promise((resolve) => { - const config = { - ...YAML.parse( - fs.readFileSync(path.join(__dirname, '../verdaccio.yml'), 'utf8'), - ), - } - if (verbose) { - config.logs.level = 'warn' - } + const deferred = defer<{close: () => void}>() - const cache = path.join(__dirname, '../.verdaccio-cache') + const config = { + ...YAML.parse( + fs.readFileSync(path.join(__dirname, '../verdaccio.yml'), 'utf8'), + ), + } - config.self_path = cache + if (verbose) { + config.logs.level = 'warn' + } - const onReady = (webServer) => { - webServer.listen(port, () => { - resolved = true - resolve(webServer) - }) - } + const cache = path.join(__dirname, '../.verdaccio-cache') - startVerdaccioServer(config, 6000, cache, '1.0.0', 'verdaccio', onReady) - }), + config.self_path = cache + + startVerdaccioServer( + config, + '6000', + cache, + '1.0.0', + 'verdaccio', + (webServer) => { + webServer.listen(port, () => { + resolved = true + deferred.resolve(webServer) + }) + }, + ) + + await Promise.race([ + deferred.promise, new Promise((_, rej) => { setTimeout(() => { - if (!resolved) { - resolved = true - rej(new Error(`TIMEOUT - verdaccio didn't start within 10s`)) - } + rej(new Error(`TIMEOUT - verdaccio didn't start within 10s`)) }, 10000) }), ]) + + return deferred.promise } const packagesToPublish = [ @@ -272,11 +276,14 @@ const packagesToPublish = [ * Assigns a new version to each of @theatre/* packages. If there a package depends on another package in this monorepo, * this function makes sure the dependency version is fixed at "version" * - * @param {{name: string, location: string}[]} workspacesListObjects - An Array of objects containing information about the workspaces - * @param {string} version - Version of the latest commit (or any other string) - * @returns {Promise<() => void>} - An async function that restores the package.json files to their original version + * @param workspacesListObjects - An Array of objects containing information about the workspaces + * @param version - Version of the latest commit (or any other string) + * @returns - An async function that restores the package.json files to their original version */ -async function writeVersionsToPackageJSONs(workspacesListObjects, version) { +async function writeVersionsToPackageJSONs( + workspacesListObjects: Array<{name: string; location: string}>, + version: string, +): Promise<() => void> { /** * An array of functions each of which restores a certain package.json to its original state * @type {Array<() => void>} @@ -374,9 +381,9 @@ async function releaseToVerdaccio() { /** * Get all the setups from `./compat-tests/` * - * @returns {Promise>} An array containing the absolute paths to the compatibility test setups + * @returns An array containing the absolute paths to the compatibility test setups */ -export async function getCompatibilityTestSetups() { +export async function getCompatibilityTestSetups(): Promise> { const fixturePackageJsonFiles = await globby( './fixtures/*/package/package.json', { diff --git a/compat-tests/tsconfig.json b/compat-tests/tsconfig.json new file mode 100644 index 0000000..4ada47a --- /dev/null +++ b/compat-tests/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "outDir": "dist", + "lib": ["ESNext", "DOM"], + "rootDir": ".", + "types": ["jest", "node"], + "target": "es6", + "noEmit": true, + "composite": true, + "moduleResolution": "node", + "skipLibCheck": true + }, + "include": [ + "./scripts/*.ts", + "./*.compat-test.ts", + "./**/*.compat-test.ts", + "./utils/**/*.ts" + ] +} diff --git a/devEnv/typecheck-all-projects/tsconfig.all.json b/devEnv/typecheck-all-projects/tsconfig.all.json index 67893a7..e3b7578 100644 --- a/devEnv/typecheck-all-projects/tsconfig.all.json +++ b/devEnv/typecheck-all-projects/tsconfig.all.json @@ -11,6 +11,7 @@ {"path": "../../packages/playground"}, {"path": "../../packages/benchmarks"}, {"path": "../../packages/r3f"}, - {"path": "../../examples/basic-dom"} + {"path": "../../examples/basic-dom"}, + {"path": "../../compat-tests"} ] } diff --git a/yarn.lock b/yarn.lock index 3691ab7..a704d38 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5148,6 +5148,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-arm64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/android-arm64@npm:0.18.18" + conditions: os=android & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/android-arm@npm:0.15.15": version: 0.15.15 resolution: "@esbuild/android-arm@npm:0.15.15" @@ -5176,6 +5183,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-arm@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/android-arm@npm:0.18.18" + conditions: os=android & cpu=arm + languageName: node + linkType: hard + "@esbuild/android-x64@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/android-x64@npm:0.17.19" @@ -5197,6 +5211,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/android-x64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/android-x64@npm:0.18.18" + conditions: os=android & cpu=x64 + languageName: node + linkType: hard + "@esbuild/darwin-arm64@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/darwin-arm64@npm:0.17.19" @@ -5218,6 +5239,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/darwin-arm64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/darwin-arm64@npm:0.18.18" + conditions: os=darwin & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/darwin-x64@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/darwin-x64@npm:0.17.19" @@ -5239,6 +5267,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/darwin-x64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/darwin-x64@npm:0.18.18" + conditions: os=darwin & cpu=x64 + languageName: node + linkType: hard + "@esbuild/freebsd-arm64@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/freebsd-arm64@npm:0.17.19" @@ -5260,6 +5295,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/freebsd-arm64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/freebsd-arm64@npm:0.18.18" + conditions: os=freebsd & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/freebsd-x64@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/freebsd-x64@npm:0.17.19" @@ -5281,6 +5323,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/freebsd-x64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/freebsd-x64@npm:0.18.18" + conditions: os=freebsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/linux-arm64@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/linux-arm64@npm:0.17.19" @@ -5302,6 +5351,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-arm64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/linux-arm64@npm:0.18.18" + conditions: os=linux & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/linux-arm@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/linux-arm@npm:0.17.19" @@ -5323,6 +5379,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-arm@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/linux-arm@npm:0.18.18" + conditions: os=linux & cpu=arm + languageName: node + linkType: hard + "@esbuild/linux-ia32@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/linux-ia32@npm:0.17.19" @@ -5344,6 +5407,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-ia32@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/linux-ia32@npm:0.18.18" + conditions: os=linux & cpu=ia32 + languageName: node + linkType: hard + "@esbuild/linux-loong64@npm:0.14.54": version: 0.14.54 resolution: "@esbuild/linux-loong64@npm:0.14.54" @@ -5379,6 +5449,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-loong64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/linux-loong64@npm:0.18.18" + conditions: os=linux & cpu=loong64 + languageName: node + linkType: hard + "@esbuild/linux-mips64el@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/linux-mips64el@npm:0.17.19" @@ -5400,6 +5477,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-mips64el@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/linux-mips64el@npm:0.18.18" + conditions: os=linux & cpu=mips64el + languageName: node + linkType: hard + "@esbuild/linux-ppc64@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/linux-ppc64@npm:0.17.19" @@ -5421,6 +5505,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-ppc64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/linux-ppc64@npm:0.18.18" + conditions: os=linux & cpu=ppc64 + languageName: node + linkType: hard + "@esbuild/linux-riscv64@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/linux-riscv64@npm:0.17.19" @@ -5442,6 +5533,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-riscv64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/linux-riscv64@npm:0.18.18" + conditions: os=linux & cpu=riscv64 + languageName: node + linkType: hard + "@esbuild/linux-s390x@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/linux-s390x@npm:0.17.19" @@ -5463,6 +5561,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-s390x@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/linux-s390x@npm:0.18.18" + conditions: os=linux & cpu=s390x + languageName: node + linkType: hard + "@esbuild/linux-x64@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/linux-x64@npm:0.17.19" @@ -5484,6 +5589,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/linux-x64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/linux-x64@npm:0.18.18" + conditions: os=linux & cpu=x64 + languageName: node + linkType: hard + "@esbuild/netbsd-x64@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/netbsd-x64@npm:0.17.19" @@ -5505,6 +5617,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/netbsd-x64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/netbsd-x64@npm:0.18.18" + conditions: os=netbsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/openbsd-x64@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/openbsd-x64@npm:0.17.19" @@ -5526,6 +5645,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/openbsd-x64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/openbsd-x64@npm:0.18.18" + conditions: os=openbsd & cpu=x64 + languageName: node + linkType: hard + "@esbuild/sunos-x64@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/sunos-x64@npm:0.17.19" @@ -5547,6 +5673,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/sunos-x64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/sunos-x64@npm:0.18.18" + conditions: os=sunos & cpu=x64 + languageName: node + linkType: hard + "@esbuild/win32-arm64@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/win32-arm64@npm:0.17.19" @@ -5568,6 +5701,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-arm64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/win32-arm64@npm:0.18.18" + conditions: os=win32 & cpu=arm64 + languageName: node + linkType: hard + "@esbuild/win32-ia32@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/win32-ia32@npm:0.17.19" @@ -5589,6 +5729,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-ia32@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/win32-ia32@npm:0.18.18" + conditions: os=win32 & cpu=ia32 + languageName: node + linkType: hard + "@esbuild/win32-x64@npm:0.17.19": version: 0.17.19 resolution: "@esbuild/win32-x64@npm:0.17.19" @@ -5610,6 +5757,13 @@ __metadata: languageName: node linkType: hard +"@esbuild/win32-x64@npm:0.18.18": + version: 0.18.18 + resolution: "@esbuild/win32-x64@npm:0.18.18" + conditions: os=win32 & cpu=x64 + languageName: node + linkType: hard + "@eslint/eslintrc@npm:^0.4.3": version: 0.4.3 resolution: "@eslint/eslintrc@npm:0.4.3" @@ -7856,13 +8010,15 @@ __metadata: resolution: "@theatre/compat-tests@workspace:compat-tests" dependencies: "@cspotcode/zx": ^6.1.2 + "@verdaccio/types": ^10.8.0 + esbuild: ^0.18.18 + esbuild-register: ^3.4.2 node-cleanup: ^2.1.2 playwright: ^1.29.1 prettier: ^2.6.2 verdaccio: ^5.26.1 verdaccio-auth-memory: ^10.2.2 verdaccio-memory: ^10.3.2 - zx: ^7.1.1 languageName: unknown linkType: soft @@ -8535,13 +8691,6 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:^18.7.20": - version: 18.11.13 - resolution: "@types/node@npm:18.11.13" - checksum: b0c1aa3bd2f5df8240e61096a49d6d4be600109b824d23408ec4ba1ec057dc0c60588e09f73b8a60455ad26d367e9c5562fad8403099f885cbc7b4cace83ec4c - languageName: node - linkType: hard - "@types/normalize-package-data@npm:^2.4.0": version: 2.4.0 resolution: "@types/normalize-package-data@npm:2.4.0" @@ -8591,13 +8740,6 @@ __metadata: languageName: node linkType: hard -"@types/ps-tree@npm:^1.1.2": - version: 1.1.2 - resolution: "@types/ps-tree@npm:1.1.2" - checksum: 575c3b2b83ea8935ab296ac9e17f6a2c1a5bb155f9e30663bb7a7c741a8ca4641f0df9748866230f1d6c3f87ed4ffa3fa91f1df444ef9979a3df31114534bf25 - languageName: node - linkType: hard - "@types/q@npm:^1.5.1": version: 1.5.4 resolution: "@types/q@npm:1.5.4" @@ -9548,6 +9690,13 @@ __metadata: languageName: node linkType: hard +"@verdaccio/types@npm:^10.8.0": + version: 10.8.0 + resolution: "@verdaccio/types@npm:10.8.0" + checksum: d69822c5a8b5530dfe5335b4fc4a220bad43220ed6af39d5b81ed6f22a8f5d557873d3382da30a96b08249a345deb05f6fad7aa356f2508b4c4afda943fcd701 + languageName: node + linkType: hard + "@verdaccio/ui-theme@npm:6.0.0-6-next.74": version: 6.0.0-6-next.74 resolution: "@verdaccio/ui-theme@npm:6.0.0-6-next.74" @@ -14786,7 +14935,7 @@ __metadata: languageName: node linkType: hard -"duplexer@npm:^0.1.1, duplexer@npm:^0.1.2, duplexer@npm:~0.1.1": +"duplexer@npm:^0.1.1, duplexer@npm:^0.1.2": version: 0.1.2 resolution: "duplexer@npm:0.1.2" checksum: 62ba61a830c56801db28ff6305c7d289b6dc9f859054e8c982abd8ee0b0a14d2e9a8e7d086ffee12e868d43e2bbe8a964be55ddbd8c8957714c87373c7a4f9b0 @@ -16055,6 +16204,83 @@ __metadata: languageName: node linkType: hard +"esbuild@npm:^0.18.18": + version: 0.18.18 + resolution: "esbuild@npm:0.18.18" + dependencies: + "@esbuild/android-arm": 0.18.18 + "@esbuild/android-arm64": 0.18.18 + "@esbuild/android-x64": 0.18.18 + "@esbuild/darwin-arm64": 0.18.18 + "@esbuild/darwin-x64": 0.18.18 + "@esbuild/freebsd-arm64": 0.18.18 + "@esbuild/freebsd-x64": 0.18.18 + "@esbuild/linux-arm": 0.18.18 + "@esbuild/linux-arm64": 0.18.18 + "@esbuild/linux-ia32": 0.18.18 + "@esbuild/linux-loong64": 0.18.18 + "@esbuild/linux-mips64el": 0.18.18 + "@esbuild/linux-ppc64": 0.18.18 + "@esbuild/linux-riscv64": 0.18.18 + "@esbuild/linux-s390x": 0.18.18 + "@esbuild/linux-x64": 0.18.18 + "@esbuild/netbsd-x64": 0.18.18 + "@esbuild/openbsd-x64": 0.18.18 + "@esbuild/sunos-x64": 0.18.18 + "@esbuild/win32-arm64": 0.18.18 + "@esbuild/win32-ia32": 0.18.18 + "@esbuild/win32-x64": 0.18.18 + 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: 77451ce6b64da1fd5fd24815cf1ebfeeb9471fbd2e10577b399b5a0e44589b936384d4d7be8576b0aafdedbd8696cec21579a6e596afe87875902c3a55be6acc + languageName: node + linkType: hard + "escalade@npm:^3.0.2, escalade@npm:^3.1.1": version: 3.1.1 resolution: "escalade@npm:3.1.1" @@ -16974,21 +17200,6 @@ __metadata: languageName: node linkType: hard -"event-stream@npm:=3.3.4": - version: 3.3.4 - resolution: "event-stream@npm:3.3.4" - dependencies: - duplexer: ~0.1.1 - from: ~0 - map-stream: ~0.1.0 - pause-stream: 0.0.11 - split: 0.3 - stream-combiner: ~0.0.4 - through: ~2.3.1 - checksum: 80b467820b6daf824d9fb4345d2daf115a056e5c104463f2e98534e92d196a27f2df5ea2aa085624db26f4c45698905499e881d13bc7c01f7a13eac85be72a22 - languageName: node - linkType: hard - "event-target-shim@npm:^5.0.0": version: 5.0.1 resolution: "event-target-shim@npm:5.0.1" @@ -17881,13 +18092,6 @@ __metadata: languageName: node linkType: hard -"from@npm:~0": - version: 0.1.7 - resolution: "from@npm:0.1.7" - checksum: b85125b7890489656eb2e4f208f7654a93ec26e3aefaf3bbbcc0d496fc1941e4405834fcc9fe7333192aa2187905510ace70417bbf9ac6f6f4784a731d986939 - languageName: node - linkType: hard - "fs-extra@npm:^10.0.0": version: 10.0.0 resolution: "fs-extra@npm:10.0.0" @@ -17899,17 +18103,6 @@ __metadata: languageName: node linkType: hard -"fs-extra@npm:^10.1.0": - version: 10.1.0 - resolution: "fs-extra@npm:10.1.0" - dependencies: - graceful-fs: ^4.2.0 - jsonfile: ^6.0.1 - universalify: ^2.0.0 - checksum: dc94ab37096f813cc3ca12f0f1b5ad6744dfed9ed21e953d72530d103cea193c2f81584a39e9dee1bea36de5ee66805678c0dddc048e8af1427ac19c00fffc50 - languageName: node - linkType: hard - "fs-extra@npm:^7.0.0, fs-extra@npm:~7.0.1": version: 7.0.1 resolution: "fs-extra@npm:7.0.1" @@ -18421,19 +18614,6 @@ fsevents@^1.2.7: languageName: node linkType: hard -"globby@npm:^13.1.2": - version: 13.1.2 - resolution: "globby@npm:13.1.2" - dependencies: - dir-glob: ^3.0.1 - fast-glob: ^3.2.11 - ignore: ^5.2.0 - merge2: ^1.4.1 - slash: ^4.0.0 - checksum: c148fcda0c981f00fb434bb94ca258f0a9d23cedbde6fb3f37098e1abde5b065019e2c63fe2aa2fad4daf2b54bf360b4d0423d85fb3a63d09ed75a2837d4de0f - languageName: node - linkType: hard - "globby@npm:^6.1.0": version: 6.1.0 resolution: "globby@npm:6.1.0" @@ -23061,13 +23241,6 @@ fsevents@^1.2.7: languageName: node linkType: hard -"map-stream@npm:~0.1.0": - version: 0.1.0 - resolution: "map-stream@npm:0.1.0" - checksum: 38abbe4eb883888031e6b2fc0630bc583c99396be16b8ace5794b937b682a8a081f03e8b15bfd4914d1bc88318f0e9ac73ba3512ae65955cd449f63256ddb31d - languageName: node - linkType: hard - "map-visit@npm:^1.0.0": version: 1.0.0 resolution: "map-visit@npm:1.0.0" @@ -23895,17 +24068,6 @@ fsevents@^1.2.7: languageName: node linkType: hard -"node-fetch@npm:3.2.10": - version: 3.2.10 - resolution: "node-fetch@npm:3.2.10" - dependencies: - data-uri-to-buffer: ^4.0.0 - fetch-blob: ^3.1.4 - formdata-polyfill: ^4.0.10 - checksum: e65322431f4897ded04197aa5923eaec63a8d53e00432de4e70a4f7006625c8dc32629c5c35f4fe8ee719a4825544d07bf53f6e146a7265914262f493e8deac1 - languageName: node - linkType: hard - "node-fetch@npm:^2.6.1, node-fetch@npm:cjs": version: 2.6.7 resolution: "node-fetch@npm:2.6.7" @@ -25165,15 +25327,6 @@ fsevents@^1.2.7: languageName: node linkType: hard -"pause-stream@npm:0.0.11": - version: 0.0.11 - resolution: "pause-stream@npm:0.0.11" - dependencies: - through: ~2.3 - checksum: 3c4a14052a638b92e0c96eb00c0d7977df7f79ea28395250c525d197f1fc02d34ce1165d5362e2e6ebbb251524b94a76f3f0d4abc39ab8b016d97449fe15583c - languageName: node - linkType: hard - "pbkdf2@npm:^3.0.3": version: 3.1.1 resolution: "pbkdf2@npm:3.1.1" @@ -27563,17 +27716,6 @@ fsevents@^1.2.7: languageName: node linkType: hard -"ps-tree@npm:^1.2.0": - version: 1.2.0 - resolution: "ps-tree@npm:1.2.0" - dependencies: - event-stream: =3.3.4 - bin: - ps-tree: ./bin/ps-tree.js - checksum: e635dd00f53d30d31696cf5f95b3a8dbdf9b1aeb36d4391578ce8e8cd22949b7c5536c73b0dc18c78615ea3ddd4be96101166be59ca2e3e3cb1e2f79ba3c7f98 - languageName: node - linkType: hard - "psl@npm:^1.1.28, psl@npm:^1.1.33": version: 1.8.0 resolution: "psl@npm:1.8.0" @@ -30433,15 +30575,6 @@ fsevents@^1.2.7: languageName: node linkType: hard -"split@npm:0.3": - version: 0.3.3 - resolution: "split@npm:0.3.3" - dependencies: - through: 2 - checksum: 2e076634c9637cfdc54ab4387b6a243b8c33b360874a25adf6f327a5647f07cb3bf1c755d515248eb3afee4e382278d01f62c62d87263c118f28065b86f74f02 - languageName: node - linkType: hard - "sprintf-js@npm:~1.0.2": version: 1.0.3 resolution: "sprintf-js@npm:1.0.3" @@ -30652,15 +30785,6 @@ fsevents@^1.2.7: languageName: node linkType: hard -"stream-combiner@npm:~0.0.4": - version: 0.0.4 - resolution: "stream-combiner@npm:0.0.4" - dependencies: - duplexer: ~0.1.1 - checksum: 844b622cfe8b9de45a6007404f613b60aaf85200ab9862299066204242f89a7c8033b1c356c998aa6cfc630f6cd9eba119ec1c6dc1f93e245982be4a847aee7d - languageName: node - linkType: hard - "stream-each@npm:^1.1.0": version: 1.2.3 resolution: "stream-each@npm:1.2.3" @@ -31815,7 +31939,7 @@ fsevents@^1.2.7: languageName: node linkType: hard -"through@npm:2, through@npm:>=2.2.7 <3, through@npm:^2.3.8, through@npm:~2.3, through@npm:~2.3.1": +"through@npm:>=2.2.7 <3, through@npm:^2.3.8": version: 2.3.8 resolution: "through@npm:2.3.8" checksum: a38c3e059853c494af95d50c072b83f8b676a9ba2818dcc5b108ef252230735c54e0185437618596c790bbba8fcdaef5b290405981ffa09dce67b1f1bf190cbd @@ -34568,26 +34692,3 @@ fsevents@^1.2.7: checksum: cecb75747561c44fd75c8c6d12c0c9d3f4803231846c3ec308dcf2ffbef4f9d53c306152690ea4a5169b92c7f21f1402b2c9a5dff41632cc33ba7dad22a00e14 languageName: node linkType: hard - -"zx@npm:^7.1.1": - version: 7.1.1 - resolution: "zx@npm:7.1.1" - dependencies: - "@types/fs-extra": ^9.0.13 - "@types/minimist": ^1.2.2 - "@types/node": ^18.7.20 - "@types/ps-tree": ^1.1.2 - "@types/which": ^2.0.1 - chalk: ^5.0.1 - fs-extra: ^10.1.0 - globby: ^13.1.2 - minimist: ^1.2.6 - node-fetch: 3.2.10 - ps-tree: ^1.2.0 - which: ^2.0.2 - yaml: ^2.1.1 - bin: - zx: build/cli.js - checksum: 510c56366a62220108247624a83fc088bfc8f393e3f20168d69a67e3c7aff1a4b790c118ee70e58171dcbc91b53ab079bba3074e1c40829f6179a7f48a38be78 - languageName: node - linkType: hard