From a971652ec1403aab3fb89eb2f1640bd5012b895a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Burzy=C5=84ski?= Date: Wed, 5 Jul 2023 08:51:32 +0200 Subject: [PATCH] Use `package.json#exports` (#1185) * Use `package.json#exports` * actually add exports, lol * update Preconstruct again --- .changeset/healthy-cobras-worry.md | 24 +++ package.json | 12 +- packages/apply-release-plan/package.json | 16 +- .../test-utils/simple-get-changelog-entry.ts | 16 +- .../src/test-utils/simple-get-commit-entry.ts | 16 +- packages/assemble-release-plan/package.json | 16 +- packages/changelog-git/package.json | 16 +- packages/changelog-github/package.json | 16 +- packages/cli/changelog/package.json | 7 +- packages/cli/commit/package.json | 7 +- packages/cli/package.json | 40 +++- packages/config/package.json | 16 +- packages/errors/package.json | 16 +- packages/get-dependents-graph/package.json | 16 +- packages/get-github-info/package.json | 16 +- packages/get-release-plan/package.json | 16 +- packages/get-version-range-type/package.json | 16 +- packages/get-workspaces/package.json | 12 ++ packages/git/package.json | 16 +- packages/logger/package.json | 16 +- packages/parse/package.json | 16 +- packages/pre/package.json | 16 +- packages/read/package.json | 16 +- packages/release-utils/package.json | 15 +- packages/types/package.json | 16 +- packages/write/package.json | 16 +- scripts/test-utils/package.json | 16 +- tsconfig.json | 63 +------ yarn.lock | 176 +++++++++++------- 29 files changed, 467 insertions(+), 209 deletions(-) create mode 100644 .changeset/healthy-cobras-worry.md diff --git a/.changeset/healthy-cobras-worry.md b/.changeset/healthy-cobras-worry.md new file mode 100644 index 000000000..d3ceb5dcb --- /dev/null +++ b/.changeset/healthy-cobras-worry.md @@ -0,0 +1,24 @@ +--- +"@changesets/get-version-range-type": minor +"@changesets/assemble-release-plan": minor +"@changesets/get-dependents-graph": minor +"@changesets/apply-release-plan": minor +"@changesets/changelog-github": minor +"@changesets/get-release-plan": minor +"@changesets/get-github-info": minor +"@changesets/changelog-git": minor +"@changesets/release-utils": minor +"@changesets/test-utils": minor +"@changesets/config": minor +"@changesets/errors": minor +"@changesets/logger": minor +"@changesets/parse": minor +"@changesets/types": minor +"@changesets/write": minor +"@changesets/read": minor +"@changesets/cli": minor +"@changesets/git": minor +"@changesets/pre": minor +--- + +`package.json#exports` have been added to limit what (and how) code might be imported from the package. diff --git a/package.json b/package.json index 7553d19c2..984eaf3b7 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "@babel/preset-typescript": "^7.18.6", "@babel/runtime": "^7.20.1", "@manypkg/cli": "^0.19.1", - "@preconstruct/cli": "^1.1.26", + "@preconstruct/cli": "^2.8.1", "@types/fs-extra": "^5.1.0", "@types/jest": "^24.0.12", "@types/jest-in-case": "^1.0.6", @@ -65,13 +65,19 @@ "jest-junit": "^15.0.0", "jest-watch-typeahead": "^2.2.1", "prettier": "^2.7.1", - "typescript": "^4.8.4" + "typescript": "^5.1.6" }, "preconstruct": { "packages": [ "packages/*", "scripts/*" - ] + ], + "exports": { + "importConditionDefaultExport": "default" + }, + "___experimentalFlags_WILL_CHANGE_IN_PATCH": { + "importsConditions": true + } }, "prettier": {} } diff --git a/packages/apply-release-plan/package.json b/packages/apply-release-plan/package.json index 41deb288d..f59b8bf6b 100644 --- a/packages/apply-release-plan/package.json +++ b/packages/apply-release-plan/package.json @@ -2,8 +2,20 @@ "name": "@changesets/apply-release-plan", "version": "6.1.4", "description": "Takes a release plan and applies it to packages", - "main": "dist/apply-release-plan.cjs.js", - "module": "dist/apply-release-plan.esm.js", + "main": "dist/changesets-apply-release-plan.cjs.js", + "module": "dist/changesets-apply-release-plan.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-apply-release-plan.cjs.mjs", + "default": "./dist/changesets-apply-release-plan.cjs.js" + }, + "module": "./dist/changesets-apply-release-plan.esm.js", + "import": "./dist/changesets-apply-release-plan.cjs.mjs", + "default": "./dist/changesets-apply-release-plan.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/apply-release-plan", "dependencies": { diff --git a/packages/apply-release-plan/src/test-utils/simple-get-changelog-entry.ts b/packages/apply-release-plan/src/test-utils/simple-get-changelog-entry.ts index 23a86ba9d..14631450d 100644 --- a/packages/apply-release-plan/src/test-utils/simple-get-changelog-entry.ts +++ b/packages/apply-release-plan/src/test-utils/simple-get-changelog-entry.ts @@ -1,12 +1,4 @@ -/* -BAD CODE ALERT! - -You should never reach out of one package and into another in a multi-package repository. -(doing so is a leading cause of 'works on my machine' but then failure when the packages are published) - -We are doing it here to avoide adding a circular dependency and as this is only used in testing. - -This is wicked, and please don't copy us. -*/ - -export { default } from "../../../cli/changelog"; +// We are doing it here to avoide adding a circular dependency and as this is only used in testing. +// This is wicked, and please don't copy us. +// eslint-disable-next-line import/no-extraneous-dependencies +export { default } from "@changesets/cli/changelog"; diff --git a/packages/apply-release-plan/src/test-utils/simple-get-commit-entry.ts b/packages/apply-release-plan/src/test-utils/simple-get-commit-entry.ts index 39952855c..e02e5e364 100644 --- a/packages/apply-release-plan/src/test-utils/simple-get-commit-entry.ts +++ b/packages/apply-release-plan/src/test-utils/simple-get-commit-entry.ts @@ -1,12 +1,4 @@ -/* -BAD CODE ALERT! - -You should never reach out of one package and into another in a multi-package repository. -(doing so is a leading cause of 'works on my machine' but then failure when the packages are published) - -We are doing it here to avoide adding a circular dependency and as this is only used in testing. - -This is wicked, and please don't copy us. -*/ - -export { default } from "../../../cli/commit"; +// We are doing it here to avoide adding a circular dependency and as this is only used in testing. +// This is wicked, and please don't copy us. +// eslint-disable-next-line import/no-extraneous-dependencies +export { default } from "@changesets/cli/commit"; diff --git a/packages/assemble-release-plan/package.json b/packages/assemble-release-plan/package.json index 5ba7423c7..955cf7363 100644 --- a/packages/assemble-release-plan/package.json +++ b/packages/assemble-release-plan/package.json @@ -2,8 +2,20 @@ "name": "@changesets/assemble-release-plan", "version": "5.2.4", "description": "Reads changesets and adds information on dependents that need bumping", - "main": "dist/assemble-release-plan.cjs.js", - "module": "dist/assemble-release-plan.esm.js", + "main": "dist/changesets-assemble-release-plan.cjs.js", + "module": "dist/changesets-assemble-release-plan.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-assemble-release-plan.cjs.mjs", + "default": "./dist/changesets-assemble-release-plan.cjs.js" + }, + "module": "./dist/changesets-assemble-release-plan.esm.js", + "import": "./dist/changesets-assemble-release-plan.cjs.mjs", + "default": "./dist/changesets-assemble-release-plan.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/assemble-release-plan", "dependencies": { diff --git a/packages/changelog-git/package.json b/packages/changelog-git/package.json index 921fdbf30..5186f5225 100644 --- a/packages/changelog-git/package.json +++ b/packages/changelog-git/package.json @@ -2,8 +2,20 @@ "name": "@changesets/changelog-git", "version": "0.1.14", "description": "A changelog entry generator for git that writes hashes", - "main": "dist/changelog-git.cjs.js", - "module": "dist/changelog-git.esm.js", + "main": "dist/changesets-changelog-git.cjs.js", + "module": "dist/changesets-changelog-git.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-changelog-git.cjs.mjs", + "default": "./dist/changesets-changelog-git.cjs.js" + }, + "module": "./dist/changesets-changelog-git.esm.js", + "import": "./dist/changesets-changelog-git.cjs.mjs", + "default": "./dist/changesets-changelog-git.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/changelog-git", "dependencies": { diff --git a/packages/changelog-github/package.json b/packages/changelog-github/package.json index 32afdea80..e370b1ccc 100644 --- a/packages/changelog-github/package.json +++ b/packages/changelog-github/package.json @@ -2,8 +2,20 @@ "name": "@changesets/changelog-github", "version": "0.4.8", "description": "A changelog entry generator for GitHub that links to commits, PRs and users", - "main": "dist/changelog-github.cjs.js", - "module": "dist/changelog-github.esm.js", + "main": "dist/changesets-changelog-github.cjs.js", + "module": "dist/changesets-changelog-github.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-changelog-github.cjs.mjs", + "default": "./dist/changesets-changelog-github.cjs.js" + }, + "module": "./dist/changesets-changelog-github.esm.js", + "import": "./dist/changesets-changelog-github.cjs.mjs", + "default": "./dist/changesets-changelog-github.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/changelog-github", "dependencies": { diff --git a/packages/cli/changelog/package.json b/packages/cli/changelog/package.json index 6fd608aae..d737e202c 100644 --- a/packages/cli/changelog/package.json +++ b/packages/cli/changelog/package.json @@ -1,7 +1,4 @@ { - "main": "dist/cli.cjs.js", - "module": "dist/cli.esm.js", - "preconstruct": { - "source": "../src/changelog" - } + "main": "dist/changesets-cli-changelog.cjs.js", + "module": "dist/changesets-cli-changelog.esm.js" } diff --git a/packages/cli/commit/package.json b/packages/cli/commit/package.json index c028d12de..8746bf853 100644 --- a/packages/cli/commit/package.json +++ b/packages/cli/commit/package.json @@ -1,7 +1,4 @@ { - "main": "dist/cli.cjs.js", - "module": "dist/cli.esm.js", - "preconstruct": { - "source": "../src/commit" - } + "main": "dist/changesets-cli-commit.cjs.js", + "module": "dist/changesets-cli-commit.esm.js" } diff --git a/packages/cli/package.json b/packages/cli/package.json index ab753f29d..5c1b7e63d 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -13,8 +13,38 @@ "changelog", "commit" ], - "main": "dist/cli.cjs.js", - "module": "dist/cli.esm.js", + "main": "dist/changesets-cli.cjs.js", + "module": "dist/changesets-cli.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-cli.cjs.mjs", + "default": "./dist/changesets-cli.cjs.js" + }, + "module": "./dist/changesets-cli.esm.js", + "import": "./dist/changesets-cli.cjs.mjs", + "default": "./dist/changesets-cli.cjs.js" + }, + "./changelog": { + "types": { + "import": "./changelog/dist/changesets-cli-changelog.cjs.mjs", + "default": "./changelog/dist/changesets-cli-changelog.cjs.js" + }, + "module": "./changelog/dist/changesets-cli-changelog.esm.js", + "import": "./changelog/dist/changesets-cli-changelog.cjs.mjs", + "default": "./changelog/dist/changesets-cli-changelog.cjs.js" + }, + "./commit": { + "types": { + "import": "./commit/dist/changesets-cli-commit.cjs.mjs", + "default": "./commit/dist/changesets-cli-commit.cjs.js" + }, + "module": "./commit/dist/changesets-cli-commit.esm.js", + "import": "./commit/dist/changesets-cli-commit.cjs.mjs", + "default": "./commit/dist/changesets-cli-commit.cjs.js" + }, + "./package.json": "./package.json" + }, "author": "Changesets Contributors", "contributors": [ "Ben Conolly", @@ -23,9 +53,9 @@ ], "preconstruct": { "entrypoints": [ - ".", - "changelog", - "commit" + "./index.ts", + "./changelog.ts", + "./commit/index.ts" ] }, "license": "MIT", diff --git a/packages/config/package.json b/packages/config/package.json index 25655b466..92bb83315 100644 --- a/packages/config/package.json +++ b/packages/config/package.json @@ -2,8 +2,20 @@ "name": "@changesets/config", "version": "2.3.1", "description": "Utilities for reading and parsing Changeset's config", - "main": "dist/config.cjs.js", - "module": "dist/config.esm.js", + "main": "dist/changesets-config.cjs.js", + "module": "dist/changesets-config.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-config.cjs.mjs", + "default": "./dist/changesets-config.cjs.js" + }, + "module": "./dist/changesets-config.esm.js", + "import": "./dist/changesets-config.cjs.mjs", + "default": "./dist/changesets-config.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/config", "files": [ diff --git a/packages/errors/package.json b/packages/errors/package.json index 0b0b1dd09..44c704441 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -2,8 +2,20 @@ "name": "@changesets/errors", "version": "0.1.4", "description": "Error classes for @changesets", - "main": "dist/errors.cjs.js", - "module": "dist/errors.esm.js", + "main": "dist/changesets-errors.cjs.js", + "module": "dist/changesets-errors.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-errors.cjs.mjs", + "default": "./dist/changesets-errors.cjs.js" + }, + "module": "./dist/changesets-errors.esm.js", + "import": "./dist/changesets-errors.cjs.mjs", + "default": "./dist/changesets-errors.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/errors", "dependencies": { diff --git a/packages/get-dependents-graph/package.json b/packages/get-dependents-graph/package.json index 1c641960b..0e5751ad1 100644 --- a/packages/get-dependents-graph/package.json +++ b/packages/get-dependents-graph/package.json @@ -2,8 +2,20 @@ "name": "@changesets/get-dependents-graph", "version": "1.3.6", "description": "Get the graph of dependents in a monorepo", - "main": "dist/get-dependents-graph.cjs.js", - "module": "dist/get-dependents-graph.esm.js", + "main": "dist/changesets-get-dependents-graph.cjs.js", + "module": "dist/changesets-get-dependents-graph.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-get-dependents-graph.cjs.mjs", + "default": "./dist/changesets-get-dependents-graph.cjs.js" + }, + "module": "./dist/changesets-get-dependents-graph.esm.js", + "import": "./dist/changesets-get-dependents-graph.cjs.mjs", + "default": "./dist/changesets-get-dependents-graph.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/get-dependents-graph", "dependencies": { diff --git a/packages/get-github-info/package.json b/packages/get-github-info/package.json index 9502b3b74..baa1d8b8a 100644 --- a/packages/get-github-info/package.json +++ b/packages/get-github-info/package.json @@ -2,8 +2,20 @@ "name": "@changesets/get-github-info", "version": "0.5.2", "description": "Get the GitHub username and PR number from a commit. Intended for use with changesets.", - "main": "dist/get-github-info.cjs.js", - "module": "dist/get-github-info.esm.js", + "main": "dist/changesets-get-github-info.cjs.js", + "module": "dist/changesets-get-github-info.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-get-github-info.cjs.mjs", + "default": "./dist/changesets-get-github-info.cjs.js" + }, + "module": "./dist/changesets-get-github-info.esm.js", + "import": "./dist/changesets-get-github-info.cjs.mjs", + "default": "./dist/changesets-get-github-info.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/get-github-info", "dependencies": { diff --git a/packages/get-release-plan/package.json b/packages/get-release-plan/package.json index 08122f92b..63e06ad0a 100644 --- a/packages/get-release-plan/package.json +++ b/packages/get-release-plan/package.json @@ -2,8 +2,20 @@ "name": "@changesets/get-release-plan", "version": "3.0.17", "description": "Reads changesets and adds information on dependents that need bumping", - "main": "dist/get-release-plan.cjs.js", - "module": "dist/get-release-plan.esm.js", + "main": "dist/changesets-get-release-plan.cjs.js", + "module": "dist/changesets-get-release-plan.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-get-release-plan.cjs.mjs", + "default": "./dist/changesets-get-release-plan.cjs.js" + }, + "module": "./dist/changesets-get-release-plan.esm.js", + "import": "./dist/changesets-get-release-plan.cjs.mjs", + "default": "./dist/changesets-get-release-plan.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/get-release-plan", "dependencies": { diff --git a/packages/get-version-range-type/package.json b/packages/get-version-range-type/package.json index 9f5ea028a..4d19312ea 100644 --- a/packages/get-version-range-type/package.json +++ b/packages/get-version-range-type/package.json @@ -2,8 +2,20 @@ "name": "@changesets/get-version-range-type", "version": "0.3.2", "description": "Common get-version-range-type shared between changeset packages", - "main": "dist/get-version-range-type.cjs.js", - "module": "dist/get-version-range-type.esm.js", + "main": "dist/changesets-get-version-range-type.cjs.js", + "module": "dist/changesets-get-version-range-type.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-get-version-range-type.cjs.mjs", + "default": "./dist/changesets-get-version-range-type.cjs.js" + }, + "module": "./dist/changesets-get-version-range-type.esm.js", + "import": "./dist/changesets-get-version-range-type.cjs.mjs", + "default": "./dist/changesets-get-version-range-type.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/get-version-range-type" } diff --git a/packages/get-workspaces/package.json b/packages/get-workspaces/package.json index 781157be5..c84e2a4a9 100644 --- a/packages/get-workspaces/package.json +++ b/packages/get-workspaces/package.json @@ -4,6 +4,18 @@ "description": "Get workspaces for yarn workspaces, bolt workspaces, or the root package for building repo-agnostic tools", "main": "dist/get-workspaces.cjs.js", "module": "dist/get-workspaces.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/get-workspaces.cjs.mjs", + "default": "./dist/get-workspaces.cjs.js" + }, + "module": "./dist/get-workspaces.esm.js", + "import": "./dist/get-workspaces.cjs.mjs", + "default": "./dist/get-workspaces.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/get-workspaces", "dependencies": { diff --git a/packages/git/package.json b/packages/git/package.json index be7291b2e..0333e3720 100644 --- a/packages/git/package.json +++ b/packages/git/package.json @@ -2,8 +2,20 @@ "name": "@changesets/git", "version": "2.0.0", "description": "Some git helpers that changesets use to get information", - "main": "dist/git.cjs.js", - "module": "dist/git.esm.js", + "main": "dist/changesets-git.cjs.js", + "module": "dist/changesets-git.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-git.cjs.mjs", + "default": "./dist/changesets-git.cjs.js" + }, + "module": "./dist/changesets-git.esm.js", + "import": "./dist/changesets-git.cjs.mjs", + "default": "./dist/changesets-git.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/git", "dependencies": { diff --git a/packages/logger/package.json b/packages/logger/package.json index 853192408..8c081bfd0 100644 --- a/packages/logger/package.json +++ b/packages/logger/package.json @@ -2,8 +2,20 @@ "name": "@changesets/logger", "version": "0.0.5", "description": "Console log alias", - "main": "dist/logger.cjs.js", - "module": "dist/logger.esm.js", + "main": "dist/changesets-logger.cjs.js", + "module": "dist/changesets-logger.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-logger.cjs.mjs", + "default": "./dist/changesets-logger.cjs.js" + }, + "module": "./dist/changesets-logger.esm.js", + "import": "./dist/changesets-logger.cjs.mjs", + "default": "./dist/changesets-logger.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/logger", "dependencies": { diff --git a/packages/parse/package.json b/packages/parse/package.json index 26fc3b963..6e0a26d4c 100644 --- a/packages/parse/package.json +++ b/packages/parse/package.json @@ -2,8 +2,20 @@ "name": "@changesets/parse", "version": "0.3.16", "description": "Parse a changeset file's contents into a usable json object", - "main": "dist/parse.cjs.js", - "module": "dist/parse.esm.js", + "main": "dist/changesets-parse.cjs.js", + "module": "dist/changesets-parse.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-parse.cjs.mjs", + "default": "./dist/changesets-parse.cjs.js" + }, + "module": "./dist/changesets-parse.esm.js", + "import": "./dist/changesets-parse.cjs.mjs", + "default": "./dist/changesets-parse.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/parse", "dependencies": { diff --git a/packages/pre/package.json b/packages/pre/package.json index 251342a71..0f2640ca5 100644 --- a/packages/pre/package.json +++ b/packages/pre/package.json @@ -2,8 +2,20 @@ "name": "@changesets/pre", "version": "1.0.14", "description": "Utils to make a Changesets repo enter and exit pre mode", - "main": "dist/pre.cjs.js", - "module": "dist/pre.esm.js", + "main": "dist/changesets-pre.cjs.js", + "module": "dist/changesets-pre.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-pre.cjs.mjs", + "default": "./dist/changesets-pre.cjs.js" + }, + "module": "./dist/changesets-pre.esm.js", + "import": "./dist/changesets-pre.cjs.mjs", + "default": "./dist/changesets-pre.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/pre", "dependencies": { diff --git a/packages/read/package.json b/packages/read/package.json index 126ac25a0..7a3a2c997 100644 --- a/packages/read/package.json +++ b/packages/read/package.json @@ -2,8 +2,20 @@ "name": "@changesets/read", "version": "0.5.9", "description": "Read changesets from disc, and return the information as JSON", - "main": "dist/read.cjs.js", - "module": "dist/read.esm.js", + "main": "dist/changesets-read.cjs.js", + "module": "dist/changesets-read.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-read.cjs.mjs", + "default": "./dist/changesets-read.cjs.js" + }, + "module": "./dist/changesets-read.esm.js", + "import": "./dist/changesets-read.cjs.mjs", + "default": "./dist/changesets-read.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/read", "dependencies": { diff --git a/packages/release-utils/package.json b/packages/release-utils/package.json index 49295e03a..73a5f2b7e 100644 --- a/packages/release-utils/package.json +++ b/packages/release-utils/package.json @@ -1,7 +1,20 @@ { "name": "@changesets/release-utils", "version": "0.1.13", - "main": "dist/release-utils.cjs.js", + "main": "dist/changesets-release-utils.cjs.js", + "module": "dist/changesets-release-utils.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-release-utils.cjs.mjs", + "default": "./dist/changesets-release-utils.cjs.js" + }, + "module": "./dist/changesets-release-utils.esm.js", + "import": "./dist/changesets-release-utils.cjs.mjs", + "default": "./dist/changesets-release-utils.cjs.js" + }, + "./package.json": "./package.json" + }, "dependencies": { "@changesets/pre": "^1.0.14", "@changesets/read": "^0.5.9", diff --git a/packages/types/package.json b/packages/types/package.json index ac30d1406..3290d0f98 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -2,8 +2,20 @@ "name": "@changesets/types", "version": "5.2.1", "description": "Common types shared between changeset packages", - "main": "dist/types.cjs.js", - "module": "dist/types.esm.js", + "main": "dist/changesets-types.cjs.js", + "module": "dist/changesets-types.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-types.cjs.mjs", + "default": "./dist/changesets-types.cjs.js" + }, + "module": "./dist/changesets-types.esm.js", + "import": "./dist/changesets-types.cjs.mjs", + "default": "./dist/changesets-types.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/types" } diff --git a/packages/write/package.json b/packages/write/package.json index 20b67f9ce..82abd97ac 100644 --- a/packages/write/package.json +++ b/packages/write/package.json @@ -2,8 +2,20 @@ "name": "@changesets/write", "version": "0.2.3", "description": "Writes a changeset to a file", - "main": "dist/write.cjs.js", - "module": "dist/write.esm.js", + "main": "dist/changesets-write.cjs.js", + "module": "dist/changesets-write.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-write.cjs.mjs", + "default": "./dist/changesets-write.cjs.js" + }, + "module": "./dist/changesets-write.esm.js", + "import": "./dist/changesets-write.cjs.mjs", + "default": "./dist/changesets-write.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/write", "dependencies": { diff --git a/scripts/test-utils/package.json b/scripts/test-utils/package.json index 9fe1867f1..733bf7dfe 100644 --- a/scripts/test-utils/package.json +++ b/scripts/test-utils/package.json @@ -3,8 +3,20 @@ "version": "0.0.5", "private": true, "description": "Utils for testing changesets packages", - "main": "dist/test-utils.cjs.js", - "module": "dist/test-utils.esm.js", + "main": "dist/changesets-test-utils.cjs.js", + "module": "dist/changesets-test-utils.esm.js", + "exports": { + ".": { + "types": { + "import": "./dist/changesets-test-utils.cjs.mjs", + "default": "./dist/changesets-test-utils.cjs.js" + }, + "module": "./dist/changesets-test-utils.esm.js", + "import": "./dist/changesets-test-utils.cjs.mjs", + "default": "./dist/changesets-test-utils.cjs.js" + }, + "./package.json": "./package.json" + }, "license": "MIT", "repository": "https://github.com/changesets/changesets/tree/main/packages/test-utils", "dependencies": { diff --git a/tsconfig.json b/tsconfig.json index d259aae8a..db1b083ff 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,64 +1,11 @@ { "compilerOptions": { - /* Basic Options */ - "target": "esnext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019' or 'ESNEXT'. */, - "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */, + "target": "esnext", + "module": "commonjs", + "moduleResolution": "node", + "esModuleInterop": true, "resolveJsonModule": true, - // "lib": [], /* Specify library files to be included in the compilation. */ - // "allowJs": true, /* Allow javascript files to be compiled. */ - // "checkJs": true, /* Report errors in .js files. */ - // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ - // "declaration": true, /* Generates corresponding '.d.ts' file. */ - // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ - // "sourceMap": true, /* Generates corresponding '.map' file. */ - // "outFile": "./", /* Concatenate and emit output to single file. */ - // "outDir": "./", /* Redirect output structure to the directory. */ - // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ - // "composite": true, /* Enable project compilation */ - // "incremental": true, /* Enable incremental compilation */ - // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */ - // "removeComments": true, /* Do not emit comments to output. */ - // "noEmit": true, /* Do not emit outputs. */ - // "importHelpers": true, /* Import emit helpers from 'tslib'. */ - // "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */ - // "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */ - - /* Strict Type-Checking Options */ - "strict": true /* Enable all strict type-checking options. */, - // "noImplicitAny": true, /* Raise error on expressions and declarations with an implied 'any' type. */ - // "strictNullChecks": true, /* Enable strict null checks. */ - // "strictFunctionTypes": true, /* Enable strict checking of function types. */ - // "strictBindCallApply": true, /* Enable strict 'bind', 'call', and 'apply' methods on functions. */ - // "strictPropertyInitialization": true, /* Enable strict checking of property initialization in classes. */ - // "noImplicitThis": true, /* Raise error on 'this' expressions with an implied 'any' type. */ - // "alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */ - - /* Additional Checks */ - // "noUnusedLocals": true, /* Report errors on unused locals. */ - // "noUnusedParameters": true, /* Report errors on unused parameters. */ - // "noImplicitReturns": true, /* Report error when not all code paths in function return a value. */ - // "noFallthroughCasesInSwitch": true, /* Report errors for fallthrough cases in switch statement. */ - - /* Module Resolution Options */ - // "moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ - // "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ - // "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ - // "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ - // "typeRoots": [], /* List of folders to include type definitions from. */ - // "types": [], /* Type declaration files to be included in compilation. */ - // "allowSyntheticDefaultImports": true, /* Allow default imports from modules with no default export. This does not affect code emit, just typechecking. */ - "esModuleInterop": true /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */, - // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */ - - /* Source Map Options */ - // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */ - // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ - // "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */ - // "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */ - - /* Experimental Options */ - // "experimentalDecorators": true, /* Enables experimental support for ES7 decorators. */ - // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */ + "strict": true, "noEmit": true } } diff --git a/yarn.lock b/yarn.lock index 85da11f70..6b7de47c5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1596,11 +1596,21 @@ resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.1.2.tgz#7c6cf998d6d20b914c0a55a91ae928ff25965e72" integrity sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw== +"@jridgewell/source-map@^0.3.3": + version "0.3.4" + resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.4.tgz#856a142864530d4059dda415659b48d37db2d556" + integrity sha512-KE/SxsDqNs3rrWwFHcRh15ZLVFrI0YoZtgAdIyIq9k5hUNmiWRXXThPomIxHuL20sLdgzbDFyvkUMna14bvtrw== + "@jridgewell/sourcemap-codec@1.4.14", "@jridgewell/sourcemap-codec@^1.4.10": version "1.4.14" resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz#add4c98d341472a289190b424efbdb096991bb24" integrity sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw== +"@jridgewell/sourcemap-codec@^1.4.13": + version "1.4.15" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" + integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== + "@jridgewell/trace-mapping@^0.3.12", "@jridgewell/trace-mapping@^0.3.15", "@jridgewell/trace-mapping@^0.3.8", "@jridgewell/trace-mapping@^0.3.9": version "0.3.17" resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz#793041277af9073b0951a7fe0f0d8c4c98c36985" @@ -1712,33 +1722,35 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@preconstruct/cli@^1.1.26": - version "1.1.29" - resolved "https://registry.yarnpkg.com/@preconstruct/cli/-/cli-1.1.29.tgz#28211c5bc0b7a8959456cc96474d88628f10d23d" - integrity sha512-otzF5uslBT2lQ2RHvq9QCCjO5RvDF85exgrjAh+6frj5E6YRQ6i9YBjnkROM6vtMisAklm9HGBRjVsTsx2jLrA== +"@preconstruct/cli@^2.8.1": + version "2.8.1" + resolved "https://registry.yarnpkg.com/@preconstruct/cli/-/cli-2.8.1.tgz#7d7f9fa32e1bfd355d79062a9ccc5af4c97b3915" + integrity sha512-PX5w+au06iY/QaT+9RLmRlIfavRCRoMTC/krwtNrgPEnubR9e6P+QlywrKmwiEvkzbR9AEzGnRZL8uNRDDMzrQ== dependencies: "@babel/code-frame" "^7.5.5" "@babel/core" "^7.7.7" "@babel/helper-module-imports" "^7.10.4" "@babel/runtime" "^7.7.7" - "@preconstruct/hook" "^0.3.0" + "@preconstruct/hook" "^0.4.0" "@rollup/plugin-alias" "^3.1.1" "@rollup/plugin-commonjs" "^15.0.0" "@rollup/plugin-json" "^4.1.0" - "@rollup/plugin-node-resolve" "^9.0.0" - "@rollup/plugin-replace" "^2.3.3" + "@rollup/plugin-node-resolve" "^11.2.1" + "@rollup/plugin-replace" "^2.4.1" builtin-modules "^3.1.0" chalk "^4.1.0" dataloader "^2.0.0" detect-indent "^6.0.0" enquirer "^2.3.6" + estree-walker "^2.0.1" fast-deep-equal "^2.0.1" + fast-glob "^3.2.4" fs-extra "^9.0.1" - globby "^11.0.1" is-ci "^2.0.0" + is-reference "^1.2.1" jest-worker "^26.3.0" + magic-string "^0.30.0" meow "^7.1.0" - micromatch "^4.0.2" ms "^2.1.2" normalize-path "^3.0.0" npm-packlist "^2.1.2" @@ -1748,15 +1760,16 @@ quick-lru "^5.1.1" resolve "^1.17.0" resolve-from "^5.0.0" - rollup "^2.26.5" - terser "^5.2.1" + rollup "^2.79.1" + semver "^7.3.4" + terser "^5.16.8" v8-compile-cache "^2.1.1" - xxhash-wasm "^0.4.0" + zod "^3.21.4" -"@preconstruct/hook@^0.3.0": - version "0.3.0" - resolved "https://registry.yarnpkg.com/@preconstruct/hook/-/hook-0.3.0.tgz#d8cee47aa99ab3ec86a452724d3dc0f6a52a4551" - integrity sha512-IKgThZklIRdkWmU8DBXAG5n04VqD/m/Xhdr+Pz+eOBCTimjtwQlMDrGPmAjKJIr45eAsJdNakabLdz4o/ZBIpg== +"@preconstruct/hook@^0.4.0": + version "0.4.0" + resolved "https://registry.yarnpkg.com/@preconstruct/hook/-/hook-0.4.0.tgz#c15dfacfc6e60652a6837209c2fd87f0240b099e" + integrity sha512-a7mrlPTM3tAFJyz43qb4pPVpUx8j8TzZBFsNFqcKcE/sEakNXRlQAuCT4RGZRf9dQiiUnBahzSIWawU4rENl+Q== dependencies: "@babel/core" "^7.7.7" "@babel/plugin-transform-modules-commonjs" "^7.7.5" @@ -1790,25 +1803,25 @@ dependencies: "@rollup/pluginutils" "^3.0.8" -"@rollup/plugin-node-resolve@^9.0.0": - version "9.0.0" - resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-9.0.0.tgz#39bd0034ce9126b39c1699695f440b4b7d2b62e6" - integrity sha512-gPz+utFHLRrd41WMP13Jq5mqqzHL3OXrfj3/MkSyB6UBIcuNt9j60GCbarzMzdf1VHFpOxfQh/ez7wyadLMqkg== +"@rollup/plugin-node-resolve@^11.2.1": + version "11.2.1" + resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz#82aa59397a29cd4e13248b106e6a4a1880362a60" + integrity sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg== dependencies: "@rollup/pluginutils" "^3.1.0" "@types/resolve" "1.17.1" builtin-modules "^3.1.0" deepmerge "^4.2.2" is-module "^1.0.0" - resolve "^1.17.0" + resolve "^1.19.0" -"@rollup/plugin-replace@^2.3.3": - version "2.3.3" - resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-2.3.3.tgz#cd6bae39444de119f5d905322b91ebd4078562e7" - integrity sha512-XPmVXZ7IlaoWaJLkSCDaa0Y6uVo5XQYHhiMFzOd5qSv5rE+t/UJToPIOE56flKIxBFQI27ONsxb7dqHnwSsjKQ== +"@rollup/plugin-replace@^2.4.1": + version "2.4.2" + resolved "https://registry.yarnpkg.com/@rollup/plugin-replace/-/plugin-replace-2.4.2.tgz#a2d539314fbc77c244858faa523012825068510a" + integrity sha512-IGcu+cydlUMZ5En85jxHH4qj2hta/11BHq95iHEyb2sbgiN0eCdzvUcHw5gt9pBL5lTi4JDYJ1acCoMGpTvEZg== dependencies: - "@rollup/pluginutils" "^3.0.8" - magic-string "^0.25.5" + "@rollup/pluginutils" "^3.1.0" + magic-string "^0.25.7" "@rollup/pluginutils@^3.0.8", "@rollup/pluginutils@^3.1.0": version "3.1.0" @@ -2173,6 +2186,11 @@ acorn@^8.8.0: resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.8.1.tgz#0a3f9cbecc4ec3bea6f0a80b66ae8dd2da250b73" integrity sha512-7zFpHzhnqYKrkYdUjF1HI1bzd0VygEGX8lFk4k5zVMqHEoES+P+7TKI+EvLO9WVMJ8eekdO0aDEK044xTXwPPA== +acorn@^8.8.2: + version "8.9.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.9.0.tgz#78a16e3b2bcc198c10822786fa6679e245db5b59" + integrity sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ== + agent-base@5: version "5.1.1" resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-5.1.1.tgz#e8fb3f242959db44d63be665db7a8e739537a32c" @@ -3686,6 +3704,17 @@ fast-glob@^3.1.1: micromatch "^4.0.2" picomatch "^2.2.1" +fast-glob@^3.2.4: + version "3.3.0" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.0.tgz#7c40cb491e1e2ed5664749e87bfb516dbe8727c0" + integrity sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + fast-glob@^3.2.9: version "3.2.12" resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80" @@ -3866,11 +3895,6 @@ fsevents@^2.3.2, fsevents@~2.3.2: resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.2.tgz#8a526f78b8fdf4623b709e0b975c52c24c02fd1a" integrity sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA== -fsevents@~2.1.2: - version "2.1.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.1.3.tgz#fb738703ae8d2f9fe900c33836ddebee8b97f23e" - integrity sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ== - function-bind@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" @@ -4085,18 +4109,6 @@ globby@^11.0.0: merge2 "^1.3.0" slash "^3.0.0" -globby@^11.0.1: - version "11.0.1" - resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.1.tgz#9a2bf107a068f3ffeabc49ad702c79ede8cfd357" - integrity sha512-iH9RmgwCmUJHi2z5o2l3eTtGBtXek1OYlHrbcxOYugyHLmAsZrPj43OtHThd62Buh/Vv6VyCBD2bdyWcGNQqoQ== - dependencies: - array-union "^2.1.0" - dir-glob "^3.0.1" - fast-glob "^3.1.1" - ignore "^5.1.4" - merge2 "^1.3.0" - slash "^3.0.0" - globby@^11.1.0: version "11.1.0" resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" @@ -5434,13 +5446,20 @@ lru-cache@^6.0.0: dependencies: yallist "^4.0.0" -magic-string@^0.25.5, magic-string@^0.25.7: +magic-string@^0.25.7: version "0.25.7" resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.25.7.tgz#3f497d6fd34c669c6798dcb821f2ef31f5445051" integrity sha512-4CrMT5DOHTDk4HYDlzmwu4FVCcIYI8gauveasrdCu2IKIFOJ3f0v/8MDGJCDL9oD2ppz/Av1b0Nj345H9M+XIA== dependencies: sourcemap-codec "^1.4.4" +magic-string@^0.30.0: + version "0.30.0" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.0.tgz#fd58a4748c5c4547338a424e90fa5dd17f4de529" + integrity sha512-LA+31JYDJLs82r2ScLrlz1GjSgu66ZV518eyWT+S8VhyQn/JL0u9MeBOvQMGYiPk1DBiSN9DDMOcXvigJZaViQ== + dependencies: + "@jridgewell/sourcemap-codec" "^1.4.13" + make-dir@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" @@ -6541,6 +6560,15 @@ resolve@^1.17.0: dependencies: path-parse "^1.0.6" +resolve@^1.19.0: + version "1.22.2" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.2.tgz#0ed0943d4e301867955766c9f3e1ae6d01c6845f" + integrity sha512-Sb+mjNHOULsBv818T40qSPeRiuWLyaGMa5ewydRLFimneixmVy2zdivRl+AF6jaYPC8ERxGDmFSiqui6SfPd+g== + dependencies: + is-core-module "^2.11.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + responselike@^1.0.2: version "1.0.2" resolved "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz#918720ef3b631c5642be068f15ade5a46f4ba1e7" @@ -6565,12 +6593,12 @@ rimraf@^3.0.2: dependencies: glob "^7.1.3" -rollup@^2.26.5: - version "2.30.0" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.30.0.tgz#316a1eb0389dbda4082ef2d191b31488995e4c41" - integrity sha512-j4K1hUZfgFM03DUpayd3c7kZW+2wDbI6rj7ssQxpCpL1vsGpaM0vSorxBuePFwQDFq9O2DI6AOQbm174Awsq4w== +rollup@^2.79.1: + version "2.79.1" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-2.79.1.tgz#bedee8faef7c9f93a2647ac0108748f497f081c7" + integrity sha512-uKxbd0IhMZOhjAiD5oAFp7BqvkA4Dv47qpOCtaNvng4HBwdbWtdOh8f5nZNuk2rp51PMGk3bzfWu5oayNEuYnw== optionalDependencies: - fsevents "~2.1.2" + fsevents "~2.3.2" run-parallel@^1.1.9: version "1.1.9" @@ -6621,7 +6649,7 @@ semver@^6.0.0, semver@^6.1.1, semver@^6.1.2, semver@^6.2.0, semver@^6.3.0: resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.0.tgz#ee0a64c8af5e8ceea67687b133761e1becbd1d3d" integrity sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw== -semver@^7.0.0, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.3: +semver@^7.0.0, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8, semver@^7.5.3: version "7.5.3" resolved "https://registry.yarnpkg.com/semver/-/semver-7.5.3.tgz#161ce8c2c6b4b3bdca6caadc9fa3317a4c4fe88e" integrity sha512-QBlUtyVk/5EeHbi7X0fw6liDZc7BBmEaSYn01fMU1OUYbf6GPsbTtd8WmnqbI20SeycoHSeiybkE/q1Q+qlThQ== @@ -6772,7 +6800,7 @@ source-map-support@0.5.13: buffer-from "^1.0.0" source-map "^0.6.0" -source-map-support@^0.5.16, source-map-support@~0.5.19: +source-map-support@^0.5.16: version "0.5.19" resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.19.tgz#a98b62f86dcaf4f67399648c085291ab9e8fed61" integrity sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw== @@ -6780,6 +6808,14 @@ source-map-support@^0.5.16, source-map-support@~0.5.19: buffer-from "^1.0.0" source-map "^0.6.0" +source-map-support@~0.5.20: + version "0.5.21" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" + integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + source-map-url@^0.4.0: version "0.4.0" resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.0.tgz#3e935d7ddd73631b97659956d55128e87b5084a3" @@ -6795,11 +6831,6 @@ source-map@^0.6.0, source-map@^0.6.1: resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== -source-map@~0.7.2: - version "0.7.3" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.3.tgz#5302f8169031735226544092e64981f751750383" - integrity sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ== - sourcemap-codec@^1.4.4: version "1.4.8" resolved "https://registry.yarnpkg.com/sourcemap-codec/-/sourcemap-codec-1.4.8.tgz#ea804bd94857402e6992d05a38ef1ae35a9ab4c4" @@ -7093,14 +7124,15 @@ term-size@^2.1.0: resolved "https://registry.yarnpkg.com/term-size/-/term-size-2.1.0.tgz#3aec444c07a7cf936e157c1dc224b590c3c7eef2" integrity sha512-I42EWhJ+2aeNQawGx1VtpO0DFI9YcfuvAMNIdKyf/6sRbHJ4P+ZQ/zIT87tE+ln1ymAGcCJds4dolfSAS0AcNg== -terser@^5.2.1: - version "5.3.5" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.3.5.tgz#9e080baa0568f96654621b20eb9effa440b1484e" - integrity sha512-Qw3CZAMmmfU824AoGKalx+riwocSI5Cs0PoGp9RdSLfmxkmJgyBxqLBP/isDNtFyhHnitikvRMZzyVgeq+U+Tg== +terser@^5.16.8: + version "5.18.2" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.18.2.tgz#ff3072a0faf21ffd38f99acc9a0ddf7b5f07b948" + integrity sha512-Ah19JS86ypbJzTzvUCX7KOsEIhDaRONungA4aYBjEP3JZRf4ocuDzTg4QWZnPn9DEMiMYGJPiSOy7aykoCc70w== dependencies: + "@jridgewell/source-map" "^0.3.3" + acorn "^8.8.2" commander "^2.20.0" - source-map "~0.7.2" - source-map-support "~0.5.19" + source-map-support "~0.5.20" test-exclude@^6.0.0: version "6.0.0" @@ -7267,10 +7299,10 @@ type-fest@^3.0.0: resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-3.2.0.tgz#2c8b49e775d9e314a73ea6fcee0b2e8549d5f886" integrity sha512-Il3wdLRzWvbAEtocgxGQA9YOoRVeVUGOMBtel5LdEpNeEAol6GJTLw8GbX6Z8EIMfvfhoOXs2bwOijtAZdK5og== -typescript@^4.8.4: - version "4.8.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6" - integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ== +typescript@^5.1.6: + version "5.1.6" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.1.6.tgz#02f8ac202b6dad2c0dd5e0913745b47a37998274" + integrity sha512-zaWCozRZ6DLEWAWFrVDz1H6FVXzUSfTy5FUMWsQlU8Ym5JP9eO4xkTIROFCQvhQf61z6O/G6ugw3SgAnvvm+HA== unbox-primitive@^1.0.1, unbox-primitive@^1.0.2: version "1.0.2" @@ -7613,11 +7645,6 @@ xtend@^4.0.0, xtend@^4.0.1: resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== -xxhash-wasm@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/xxhash-wasm/-/xxhash-wasm-0.4.0.tgz#9b045adebd69226f15214773dbf3c4ed6134ffd2" - integrity sha512-jCFDE9zSkItI//25A/Pb27r88s6zjkXsajy/dUMWr1XqiHhlrZIRxG3GxDnBcY5KKjRKi713iaDfAKjXrkboog== - y18n@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.0.tgz#95ef94f85ecc81d007c264e190a120f0a3c8566b" @@ -7703,3 +7730,8 @@ yocto-queue@^0.1.0: version "0.1.0" resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== + +zod@^3.21.4: + version "3.21.4" + resolved "https://registry.yarnpkg.com/zod/-/zod-3.21.4.tgz#10882231d992519f0a10b5dd58a38c9dabbb64db" + integrity sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==