-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
227 changed files
with
17,441 additions
and
14,724 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,36 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works with `bolt` to help you release components from a mono-repository. You can find the full documentation for it [here](https://www.npmjs.com/package/@changesets/cli) | ||
|
||
To help you get started though, here are some things you should know about this folder: | ||
|
||
## Changesets are automatically generated | ||
|
||
Changesets are generated by the `yarn changeset` or `npx changeset` command. As long as you are following a changeset release flow, you shouldn't have any problems. | ||
|
||
## Each changeset is its own folder | ||
|
||
We use hashes by default for these folder names to avoid collisions when generating them, but there's no harm that will come from renaming them. | ||
|
||
## Changesets are automatically removed | ||
|
||
When `changeset bump` or equivalent command is run, all the changeset folders are removed. This is so we only ever use a changeset once. This makes this a very bad place to store any other information. | ||
|
||
## Changesets come in two parts | ||
|
||
You should treat these parts quite differently: | ||
|
||
- `changes.md` is a file you should feel free to edit as much as you want. It will be prepended to your changelog when you next run your version command. | ||
- `changes.json` is a file that includes information about releases, what should be versioned by the version command. We strongly recommend against editing this directly, as you may make a new changeset that puts your bolt repository into an invalid state. | ||
|
||
## I want to edit the information in a `changes.json` - how do I do it safely? | ||
|
||
The best option is to make a new changeset using the changeset command, copy over the `changes.md`, then delete the old changeset. | ||
|
||
## Can I rename the folder for my changeset? | ||
|
||
Absolutely! We need unique hashes to make changesets play nicely with git, but changing your folder from our hash to your own name isn't going to cause any problems. | ||
|
||
## Can I manually delete changesets? | ||
|
||
You can, but you should be aware this will remove the intent to release communicated by the changeset, and should be done with caution. |
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,7 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/config@0.2.1/schema.json", | ||
"changelog": "./getChangelogEntry", | ||
"commit": false, | ||
"linked": [], | ||
"access": "public" | ||
} |
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,5 @@ | ||
--- | ||
"react-select": patch | ||
--- | ||
|
||
The Menu bottom is no longer scrolled into view when menuShouldScrollIntoView=false |
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,34 @@ | ||
require('dotenv').config(); | ||
const { getInfo } = require('@changesets/get-github-info'); | ||
|
||
const getReleaseLine = async (changeset, type) => { | ||
const [firstLine, ...futureLines] = changeset.summary | ||
.split('\n') | ||
.map(l => l.trimRight()); | ||
let { links } = await getInfo({ | ||
repo: 'JedWatson/react-select', | ||
commit: changeset.commit, | ||
}); | ||
return `- ${links.commit}${links.pull === null ? '' : ` ${links.pull}`}${ | ||
links.user === null ? '' : ` Thanks ${links.user}!` | ||
} - ${firstLine}\n${futureLines.map(l => ` ${l}`).join('\n')}`; | ||
}; | ||
|
||
const getDependencyReleaseLine = async (changesets, dependenciesUpdated) => { | ||
if (dependenciesUpdated.length === 0) return ''; | ||
|
||
const changesetLinks = changesets.map( | ||
changeset => `- Updated dependencies [${changeset.commit}]:` | ||
); | ||
|
||
const updatedDepenenciesList = dependenciesUpdated.map( | ||
dependency => ` - ${dependency.name}@${dependency.version}` | ||
); | ||
|
||
return [...changesetLinks, ...updatedDepenenciesList].join('\n'); | ||
}; | ||
|
||
module.exports = { | ||
getReleaseLine, | ||
getDependencyReleaseLine, | ||
}; |
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
|
||
{ | ||
"buildCommand": "build", | ||
"packages": ["packages/*"], | ||
"sandboxes": ["nfmxw"] | ||
} | ||
|
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,8 @@ | ||
coverage/* | ||
cypress/plugins/* | ||
cypress/support/* | ||
dist/* | ||
**/dist/* | ||
flow-typed/* | ||
lib/* | ||
node_modules/* | ||
**/node_modules/* |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[ignore] | ||
.*/node_modules/cypress/.* | ||
|
||
[untyped] | ||
.*/node_modules/@atlaskit/tooltip/dist/cjs/components/Marshal.js.flow | ||
.*/node_modules/@atlaskit/layer-manager/dist/cjs/components/FocusLock/index.js.flow | ||
.*/node_modules/@atlaskit/layer-manager/dist/cjs/components/gateway/components/Gateway.js.flow | ||
.*/node_modules/@atlaskit/layer-manager/dist/cjs/components/withRenderTarget.js.flow | ||
|
||
[include] | ||
|
||
[libs] | ||
flow-typed | ||
|
||
[lints] | ||
unclear-type=warn | ||
untyped-type-import=error | ||
|
||
[options] | ||
module.name_mapper='\!\!raw-loader\!.*' -> '<PROJECT_ROOT>/typings/raw-loader.js' | ||
module.name_mapper='\!\!extract-react-types-loader\!.*' -> '<PROJECT_ROOT>/typings/extract-react-types-loader.js' | ||
server.max_workers=1 | ||
sharedmemory.hash_table_pow=21 | ||
|
||
[strict] |
Oops, something went wrong.