-
Notifications
You must be signed in to change notification settings - Fork 608
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Use `package.json#exports` * actually add exports, lol * update Preconstruct again
- Loading branch information
Showing
29 changed files
with
467 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 4 additions & 12 deletions
16
packages/apply-release-plan/src/test-utils/simple-get-changelog-entry.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
16 changes: 4 additions & 12 deletions
16
packages/apply-release-plan/src/test-utils/simple-get-commit-entry.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.