Skip to content

Commit

Permalink
Fix couple of typos in scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
aefox committed Jan 27, 2022
1 parent 5daaf9b commit a82d6fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions scripts/releaseChangelog.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const exec = promisify(childProcess.exec);

/**
* @param {string} commitMessage
* @returns {string} The tags in lowercases, ordered ascending and commaseparated
* @returns {string} The tags in lower cases, ordered ascending and comma separated
*/
function parseTags(commitMessage) {
const tagMatch = commitMessage.match(/^(\[[\w-]+\])+/);
Expand Down Expand Up @@ -130,7 +130,7 @@ async function main(argv) {
const shortMessage = commitsItem.commit.message.split('\n')[0];
return `- ${dateSortMarker}${shortMessage} @${commitsItem.author.login}`;
});
const nowFormated = new Date().toLocaleDateString('en-US', {
const nowFormatted = new Date().toLocaleDateString('en-US', {
month: 'short',
day: 'numeric',
year: 'numeric',
Expand All @@ -139,7 +139,7 @@ async function main(argv) {
const changelog = `
## TODO RELEASE NAME
<!-- generated comparing ${lastRelease}..${release} -->
_${nowFormated}_
_${nowFormatted}_
A big thanks to the ${
authors.length
Expand All @@ -164,7 +164,7 @@ yargs
return command
.option('lastRelease', {
describe:
'The release to compare gainst e.g. `v5.0.0-alpha.23`. Default: The latest tag on the current branch.',
'The release to compare against e.g. `v5.0.0-alpha.23`. Default: The latest tag on the current branch.',
type: 'string',
})
.option('githubToken', {
Expand Down
2 changes: 1 addition & 1 deletion scripts/testBuiltTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ async function main() {
await Promise.all(
declarationFiles.map(async (declarationFilePath) => {
const declarationFile = await fse.readFile(declarationFilePath, { encoding: 'utf8' });
// find occurences of e.g. `import("../../mui-*/src/...")`
// find occurrences of e.g. `import("../../mui-*/src/...")`
const typeImportsRelativeToWorkspace = declarationFile.match(/import\(("|')(\.\.\/)+mui/g);

if (typeImportsRelativeToWorkspace !== null) {
Expand Down

0 comments on commit a82d6fa

Please sign in to comment.