From 890bb9efbe8275fd919ebf51899e3ade10cf0ebe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20S=C3=A1ros?= Date: Thu, 19 Dec 2024 14:17:59 +0100 Subject: [PATCH] chore: move commitizen config to commitlint; remove cz-lerna-changelog pkg; skip commit hook on rebase and amend --- .husky/commit-msg | 2 +- .husky/pre-push | 1 - .husky/prepare-commit-msg | 17 +- commitlint.config.js | 78 +- package-lock.json | 592 +++++---- package.json | 12 +- packages/__docs__/buildScripts/build-docs.mts | 1 - packages/cz-lerna-changelog/.gitignore | 3 - packages/cz-lerna-changelog/.npmignore | 5 - packages/cz-lerna-changelog/CHANGELOG.md | 1068 ----------------- packages/cz-lerna-changelog/README.md | 34 - packages/cz-lerna-changelog/babel.config.js | 37 - packages/cz-lerna-changelog/package.json | 47 - .../src/MaxLengthInputPrompt.ts | 80 -- packages/cz-lerna-changelog/src/index.ts | 116 -- .../src/make-default-questions.ts | 117 -- .../cz-lerna-changelog/tsconfig.build.json | 17 - packages/cz-lerna-changelog/tsconfig.json | 4 - scripts/clean.js | 1 - tsconfig.json | 1 - tsconfig.references.json | 3 - 21 files changed, 419 insertions(+), 1817 deletions(-) delete mode 100755 .husky/pre-push delete mode 100644 packages/cz-lerna-changelog/.gitignore delete mode 100644 packages/cz-lerna-changelog/.npmignore delete mode 100644 packages/cz-lerna-changelog/CHANGELOG.md delete mode 100644 packages/cz-lerna-changelog/README.md delete mode 100644 packages/cz-lerna-changelog/babel.config.js delete mode 100644 packages/cz-lerna-changelog/package.json delete mode 100644 packages/cz-lerna-changelog/src/MaxLengthInputPrompt.ts delete mode 100644 packages/cz-lerna-changelog/src/index.ts delete mode 100644 packages/cz-lerna-changelog/src/make-default-questions.ts delete mode 100644 packages/cz-lerna-changelog/tsconfig.build.json delete mode 100644 packages/cz-lerna-changelog/tsconfig.json diff --git a/.husky/commit-msg b/.husky/commit-msg index 37eadbfcbb..0a4b97de53 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1 +1 @@ -npm run lint:commit +npx --no -- commitlint --edit $1 diff --git a/.husky/pre-push b/.husky/pre-push deleted file mode 100755 index ca25e55c70..0000000000 --- a/.husky/pre-push +++ /dev/null @@ -1 +0,0 @@ -npm run husky:pre-push diff --git a/.husky/prepare-commit-msg b/.husky/prepare-commit-msg index 5d69d0a75c..52b23c40e7 100755 --- a/.husky/prepare-commit-msg +++ b/.husky/prepare-commit-msg @@ -1 +1,16 @@ -exec < /dev/tty && npx cz --hook || true +# Don't run this hook on --amend or rebase +# From https://github.com/commitizen/cz-cli/issues/672#issuecomment-1328123802 +# +# Explanation: +# Per the [prepare-commit-msg hook docs](https://git-scm.com/docs/githooks#_prepare_commit_msg), +# the second argument can have these values: +# - Empty: No message supplied +# - "message": Message was supplied via -m or -F +# - "template": Template was supplied via -t or via commit.template git config +# - "merge": Commit is a merge commit or .git/MERGE_MSG file exists +# - "squash": .git/SQUASH_MSG file exists +# - "commit": -c, -C, or --amend was supplied. In this case, the script gets a third argument representing the commit object. + +if [ -z "$2" ]; then + exec < /dev/tty && npx cz --hook +fi diff --git a/commitlint.config.js b/commitlint.config.js index ee3d19e834..fddf1e7a05 100644 --- a/commitlint.config.js +++ b/commitlint.config.js @@ -21,31 +21,71 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ + +const { execSync } = require('child_process') +const fs = require('fs') +const path = require('path') + +const ignoredPackages = ['__docs__', '__examples__'] + +function getChangedPackages() { + try { + const output = execSync('git diff --cached --name-only', { + encoding: 'utf-8' + }) + return Array.from( + new Set( + output + .split('\n') + .filter((line) => line.startsWith('packages/')) + .map((line) => line.split('/')[1]) + .filter((pkg) => !ignoredPackages.includes(pkg)) + ) + ) + } catch (error) { + console.error(error.message) + return [] + } +} + +function getAllPackages() { + try { + const packagesDir = path.resolve('packages') + return fs + .readdirSync(packagesDir) + .filter( + (pkg) => + fs.statSync(path.join(packagesDir, pkg)).isDirectory() && + !ignoredPackages.includes(pkg) + ) + } catch (error) { + console.error(error.message) + return [] + } +} + module.exports = { extends: ['@commitlint/config-conventional'], parserOpts: { headerPattern: /^(\w*)\((\w*)\)-(\w*)\s(.*)$/, headerCorrespondence: ['type', 'scope', 'subject'] }, - // see https://commitlint.js.org/#/reference-rules + // https://commitlint.js.org/reference/rules.html rules: { - 'type-enum': [ - 2, - 'always', - [ - 'WIP', - 'feat', - 'fix', - 'docs', - 'chore', - 'style', - 'refactor', - 'test', - 'perf', - 'revert' - ] - ], - 'type-case': [0], - 'header-max-length': [0, 'always', 150] // commit message first field (subject) length + 'header-max-length': [2, 'always', 150] + }, + + // https://cz-git.qbb.sh/config/ + prompt: { + enableMultipleScopes: true, + scopeEnumSeparator: ',', + scopes: getAllPackages(), + defaultScope: getChangedPackages(), + skipQuestions: ['footerPrefix', 'confirmCommit'], + // If more than 3 packages are selected display 'many', e.g. `refactor(many): some message` + formatMessageCB: ({ scope, defaultMessage }) => + scope.split(',').length > 3 + ? defaultMessage.replace(scope, 'many') + : defaultMessage } } diff --git a/package-lock.json b/package-lock.json index c6c03b02a8..d3dd0a4cc6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,6 +36,7 @@ "cross-spawn": "^7.0.6", "cypress": "^13.16.1", "cypress-real-events": "^1.13.0", + "cz-git": "^1.11.0", "esbuild": "^0.24.0", "eslint": "^9.16.0", "eslint-config-prettier": "^9.1.0", @@ -2393,11 +2394,10 @@ } }, "node_modules/@commitlint/load": { - "version": "19.5.0", - "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-19.5.0.tgz", - "integrity": "sha512-INOUhkL/qaKqwcTUvCE8iIUf5XHsEPCLY9looJ/ipzi7jtGhgmtH7OOFiNvwYgH7mA8osUWOUDV8t4E2HAi4xA==", + "version": "19.6.1", + "resolved": "https://registry.npmjs.org/@commitlint/load/-/load-19.6.1.tgz", + "integrity": "sha512-kE4mRKWWNju2QpsCWt428XBvUH55OET2N4QKQ0bF85qS/XbsRGG1MiTByDNlEVpEPceMkDr46LNH95DtRwcsfA==", "dev": true, - "license": "MIT", "dependencies": { "@commitlint/config-validator": "^19.5.0", "@commitlint/execute-rule": "^19.5.0", @@ -2405,7 +2405,7 @@ "@commitlint/types": "^19.5.0", "chalk": "^5.3.0", "cosmiconfig": "^9.0.0", - "cosmiconfig-typescript-loader": "^5.0.0", + "cosmiconfig-typescript-loader": "^6.1.0", "lodash.isplainobject": "^4.0.6", "lodash.merge": "^4.6.2", "lodash.uniq": "^4.5.0" @@ -4353,21 +4353,6 @@ "node": ">=18.0.0" } }, - "node_modules/@lerna/create/node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "license": "MIT", - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/@lerna/create/node_modules/chalk": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", @@ -11339,10 +11324,17 @@ } }, "node_modules/ansi-escapes": { - "version": "3.2.0", - "license": "MIT", + "version": "4.3.2", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", + "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", + "dependencies": { + "type-fest": "^0.21.3" + }, "engines": { - "node": ">=4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/ansi-gray": { @@ -13507,10 +13499,6 @@ "url": "https://github.com/chalk/strip-ansi?sponsor=1" } }, - "node_modules/cli-width": { - "version": "2.2.1", - "license": "ISC" - }, "node_modules/cliui": { "version": "7.0.4", "license": "ISC", @@ -13655,6 +13643,22 @@ "lz-string": "^1.4.4" } }, + "node_modules/codesandbox/node_modules/ansi-escapes": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", + "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/codesandbox/node_modules/ansi-regex": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "engines": { + "node": ">=6" + } + }, "node_modules/codesandbox/node_modules/ansi-styles": { "version": "3.2.1", "license": "MIT", @@ -13677,6 +13681,11 @@ "node": ">=4" } }, + "node_modules/codesandbox/node_modules/cli-width": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz", + "integrity": "sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==" + }, "node_modules/codesandbox/node_modules/color-convert": { "version": "1.9.3", "license": "MIT", @@ -13715,6 +13724,37 @@ "node": ">=4" } }, + "node_modules/codesandbox/node_modules/inquirer": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.5.2.tgz", + "integrity": "sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ==", + "dependencies": { + "ansi-escapes": "^3.2.0", + "chalk": "^2.4.2", + "cli-cursor": "^2.1.0", + "cli-width": "^2.0.0", + "external-editor": "^3.0.3", + "figures": "^2.0.0", + "lodash": "^4.17.12", + "mute-stream": "0.0.7", + "run-async": "^2.2.0", + "rxjs": "^6.4.0", + "string-width": "^2.1.0", + "strip-ansi": "^5.1.0", + "through": "^2.3.6" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/codesandbox/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "engines": { + "node": ">=4" + } + }, "node_modules/codesandbox/node_modules/is-wsl": { "version": "1.1.0", "license": "MIT", @@ -13729,6 +13769,11 @@ "graceful-fs": "^4.1.6" } }, + "node_modules/codesandbox/node_modules/mute-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", + "integrity": "sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ==" + }, "node_modules/codesandbox/node_modules/open": { "version": "6.4.0", "license": "MIT", @@ -13739,6 +13784,59 @@ "node": ">=8" } }, + "node_modules/codesandbox/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dependencies": { + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" + } + }, + "node_modules/codesandbox/node_modules/string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dependencies": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/codesandbox/node_modules/string-width/node_modules/ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/codesandbox/node_modules/string-width/node_modules/strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "dependencies": { + "ansi-regex": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/codesandbox/node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/codesandbox/node_modules/supports-color": { "version": "5.5.0", "license": "MIT", @@ -13749,6 +13847,11 @@ "node": ">=4" } }, + "node_modules/codesandbox/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, "node_modules/codesandbox/node_modules/universalify": { "version": "0.1.2", "license": "MIT", @@ -13884,20 +13987,6 @@ "node": ">= 12" } }, - "node_modules/commitizen/node_modules/ansi-escapes": { - "version": "4.3.2", - "dev": true, - "license": "MIT", - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/commitizen/node_modules/cli-cursor": { "version": "3.1.0", "dev": true, @@ -14847,21 +14936,20 @@ } }, "node_modules/cosmiconfig-typescript-loader": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-5.0.0.tgz", - "integrity": "sha512-+8cK7jRAReYkMwMiG+bxhcNKiHJDM6bR9FD/nGBXOWdMLuYawjF5cGrtLilJ+LGd3ZjCXnJjR5DkfWPoIVlqJA==", + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/cosmiconfig-typescript-loader/-/cosmiconfig-typescript-loader-6.1.0.tgz", + "integrity": "sha512-tJ1w35ZRUiM5FeTzT7DtYWAFFv37ZLqSRkGi2oeCK1gPhvaWjkAtfXvLmvE1pRfxxp9aQo6ba/Pvg1dKj05D4g==", "dev": true, - "license": "MIT", "dependencies": { - "jiti": "^1.19.1" + "jiti": "^2.4.1" }, "engines": { - "node": ">=v16" + "node": ">=v18" }, "peerDependencies": { "@types/node": "*", - "cosmiconfig": ">=8.2", - "typescript": ">=4" + "cosmiconfig": ">=9", + "typescript": ">=5" } }, "node_modules/create-error-class": { @@ -15135,21 +15223,6 @@ "integrity": "sha512-0kSuKjAS0TrGLJ0M/+8MaFkGsQhZpB6pxOmvS3K8FYI72K//YmdfoW9X2qPsAKh1mkwxGD5zib9s1FIFed6E8g==", "dev": true }, - "node_modules/cypress/node_modules/ansi-escapes": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", - "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", - "dev": true, - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/cypress/node_modules/buffer": { "version": "5.7.1", "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", @@ -15660,6 +15733,194 @@ "cz-customizable": "standalone.js" } }, + "node_modules/cz-customizable/node_modules/ansi-escapes": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-3.2.0.tgz", + "integrity": "sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==", + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/ansi-regex": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.1.tgz", + "integrity": "sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g==", + "engines": { + "node": ">=6" + } + }, + "node_modules/cz-customizable/node_modules/ansi-styles": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", + "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "dependencies": { + "color-convert": "^1.9.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/chalk": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", + "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "dependencies": { + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/cli-width": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/cli-width/-/cli-width-2.2.1.tgz", + "integrity": "sha512-GRMWDxpOB6Dgk2E5Uo+3eEBvtOOlimMmpbFiKuLFnQzYDavtLFY3K5ona41jgN/WdRZtG7utuVSVTL4HbZHGkw==" + }, + "node_modules/cz-customizable/node_modules/color-convert": { + "version": "1.9.3", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", + "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "dependencies": { + "color-name": "1.1.3" + } + }, + "node_modules/cz-customizable/node_modules/color-name": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", + "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + }, + "node_modules/cz-customizable/node_modules/escape-string-regexp": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "engines": { + "node": ">=0.8.0" + } + }, + "node_modules/cz-customizable/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/inquirer": { + "version": "6.5.2", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-6.5.2.tgz", + "integrity": "sha512-cntlB5ghuB0iuO65Ovoi8ogLHiWGs/5yNrtUcKjFhSSiVeAIVpD7koaSU9RM8mpXw5YDi9RdYXGQMaOURB7ycQ==", + "dependencies": { + "ansi-escapes": "^3.2.0", + "chalk": "^2.4.2", + "cli-cursor": "^2.1.0", + "cli-width": "^2.0.0", + "external-editor": "^3.0.3", + "figures": "^2.0.0", + "lodash": "^4.17.12", + "mute-stream": "0.0.7", + "run-async": "^2.2.0", + "rxjs": "^6.4.0", + "string-width": "^2.1.0", + "strip-ansi": "^5.1.0", + "through": "^2.3.6" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/cz-customizable/node_modules/is-fullwidth-code-point": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", + "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/mute-stream": { + "version": "0.0.7", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.7.tgz", + "integrity": "sha512-r65nCZhrbXXb6dXOACihYApHw2Q6pV0M3V0PSxd74N0+D8nzAdEAITq2oAjA1jVnKI+tGvEBUpqiMh0+rW6zDQ==" + }, + "node_modules/cz-customizable/node_modules/rxjs": { + "version": "6.6.7", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-6.6.7.tgz", + "integrity": "sha512-hTdwr+7yYNIT5n4AMYp85KA6yw2Va0FLa3Rguvbpa4W3I5xynaBZo41cM3XM+4Q6fRMj3sBYIR1VAmZMXYJvRQ==", + "dependencies": { + "tslib": "^1.9.0" + }, + "engines": { + "npm": ">=2.0.0" + } + }, + "node_modules/cz-customizable/node_modules/string-width": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", + "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", + "dependencies": { + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/string-width/node_modules/ansi-regex": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", + "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/string-width/node_modules/strip-ansi": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", + "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", + "dependencies": { + "ansi-regex": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/strip-ansi": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", + "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", + "dependencies": { + "ansi-regex": "^4.1.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/cz-customizable/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/cz-customizable/node_modules/tslib": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", + "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" + }, + "node_modules/cz-git": { + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/cz-git/-/cz-git-1.11.0.tgz", + "integrity": "sha512-FCNkpyVmNPX0P8kHtX8uoFcXsJ4bjivMXVS5vc/qCyM8jj+Tuqo6CXQjGQKwKl0Lk9VNz7o6JfPoU/mM/XhxqA==", + "dev": true, + "engines": { + "node": ">=v12.20.0" + } + }, "node_modules/d": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/d/-/d-1.0.2.tgz", @@ -18172,7 +18433,8 @@ }, "node_modules/figures": { "version": "2.0.0", - "license": "MIT", + "resolved": "https://registry.npmjs.org/figures/-/figures-2.0.0.tgz", + "integrity": "sha512-Oa2M9atig69ZkfwiApY8F2Yy+tzMbazyvqv21R0NsSC8floSOC09BbT1ITWAdoMGQvJ/aZnR1KMwdx9tvHnTNA==", "dependencies": { "escape-string-regexp": "^1.0.5" }, @@ -18182,7 +18444,8 @@ }, "node_modules/figures/node_modules/escape-string-regexp": { "version": "1.0.5", - "license": "MIT", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", + "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", "engines": { "node": ">=0.8.0" } @@ -21218,151 +21481,6 @@ "node": ">=10" } }, - "node_modules/inquirer": { - "version": "6.5.2", - "license": "MIT", - "dependencies": { - "ansi-escapes": "^3.2.0", - "chalk": "^2.4.2", - "cli-cursor": "^2.1.0", - "cli-width": "^2.0.0", - "external-editor": "^3.0.3", - "figures": "^2.0.0", - "lodash": "^4.17.12", - "mute-stream": "0.0.7", - "run-async": "^2.2.0", - "rxjs": "^6.4.0", - "string-width": "^2.1.0", - "strip-ansi": "^5.1.0", - "through": "^2.3.6" - }, - "engines": { - "node": ">=6.0.0" - } - }, - "node_modules/inquirer/node_modules/ansi-regex": { - "version": "4.1.1", - "license": "MIT", - "engines": { - "node": ">=6" - } - }, - "node_modules/inquirer/node_modules/ansi-styles": { - "version": "3.2.1", - "license": "MIT", - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/chalk": { - "version": "2.4.2", - "license": "MIT", - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/color-convert": { - "version": "1.9.3", - "license": "MIT", - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/inquirer/node_modules/color-name": { - "version": "1.1.3", - "license": "MIT" - }, - "node_modules/inquirer/node_modules/escape-string-regexp": { - "version": "1.0.5", - "license": "MIT", - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/inquirer/node_modules/has-flag": { - "version": "3.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/is-fullwidth-code-point": { - "version": "2.0.0", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/rxjs": { - "version": "6.6.7", - "license": "Apache-2.0", - "dependencies": { - "tslib": "^1.9.0" - }, - "engines": { - "npm": ">=2.0.0" - } - }, - "node_modules/inquirer/node_modules/string-width": { - "version": "2.1.1", - "license": "MIT", - "dependencies": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/string-width/node_modules/ansi-regex": { - "version": "3.0.1", - "license": "MIT", - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/string-width/node_modules/strip-ansi": { - "version": "4.0.0", - "license": "MIT", - "dependencies": { - "ansi-regex": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/strip-ansi": { - "version": "5.2.0", - "license": "MIT", - "dependencies": { - "ansi-regex": "^4.1.0" - }, - "engines": { - "node": ">=6" - } - }, - "node_modules/inquirer/node_modules/supports-color": { - "version": "5.5.0", - "license": "MIT", - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/inquirer/node_modules/tslib": { - "version": "1.14.1", - "license": "0BSD" - }, "node_modules/internal-slot": { "version": "1.0.7", "resolved": "https://registry.npmjs.org/internal-slot/-/internal-slot-1.0.7.tgz", @@ -22523,13 +22641,12 @@ } }, "node_modules/jiti": { - "version": "1.21.6", - "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.6.tgz", - "integrity": "sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w==", + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.4.2.tgz", + "integrity": "sha512-rg9zJN+G4n2nfJl5MW3BMygZX56zKPNVEYYqq7adpmMh4Jn2QNEwhvQlFy6jPVdcod7txZtKHWnyZiA3a0zP7A==", "devOptional": true, - "license": "MIT", "bin": { - "jiti": "bin/jiti.js" + "jiti": "lib/jiti-cli.mjs" } }, "node_modules/js-tokens": { @@ -23634,19 +23751,6 @@ "node": ">=18.0.0" } }, - "node_modules/lerna/node_modules/ansi-escapes": { - "version": "4.3.2", - "license": "MIT", - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/lerna/node_modules/chalk": { "version": "4.1.0", "license": "MIT", @@ -26490,8 +26594,12 @@ } }, "node_modules/mute-stream": { - "version": "0.0.7", - "license": "ISC" + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-1.0.0.tgz", + "integrity": "sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } }, "node_modules/nan": { "version": "2.20.0", @@ -30453,15 +30561,6 @@ "node": ">=4" } }, - "node_modules/read/node_modules/mute-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-1.0.0.tgz", - "integrity": "sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==", - "license": "ISC", - "engines": { - "node": "^14.17.0 || ^16.13.0 || >=18.0.0" - } - }, "node_modules/readable-stream": { "version": "3.6.2", "license": "MIT", @@ -37581,19 +37680,6 @@ "lerna": "^8" } }, - "packages/cz-lerna-changelog/node_modules/ansi-escapes": { - "version": "4.3.2", - "license": "MIT", - "dependencies": { - "type-fest": "^0.21.3" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "packages/cz-lerna-changelog/node_modules/cli-cursor": { "version": "3.1.0", "license": "MIT", diff --git a/package.json b/package.json index 822bcbd801..17b053c053 100644 --- a/package.json +++ b/package.json @@ -26,10 +26,7 @@ "lint": "lerna run lint --stream", "lint:changes": "npm run lint -- --since HEAD^", "lint:fix": "lerna run lint:fix --stream", - "lint:commit": "commitlint --from=HEAD^1", "lint:staged": "lint-staged", - "update:package:list": "lerna run generate:package:list --stream --scope @instructure/instui-config", - "commit:package:list": "git add packages/instui-config/package-lists/**/package-list.json", "bootstrap": "node scripts/bootstrap.js", "build": "lerna run build --stream", "build:watch": "lerna run build:watch --stream", @@ -45,12 +42,10 @@ "dev:examples": "lerna run start:watch --stream --scope docs-examples", "prestart:examples": "npm run bootstrap", "start:examples": "lerna run start --stream --scope docs-examples", - "husky:pre-commit": "npm run update:package:list && npm run commit:package:list && npm run lint:staged && npm run ts:check:references", - "husky:pre-push": "npm run lint:commit", + "husky:pre-commit": "lint-staged && node scripts/checkTSReferences.js", "build-storybook": "lerna run bundle --stream --scope docs-examples", "postinstall": "husky", - "ts:check": "lerna run ts:check --stream", - "ts:check:references": "node scripts/checkTSReferences.js" + "ts:check": "lerna run ts:check --stream" }, "license": "MIT", "resolutions": { @@ -83,6 +78,7 @@ "cross-spawn": "^7.0.6", "cypress": "^13.16.1", "cypress-real-events": "^1.13.0", + "cz-git": "^1.11.0", "esbuild": "^0.24.0", "eslint": "^9.16.0", "eslint-config-prettier": "^9.1.0", @@ -117,7 +113,7 @@ }, "config": { "commitizen": { - "path": "./node_modules/@instructure/cz-lerna-changelog" + "path": "node_modules/cz-git" } }, "lint-staged": { diff --git a/packages/__docs__/buildScripts/build-docs.mts b/packages/__docs__/buildScripts/build-docs.mts index b977832a98..66f0c0efd4 100644 --- a/packages/__docs__/buildScripts/build-docs.mts +++ b/packages/__docs__/buildScripts/build-docs.mts @@ -109,7 +109,6 @@ const pathsToIgnore = [ '**/InputModeListener.{js,ts}', // regression testing app: '**/regression-test/**', - '**/packages/cz-lerna-changelog/**' ] if (import.meta.url === pathToFileURL(process.argv[1]).href) { diff --git a/packages/cz-lerna-changelog/.gitignore b/packages/cz-lerna-changelog/.gitignore deleted file mode 100644 index 7673c44b0f..0000000000 --- a/packages/cz-lerna-changelog/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -types/ -es/ -lib/ diff --git a/packages/cz-lerna-changelog/.npmignore b/packages/cz-lerna-changelog/.npmignore deleted file mode 100644 index 9b51f84223..0000000000 --- a/packages/cz-lerna-changelog/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -**/.* -**/__tests__ -**/__testfixtures__ -*.config.js -*.conf.js diff --git a/packages/cz-lerna-changelog/CHANGELOG.md b/packages/cz-lerna-changelog/CHANGELOG.md deleted file mode 100644 index bbe0fa38a4..0000000000 --- a/packages/cz-lerna-changelog/CHANGELOG.md +++ /dev/null @@ -1,1068 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [10.10.0](https://github.com/instructure/instructure-ui/compare/v10.9.0...v10.10.0) (2024-12-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.9.0](https://github.com/instructure/instructure-ui/compare/v10.8.0...v10.9.0) (2024-12-12) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.8.0](https://github.com/instructure/instructure-ui/compare/v10.7.0...v10.8.0) (2024-12-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.7.0](https://github.com/instructure/instructure-ui/compare/v10.6.1...v10.7.0) (2024-12-03) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [10.6.1](https://github.com/instructure/instructure-ui/compare/v10.6.0...v10.6.1) (2024-11-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.6.0](https://github.com/instructure/instructure-ui/compare/v10.5.0...v10.6.0) (2024-11-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.5.0](https://github.com/instructure/instructure-ui/compare/v10.4.1...v10.5.0) (2024-11-07) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [10.4.1](https://github.com/instructure/instructure-ui/compare/v10.4.0...v10.4.1) (2024-10-28) - - -### Bug Fixes - -* update license ([1c039d9](https://github.com/instructure/instructure-ui/commit/1c039d9cbf5a3ea99b59803ddde5c6c0b2d76ba5)) - - - - - -# [10.4.0](https://github.com/instructure/instructure-ui/compare/v10.3.0...v10.4.0) (2024-10-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.3.0](https://github.com/instructure/instructure-ui/compare/v10.2.2...v10.3.0) (2024-10-03) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [10.2.2](https://github.com/instructure/instructure-ui/compare/v10.2.1...v10.2.2) (2024-09-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [10.2.1](https://github.com/instructure/instructure-ui/compare/v10.2.0...v10.2.1) (2024-08-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.2.0](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.2.0) (2024-08-23) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.1.0](https://github.com/instructure/instructure-ui/compare/v10.0.0...v10.1.0) (2024-08-23) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [10.0.0](https://github.com/instructure/instructure-ui/compare/v9.5.1...v10.0.0) (2024-07-31) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [9.5.1](https://github.com/instructure/instructure-ui/compare/v9.5.0...v9.5.1) (2024-07-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [9.5.0](https://github.com/instructure/instructure-ui/compare/v9.3.0...v9.5.0) (2024-07-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [9.4.0](https://github.com/instructure/instructure-ui/compare/v9.3.0...v9.4.0) (2024-07-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [9.3.0](https://github.com/instructure/instructure-ui/compare/v9.2.0...v9.3.0) (2024-07-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [9.2.0](https://github.com/instructure/instructure-ui/compare/v9.1.0...v9.2.0) (2024-07-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [9.1.0](https://github.com/instructure/instructure-ui/compare/v9.0.1...v9.1.0) (2024-06-14) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [9.0.1](https://github.com/instructure/instructure-ui/compare/v9.0.0...v9.0.1) (2024-05-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [9.0.0](https://github.com/instructure/instructure-ui/compare/v8.56.0...v9.0.0) (2024-05-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [8.56.0](https://github.com/instructure/instructure-ui/compare/v8.55.1...v8.56.0) (2024-05-06) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [8.55.1](https://github.com/instructure/instructure-ui/compare/v8.55.0...v8.55.1) (2024-04-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [8.55.0](https://github.com/instructure/instructure-ui/compare/v8.54.0...v8.55.0) (2024-04-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [8.54.0](https://github.com/instructure/instructure-ui/compare/v8.53.2...v8.54.0) (2024-03-21) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [8.53.2](https://github.com/instructure/instructure-ui/compare/v8.53.1...v8.53.2) (2024-02-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -## [8.53.1](https://github.com/instructure/instructure-ui/compare/v8.53.0...v8.53.1) (2024-02-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - - - -# [8.53.0](https://github.com/instructure/instructure-ui/compare/v8.52.0...v8.53.0) (2024-02-08) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.52.0](https://github.com/instructure/instructure-ui/compare/v8.51.0...v8.52.0) (2024-02-02) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.51.0](https://github.com/instructure/instructure-ui/compare/v8.50.0...v8.51.0) (2023-12-14) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.50.0](https://github.com/instructure/instructure-ui/compare/v8.49.0...v8.50.0) (2023-12-05) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.49.0](https://github.com/instructure/instructure-ui/compare/v8.48.3...v8.49.0) (2023-11-24) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.48.3](https://github.com/instructure/instructure-ui/compare/v8.48.2...v8.48.3) (2023-11-23) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.48.2](https://github.com/instructure/instructure-ui/compare/v8.48.1...v8.48.2) (2023-11-21) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.48.1](https://github.com/instructure/instructure-ui/compare/v8.48.0...v8.48.1) (2023-11-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.48.0](https://github.com/instructure/instructure-ui/compare/v8.47.1...v8.48.0) (2023-11-10) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.47.1](https://github.com/instructure/instructure-ui/compare/v8.47.0...v8.47.1) (2023-11-06) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.47.0](https://github.com/instructure/instructure-ui/compare/v8.46.1...v8.47.0) (2023-10-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.46.1](https://github.com/instructure/instructure-ui/compare/v8.46.0...v8.46.1) (2023-10-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.46.0](https://github.com/instructure/instructure-ui/compare/v8.45.0...v8.46.0) (2023-10-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.45.0](https://github.com/instructure/instructure-ui/compare/v8.44.0...v8.45.0) (2023-10-03) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.44.0](https://github.com/instructure/instructure-ui/compare/v8.43.1...v8.44.0) (2023-09-21) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.43.1](https://github.com/instructure/instructure-ui/compare/v8.43.0...v8.43.1) (2023-09-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.43.0](https://github.com/instructure/instructure-ui/compare/v8.41.1...v8.43.0) (2023-09-07) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.42.0](https://github.com/instructure/instructure-ui/compare/v8.41.1...v8.42.0) (2023-09-07) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.41.1](https://github.com/instructure/instructure-ui/compare/v8.41.0...v8.41.1) (2023-08-24) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.41.0](https://github.com/instructure/instructure-ui/compare/v8.40.1...v8.41.0) (2023-08-21) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.40.1](https://github.com/instructure/instructure-ui/compare/v8.40.0...v8.40.1) (2023-08-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.40.0](https://github.com/instructure/instructure-ui/compare/v8.39.0...v8.40.0) (2023-08-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.39.0](https://github.com/instructure/instructure-ui/compare/v8.38.1...v8.39.0) (2023-07-21) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.38.1](https://github.com/instructure/instructure-ui/compare/v8.38.0...v8.38.1) (2023-06-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.38.0](https://github.com/instructure/instructure-ui/compare/v8.37.0...v8.38.0) (2023-05-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.37.0](https://github.com/instructure/instructure-ui/compare/v8.36.0...v8.37.0) (2023-04-25) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.36.0](https://github.com/instructure/instructure-ui/compare/v8.35.1...v8.36.0) (2023-03-23) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.35.1](https://github.com/instructure/instructure-ui/compare/v8.35.0...v8.35.1) (2023-03-10) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.35.0](https://github.com/instructure/instructure-ui/compare/v8.34.0...v8.35.0) (2023-02-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.34.0](https://github.com/instructure/instructure-ui/compare/v8.33.2...v8.34.0) (2023-02-10) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.33.2](https://github.com/instructure/instructure-ui/compare/v8.33.1...v8.33.2) (2023-01-25) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.33.1](https://github.com/instructure/instructure-ui/compare/v8.33.0...v8.33.1) (2023-01-06) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.33.0](https://github.com/instructure/instructure-ui/compare/v8.32.1...v8.33.0) (2023-01-04) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.32.1](https://github.com/instructure/instructure-ui/compare/v8.30.0...v8.32.1) (2022-12-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.32.0](https://github.com/instructure/instructure-ui/compare/v8.31.0...v8.32.0) (2022-11-23) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.31.0](https://github.com/instructure/instructure-ui/compare/v8.30.0...v8.31.0) (2022-11-21) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.30.0](https://github.com/instructure/instructure-ui/compare/v8.29.0...v8.30.0) (2022-10-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.29.0](https://github.com/instructure/instructure-ui/compare/v8.28.0...v8.29.0) (2022-09-29) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.28.2](https://github.com/instructure/instructure-ui/compare/v8.28.0...v8.28.2) (2022-09-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.28.1](https://github.com/instructure/instructure-ui/compare/v8.28.0...v8.28.1) (2022-09-12) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.28.0](https://github.com/instructure/instructure-ui/compare/v8.27.0...v8.28.0) (2022-09-02) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.27.0](https://github.com/instructure/instructure-ui/compare/v8.26.3...v8.27.0) (2022-07-25) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.26.3](https://github.com/instructure/instructure-ui/compare/v8.26.2...v8.26.3) (2022-07-14) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.26.2](https://github.com/instructure/instructure-ui/compare/v8.26.1...v8.26.2) (2022-07-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.26.1](https://github.com/instructure/instructure-ui/compare/v8.26.0...v8.26.1) (2022-07-06) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.26.0](https://github.com/instructure/instructure-ui/compare/v8.25.0...v8.26.0) (2022-06-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.25.0](https://github.com/instructure/instructure-ui/compare/v8.24.5...v8.25.0) (2022-06-03) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.24.5](https://github.com/instructure/instructure-ui/compare/v8.24.3...v8.24.5) (2022-05-31) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.24.4](https://github.com/instructure/instructure-ui/compare/v8.24.3...v8.24.4) (2022-05-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.24.3](https://github.com/instructure/instructure-ui/compare/v8.24.2...v8.24.3) (2022-05-25) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.24.2](https://github.com/instructure/instructure-ui/compare/v8.24.1...v8.24.2) (2022-05-02) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.24.1](https://github.com/instructure/instructure-ui/compare/v8.24.0...v8.24.1) (2022-04-29) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.24.0](https://github.com/instructure/instructure-ui/compare/v8.23.0...v8.24.0) (2022-04-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.23.0](https://github.com/instructure/instructure-ui/compare/v8.22.0...v8.23.0) (2022-04-07) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.22.0](https://github.com/instructure/instructure-ui/compare/v8.21.0...v8.22.0) (2022-03-31) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.21.0](https://github.com/instructure/instructure-ui/compare/v8.20.0...v8.21.0) (2022-03-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.20.0](https://github.com/instructure/instructure-ui/compare/v8.19.0...v8.20.0) (2022-03-22) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.19.0](https://github.com/instructure/instructure-ui/compare/v8.18.0...v8.19.0) (2022-03-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.18.0](https://github.com/instructure/instructure-ui/compare/v8.17.0...v8.18.0) (2022-02-23) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.17.0](https://github.com/instructure/instructure-ui/compare/v8.16.0...v8.17.0) (2022-02-07) - -### Bug Fixes - -- remove type:"commonjs" from package.json files ([0b243be](https://github.com/instructure/instructure-ui/commit/0b243bee389ee14493e6b3dbb30a8b660c295d3d)) - -# [8.16.0](https://github.com/instructure/instructure-ui/compare/v8.15.0...v8.16.0) (2022-02-03) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.15.0](https://github.com/instructure/instructure-ui/compare/v8.14.0...v8.15.0) (2022-01-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.14.0](https://github.com/instructure/instructure-ui/compare/v8.13.0...v8.14.0) (2021-12-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.13.0](https://github.com/instructure/instructure-ui/compare/v8.12.0...v8.13.0) (2021-12-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.12.0](https://github.com/instructure/instructure-ui/compare/v8.11.1...v8.12.0) (2021-11-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.11.1](https://github.com/instructure/instructure-ui/compare/v8.11.0...v8.11.1) (2021-10-19) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.11.0](https://github.com/instructure/instructure-ui/compare/v8.10.2...v8.11.0) (2021-10-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.10.2](https://github.com/instructure/instructure-ui/compare/v8.10.1...v8.10.2) (2021-10-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.10.1](https://github.com/instructure/instructure-ui/compare/v8.10.0...v8.10.1) (2021-10-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.10.0](https://github.com/instructure/instructure-ui/compare/v8.9.1...v8.10.0) (2021-09-28) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.9.1](https://github.com/instructure/instructure-ui/compare/v8.9.0...v8.9.1) (2021-09-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.9.0](https://github.com/instructure/instructure-ui/compare/v8.8.0...v8.9.0) (2021-09-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.8.0](https://github.com/instructure/instructure-ui/compare/v8.7.0...v8.8.0) (2021-08-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.7.0](https://github.com/instructure/instructure-ui/compare/v8.6.0...v8.7.0) (2021-07-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.6.0](https://github.com/instructure/instructure-ui/compare/v8.5.0...v8.6.0) (2021-06-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.5.0](https://github.com/instructure/instructure-ui/compare/v8.4.0...v8.5.0) (2021-06-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.4.0](https://github.com/instructure/instructure-ui/compare/v8.3.0...v8.4.0) (2021-05-11) - -### Bug Fixes - -- fix all inter-package dependencies using fix version ([75cd898](https://github.com/instructure/instructure-ui/commit/75cd8983b7e206e4e14dc67c490c103cb4a3d915)) - -# [8.3.0](https://github.com/instructure/instructure-ui/compare/v8.2.1...v8.3.0) (2021-05-04) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [8.2.1](https://github.com/instructure/instructure-ui/compare/v8.2.0...v8.2.1) (2021-04-22) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.2.0](https://github.com/instructure/instructure-ui/compare/v8.1.0...v8.2.0) (2021-04-22) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.1.0](https://github.com/instructure/instructure-ui/compare/v8.0.0...v8.1.0) (2021-04-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [8.0.0](https://github.com/instructure/instructure-ui/compare/v7.5.0...v8.0.0) (2021-03-29) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [7.5.0](https://github.com/instructure/instructure-ui/compare/v7.4.4...v7.5.0) (2021-03-22) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.4.4](https://github.com/instructure/instructure-ui/compare/v7.4.3...v7.4.4) (2021-03-12) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.4.3](https://github.com/instructure/instructure-ui/compare/v7.4.1...v7.4.3) (2021-03-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.4.2](https://github.com/instructure/instructure-ui/compare/v7.4.1...v7.4.2) (2021-03-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.4.1](https://github.com/instructure/instructure-ui/compare/v7.4.0...v7.4.1) (2021-03-04) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [7.4.0](https://github.com/instructure/instructure-ui/compare/v7.3.5...v7.4.0) (2021-02-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.3.5](https://github.com/instructure/instructure-ui/compare/v7.3.2...v7.3.5) (2021-01-21) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.3.4](https://github.com/instructure/instructure-ui/compare/v7.3.2...v7.3.4) (2021-01-14) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.3.3](https://github.com/instructure/instructure-ui/compare/v7.3.2...v7.3.3) (2021-01-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.3.2](https://github.com/instructure/instructure-ui/compare/v7.3.1...v7.3.2) (2020-12-10) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.3.1](https://github.com/instructure/instructure-ui/compare/v7.3.0...v7.3.1) (2020-11-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [7.3.0](https://github.com/instructure/instructure-ui/compare/v7.2.4...v7.3.0) (2020-10-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.2.4](https://github.com/instructure/instructure-ui/compare/v7.2.0...v7.2.4) (2020-10-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.2.3](https://github.com/instructure/instructure-ui/compare/v7.2.0...v7.2.3) (2020-10-08) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.2.2](https://github.com/instructure/instructure-ui/compare/v7.2.0...v7.2.2) (2020-10-08) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.2.1](https://github.com/instructure/instructure-ui/compare/v7.2.0...v7.2.1) (2020-10-07) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [7.2.0](https://github.com/instructure/instructure-ui/compare/v7.1.4...v7.2.0) (2020-09-23) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.1.4](https://github.com/instructure/instructure-ui/compare/v7.1.3...v7.1.4) (2020-09-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.1.3](https://github.com/instructure/instructure-ui/compare/v7.1.2...v7.1.3) (2020-08-10) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.1.2](https://github.com/instructure/instructure-ui/compare/v7.1.1...v7.1.2) (2020-07-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [7.1.1](https://github.com/instructure/instructure-ui/compare/v7.1.0...v7.1.1) (2020-07-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [7.1.0](https://github.com/instructure/instructure-ui/compare/v7.0.0...v7.1.0) (2020-06-25) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [7.0.0](https://github.com/instructure/instructure-ui/compare/v6.26.0...v7.0.0) (2020-05-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.26.0](https://github.com/instructure/instructure-ui/compare/v6.25.0...v6.26.0) (2020-04-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.25.0](https://github.com/instructure/instructure-ui/compare/v6.24.0...v6.25.0) (2020-04-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.24.0](https://github.com/instructure/instructure-ui/compare/v6.23.0...v6.24.0) (2020-04-14) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.23.0](https://github.com/instructure/instructure-ui/compare/v6.22.0...v6.23.0) (2020-04-02) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.22.0](https://github.com/instructure/instructure-ui/compare/v6.21.0...v6.22.0) (2020-03-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.21.0](https://github.com/instructure/instructure-ui/compare/v6.20.0...v6.21.0) (2020-02-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.20.0](https://github.com/instructure/instructure-ui/compare/v6.19.0...v6.20.0) (2020-02-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.19.0](https://github.com/instructure/instructure-ui/compare/v6.18.0...v6.19.0) (2020-02-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.18.0](https://github.com/instructure/instructure-ui/compare/v6.17.0...v6.18.0) (2020-02-04) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.17.0](https://github.com/instructure/instructure-ui/compare/v6.16.0...v6.17.0) (2020-01-22) - -### Bug Fixes - -- Update Package READMEs and align deprecation statements ([8f892e4](https://github.com/instructure/instructure-ui/commit/8f892e4)) - -# [6.16.0](https://github.com/instructure/instructure-ui/compare/v6.15.0...v6.16.0) (2019-12-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.15.0](https://github.com/instructure/instructure-ui/compare/v6.14.0...v6.15.0) (2019-11-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.14.0](https://github.com/instructure/instructure-ui/compare/v6.13.0...v6.14.0) (2019-10-14) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.13.0](https://github.com/instructure/instructure-ui/compare/v6.12.0...v6.13.0) (2019-09-24) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.12.0](https://github.com/instructure/instructure-ui/compare/v6.11.0...v6.12.0) (2019-09-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.11.0](https://github.com/instructure/instructure-ui/compare/v6.10.0...v6.11.0) (2019-09-16) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.10.0](https://github.com/instructure/instructure-ui/compare/v6.9.0...v6.10.0) (2019-08-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.9.0](https://github.com/instructure/instructure-ui/compare/v6.8.1...v6.9.0) (2019-08-07) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [6.8.1](https://github.com/instructure/instructure-ui/compare/v6.8.0...v6.8.1) (2019-08-02) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.8.0](https://github.com/instructure/instructure-ui/compare/v6.7.0...v6.8.0) (2019-07-31) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.7.0](https://github.com/instructure/instructure-ui/compare/v6.6.0...v6.7.0) (2019-07-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.6.0](https://github.com/instructure/instructure-ui/compare/v6.5.0...v6.6.0) (2019-07-03) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.5.0](https://github.com/instructure/instructure-ui/compare/v6.4.0...v6.5.0) (2019-07-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.4.0](https://github.com/instructure/instructure-ui/compare/v6.3.0...v6.4.0) (2019-06-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.3.0](https://github.com/instructure/instructure-ui/compare/v6.2.0...v6.3.0) (2019-05-28) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.2.0](https://github.com/instructure/instructure-ui/compare/v6.1.0...v6.2.0) (2019-05-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.1.0](https://github.com/instructure/instructure-ui/compare/v6.0.0...v6.1.0) (2019-05-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [6.0.0](https://github.com/instructure/instructure-ui/compare/v5.52.3...v6.0.0) (2019-05-03) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [5.52.3](https://github.com/instructure/instructure-ui/compare/v5.52.2...v5.52.3) (2019-04-25) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [5.52.2](https://github.com/instructure/instructure-ui/compare/v5.52.1...v5.52.2) (2019-04-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [5.52.1](https://github.com/instructure/instructure-ui/compare/v5.52.0...v5.52.1) (2019-04-08) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.52.0](https://github.com/instructure/instructure-ui/compare/v5.51.1...v5.52.0) (2019-04-03) - -### Features - -- **console:** remove console statements in prod env ([603c738](https://github.com/instructure/instructure-ui/commit/603c738)) - -## [5.51.1](https://github.com/instructure/instructure-ui/compare/v5.51.0...v5.51.1) (2019-03-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.51.0](https://github.com/instructure/instructure-ui/compare/v5.50.0...v5.51.0) (2019-03-29) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.50.0](https://github.com/instructure/instructure-ui/compare/v5.49.0...v5.50.0) (2019-03-28) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.49.0](https://github.com/instructure/instructure-ui/compare/v5.48.0...v5.49.0) (2019-03-22) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.48.0](https://github.com/instructure/instructure-ui/compare/v5.47.0...v5.48.0) (2019-03-18) - -### Features - -- **ui-component-examples,ui-test-utils:** add parameters to example config ([19e4cfd](https://github.com/instructure/instructure-ui/commit/19e4cfd)) - -# [5.47.0](https://github.com/instructure/instructure-ui/compare/v5.46.1...v5.47.0) (2019-03-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [5.46.1](https://github.com/instructure/instructure-ui/compare/v5.46.0...v5.46.1) (2019-03-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.46.0](https://github.com/instructure/instructure-ui/compare/v5.45.1...v5.46.0) (2019-03-12) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -## [5.45.1](https://github.com/instructure/instructure-ui/compare/v5.45.0...v5.45.1) (2019-03-12) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.45.0](https://github.com/instructure/instructure-ui/compare/v5.44.0...v5.45.0) (2019-03-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.44.0](https://github.com/instructure/instructure-ui/compare/v5.43.0...v5.44.0) (2019-03-01) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - -# [5.43.0](https://github.com/instructure/instructure-ui/compare/v5.42.0...v5.43.0) (2019-02-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.42.0](https://github.com/instructure/instructure-ui/compare/v5.41.1...v5.42.0) (2019-02-15) - -### Performance Improvements - -- **babel-plugin-themeable-styles:** speed up babel transpile ([2df2a22](https://github.com/instructure/instructure-ui/commit/2df2a22)) - - - -## [5.41.1](https://github.com/instructure/instructure-ui/compare/v5.41.0...v5.41.1) (2019-01-30) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.41.0](https://github.com/instructure/instructure-ui/compare/v5.40.0...v5.41.0) (2019-01-29) - -### Bug Fixes - -- **cz-lerna-changelog:** add missing dependency ([4352282](https://github.com/instructure/instructure-ui/commit/4352282)) - - - -# [5.40.0](https://github.com/instructure/instructure-ui/compare/v5.39.0...v5.40.0) (2019-01-15) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.39.0](https://github.com/instructure/instructure-ui/compare/v5.38.0...v5.39.0) (2019-01-11) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.38.0](https://github.com/instructure/instructure-ui/compare/v5.37.0...v5.38.0) (2019-01-04) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.37.0](https://github.com/instructure/instructure-ui/compare/v5.36.0...v5.37.0) (2018-12-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.36.0](https://github.com/instructure/instructure-ui/compare/v5.35.0...v5.36.0) (2018-12-12) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.35.0](https://github.com/instructure/instructure-ui/compare/v5.34.0...v5.35.0) (2018-12-06) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.34.0](https://github.com/instructure/instructure-ui/compare/v5.33.0...v5.34.0) (2018-11-20) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.33.0](https://github.com/instructure/instructure-ui/compare/v5.32.0...v5.33.0) (2018-11-14) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.32.0](https://github.com/instructure/instructure-ui/compare/v5.31.0...v5.32.0) (2018-10-31) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.31.0](https://github.com/instructure/instructure-ui/compare/v5.30.0...v5.31.0) (2018-10-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.30.0](https://github.com/instructure/instructure-ui/compare/v5.29.0...v5.30.0) (2018-09-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.29.0](https://github.com/instructure/instructure-ui/compare/v5.28.1...v5.29.0) (2018-09-26) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -## [5.28.1](https://github.com/instructure/instructure-ui/compare/v5.28.0...v5.28.1) (2018-09-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.28.0](https://github.com/instructure/instructure-ui/compare/v5.27.0...v5.28.0) (2018-09-13) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.27.0](https://github.com/instructure/instructure-ui/compare/v5.26.0...v5.27.0) (2018-09-10) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.26.0](https://github.com/instructure/instructure-ui/compare/v5.25.0...v5.26.0) (2018-09-06) - -### Features - -- **ui-axe-check:** Add axe-core wrapper utility ([3264318](https://github.com/instructure/instructure-ui/commit/3264318)) - - - -# [5.25.0](https://github.com/instructure/instructure-ui/compare/v5.24.0...v5.25.0) (2018-08-24) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.24.0](https://github.com/instructure/instructure-ui/compare/v5.23.0...v5.24.0) (2018-08-08) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.23.0](https://github.com/instructure/instructure-ui/compare/v5.22.0...v5.23.0) (2018-08-03) - -### Features - -- **ui-presets:** add an install-react script ([d4e87fe](https://github.com/instructure/instructure-ui/commit/d4e87fe)) - - - -# [5.22.0](https://github.com/instructure/instructure-ui/compare/v5.21.0...v5.22.0) (2018-07-27) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.21.0](https://github.com/instructure/instructure-ui/compare/v5.20.1...v5.21.0) (2018-07-25) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -## [5.20.1](https://github.com/instructure/instructure-ui/compare/v5.20.0...v5.20.1) (2018-07-18) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.20.0](https://github.com/instructure/instructure-ui/compare/v5.19.0...v5.20.0) (2018-07-17) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.19.0](https://github.com/instructure/instructure-ui/compare/v5.18.0...v5.19.0) (2018-07-12) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.18.0](https://github.com/instructure/instructure-ui/compare/v5.17.0...v5.18.0) (2018-07-09) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.17.0](https://github.com/instructure/instructure-ui/compare/v5.16.0...v5.17.0) (2018-07-06) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.16.0](https://github.com/instructure/instructure-ui/compare/v5.15.0...v5.16.0) (2018-07-06) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.15.0](https://github.com/instructure/instructure-ui/compare/v5.14.0...v5.15.0) (2018-06-28) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.14.0](https://github.com/instructure/instructure-ui/compare/v5.13.1...v5.14.0) (2018-06-28) - -### Bug Fixes - -- **cz-lerna-changelog:** ensure changeID is the last element of commit msg ([fe64e52](https://github.com/instructure/instructure-ui/commit/fe64e52)) - - - -## [5.13.1](https://github.com/instructure/instructure-ui/compare/v5.13.0...v5.13.1) (2018-06-22) - -**Note:** Version bump only for package @instructure/cz-lerna-changelog - - - -# [5.13.0](https://github.com/instructure/instructure-ui/compare/v5.12.0...v5.13.0) (2018-06-16) - -### Bug Fixes - -- **cz-lerna-changelog:** pass in config for footer prefix ([9822f1f](https://github.com/instructure/instructure-ui/commit/9822f1f)) -- **ui-presets:** release script changes for Jenkins ([511ddb3](https://github.com/instructure/instructure-ui/commit/511ddb3)) - -### Features - -- **cz-lerna-changelog,ui-presets:** add lerna changelog package ([f7592eb](https://github.com/instructure/instructure-ui/commit/f7592eb)) - -See the instructure-ui mono-repo [change log](#CHANGELOG) for past changes. diff --git a/packages/cz-lerna-changelog/README.md b/packages/cz-lerna-changelog/README.md deleted file mode 100644 index 05e1844908..0000000000 --- a/packages/cz-lerna-changelog/README.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -category: packages ---- - -## cz-lerna-changelog - -[![npm][npm]][npm-url] -[![MIT License][license-badge]][license] -[![Code of Conduct][coc-badge]][coc] - -Prompts for conventional changelog standard in a lerna environment. - -### Installation - -```sh -npm install @instructure/cz-lerna-changelog -``` - -Add the following to your package.json file: - -```json -"config": { - "commitizen": { - "path": "./node_modules/@instructure/cz-lerna-changelog" - } -} -``` - -[npm]: https://img.shields.io/npm/v/@instructure/cz-lerna-changelog.svg -[npm-url]: https://npmjs.com/package/@instructure/cz-lerna-changelog -[license-badge]: https://img.shields.io/npm/l/instructure-ui.svg?style=flat-square -[license]: https://github.com/instructure/instructure-ui/blob/master/LICENSE.md -[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square -[coc]: https://github.com/instructure/instructure-ui/blob/master/CODE_OF_CONDUCT.md diff --git a/packages/cz-lerna-changelog/babel.config.js b/packages/cz-lerna-changelog/babel.config.js deleted file mode 100644 index 8698772a84..0000000000 --- a/packages/cz-lerna-changelog/babel.config.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 - present Instructure, Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -module.exports = { - presets: [ - [ - require('@instructure/ui-babel-preset'), - { - coverage: Boolean(process.env.COVERAGE), - esModules: Boolean(process.env.ES_MODULES), - removeConsole: false, - transformImports: Boolean(process.env.TRANSFORM_IMPORTS) - } - ] - ] -} diff --git a/packages/cz-lerna-changelog/package.json b/packages/cz-lerna-changelog/package.json deleted file mode 100644 index ff516af0be..0000000000 --- a/packages/cz-lerna-changelog/package.json +++ /dev/null @@ -1,47 +0,0 @@ -{ - "name": "@instructure/cz-lerna-changelog", - "version": "10.10.0", - "description": "Prompts for conventional changelog standard in a lerna environment.", - "author": "Instructure, Inc. Engineering and Product Design", - "module": "./es/index.js", - "main": "./lib/index.js", - "types": "./types/index.d.ts", - "repository": { - "type": "git", - "url": "https://github.com/instructure/instructure-ui.git" - }, - "homepage": "https://instructure.github.io/instructure-ui/", - "bugs": "https://github.com/instructure/instructure-ui/issues", - "scripts": { - "lint": "ui-scripts lint", - "lint:fix": "ui-scripts lint --fix", - "clean": "ui-scripts clean", - "build": "ui-scripts build --modules es,cjs", - "build:watch": "ui-scripts build --watch", - "build:types": "tsc -p tsconfig.build.json" - }, - "license": "MIT", - "dependencies": { - "@instructure/pkg-utils": "10.10.0", - "@semantic-release/commit-analyzer": "^9.0.2", - "chalk": "^4.1.2", - "cz-customizable": "^7.3.0", - "inquirer": "^8.2.6" - }, - "devDependencies": { - "@instructure/ui-babel-preset": "10.10.0", - "@types/inquirer": "^8.2.10" - }, - "peerDependencies": { - "lerna": "^8" - }, - "//dependency-comments": { - "cz-cli": "This module cannot be ESM because cz-cli can only import CommonJS, see https://github.com/commitizen/cz-cli/issues/916", - "@semantic-release/commit-analyzer": "commit-analyzer 10 is ESM.", - "chalk": "Chalk 5 is ESM. To use it this repo needs to be converted to ESM", - "inquirer": "inquirer 9 is ESM. To use it this repo needs to be converted to ESM" - }, - "publishConfig": { - "access": "public" - } -} diff --git a/packages/cz-lerna-changelog/src/MaxLengthInputPrompt.ts b/packages/cz-lerna-changelog/src/MaxLengthInputPrompt.ts deleted file mode 100644 index 7f95984018..0000000000 --- a/packages/cz-lerna-changelog/src/MaxLengthInputPrompt.ts +++ /dev/null @@ -1,80 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 - present Instructure, Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -import chalk from 'chalk' -import InputPrompt from 'inquirer/lib/prompts/input' -import type { Interface as ReadlineInterface } from 'readline' -import { Answers, InputQuestionOptions } from 'inquirer' - -export interface MaxLengthQuestion extends InputQuestionOptions { - type: 'maxlength-input' - maxLength: number - transformer: (input: string, answers: Answers) => string - filter: (input: string, answers: Answers) => string - validate: (input: string, answers: Answers) => boolean | string -} -export class MaxLengthInputPrompt extends InputPrompt { - static VALIDATION_ERROR_MESSAGE = 'Input contains too many characters!' - constructor( - question: MaxLengthQuestion, - readLine: ReadlineInterface, - answers: Answers - ) { - super(question, readLine, answers) - if (!this.opt.maxLength) { - this.throwParamError('maxLength') - } - const currentValidator = this.opt.validate - this.opt.validate = (input: string, answers: Answers) => { - if (this.opt.transformer(input, answers).length > this.opt.maxLength) { - return MaxLengthInputPrompt.VALIDATION_ERROR_MESSAGE - } - return currentValidator(input, answers) - } - } - - render(error?: string) { - const { maxLength, transformer } = this.opt - const answered = this.status === 'answered' - let bottomContent = '' - let message = this.getQuestion() - const transformed = transformer(this.rl.line, this.answers) - if (answered) { - message += chalk.cyan(this.answer) - } else { - message += transformed - } - if (error) { - bottomContent = chalk.red('>> ') + error - } else if (!answered) { - const percent = (transformed.length / maxLength) * 100 - const color = - percent < 80 ? chalk.green : percent > 100 ? chalk.red : chalk.yellow - bottomContent = `(${color(transformed.length)}/${ - this.opt.maxLength - } characters)` - } - this.screen.render(message, bottomContent) - } -} diff --git a/packages/cz-lerna-changelog/src/index.ts b/packages/cz-lerna-changelog/src/index.ts deleted file mode 100644 index f55e809cf1..0000000000 --- a/packages/cz-lerna-changelog/src/index.ts +++ /dev/null @@ -1,116 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 - present Instructure, Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -// @ts-ignore not typed -import commitAnalyzer from '@semantic-release/commit-analyzer' -import chalk from 'chalk' -// @ts-ignore not typed -import buildCommit from 'cz-customizable/lib/build-commit' -// @ts-ignore not typed -import { getChangedPackages, getPackages } from '@instructure/pkg-utils' -import { makeDefaultQuestions } from './make-default-questions' -import type { Answers } from 'inquirer' -import inquirerModule from 'inquirer' -import { MaxLengthInputPrompt } from './MaxLengthInputPrompt' - -type CommitType = 'patch' | 'minor' | 'major' - -function scopeText(scopes: string[]) { - if (scopes.length > 3) { - return 'many' - } else return scopes.join(',') -} - -// note: Most of the code is from https://github.com/atlassian/cz-lerna-changelog/ -function getCommitTypeMessage(type: CommitType) { - if (!type) { - return 'This commit does not indicate any release' - } - return { - patch: '🛠 This commit indicates a patch release (0.0.X)', - minor: '✨ This commit indicates a minor release (0.X.0)', - major: '💥 This commit indicates a major release (X.0.0)' - }[type] -} - -const prompter = ( - inquirer: typeof inquirerModule, - commit: (message: string) => void -) => { - const scope = '@instructure' - const allPackages = getPackages() - const changedPackages: string[] = getChangedPackages( - '--cached', - allPackages - ).map((pkg: any) => pkg.name.replace(`${scope}/`, '')) - const packageNames: string[] = allPackages.map((pkg: any) => - pkg.name.replace(`${scope}/`, '') - ) - const questions = makeDefaultQuestions(packageNames, changedPackages) - - inquirer.registerPrompt('maxlength-input', MaxLengthInputPrompt) - inquirer - .prompt(questions) - .then((answers) => { - const { body, testplan, footer, breaking, scope, ...rest } = answers - - const testplanTxt = testplan ? `\nTEST PLAN:\n${testplan}\n\n` : '' - const issues = footer ? `\n\nCloses: ${footer}\n\n` : '' - // To have part of a commit body appear in the changelog it needs to be after the "BREAKING CHANGE:" text. - // see https://github.com/conventional-changelog/conventional-changelog/tree/master/packages/conventional-changelog-angular - const message = buildCommit( - { - ...rest, - body: issues + body + testplanTxt, - breaking: breaking, - scope: scopeText(scope) - }, - { breaklineChar: '|' } - ) - const cwd = process.cwd() - - commitAnalyzer - .analyzeCommits( - {}, - { cwd, commits: [{ hash: '', message }], logger: console } - ) - .then((type: CommitType) => { - /* eslint-disable no-console */ - console.info(chalk.green(`\n${getCommitTypeMessage(type)}\n`)) - console.info('\n\nCommit message:') - console.info(chalk.blue(`\n\n${message}\n`)) - /* eslint-enable no-console */ - commit(message) - }) - .catch((error: any) => { - console.error(error) - }) - }) - .catch((error: any) => { - console.error(error) - }) -} - -export default { prompter } -export { scopeText } diff --git a/packages/cz-lerna-changelog/src/make-default-questions.ts b/packages/cz-lerna-changelog/src/make-default-questions.ts deleted file mode 100644 index 0613e5ca84..0000000000 --- a/packages/cz-lerna-changelog/src/make-default-questions.ts +++ /dev/null @@ -1,117 +0,0 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2015 - present Instructure, Inc. - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in all - * copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE - * SOFTWARE. - */ - -import type { MaxLengthQuestion } from './MaxLengthInputPrompt' -import type { DistinctQuestion } from 'inquirer' -import { scopeText } from './index' - -export const makeDefaultQuestions = ( - allPackages: string[], - changedPackages: string[] -): (DistinctQuestion | MaxLengthQuestion)[] => [ - { - type: 'list', - name: 'type', - message: "Select the type of change that you're committing:", - choices: [ - { value: 'WIP', name: 'WIP: 🚧 Work in progress' }, - { - value: 'feat', - name: 'feat: 🎉 A new feature (note: this will indicate a release)' - }, - { - value: 'fix', - name: 'fix: 🐛 A bug fix (note: this will indicate a release)' - }, - { value: 'docs', name: 'docs: 📖 Documentation only changes' }, - { - value: 'chore', - name: 'chore: 🛠 Changes to the build process or auxiliary tools\n and libraries such as documentation generation' - }, - { - value: 'style', - name: 'style: 💄 Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)' - }, - { - value: 'refactor', - name: 'refactor: ✨ A code change that neither fixes a bug nor adds a feature' - }, - { value: 'test', name: 'test: ✅ Adding missing tests' }, - { - value: 'perf', - name: 'perf: 🚀 A code change that improves performance' - }, - { value: 'revert', name: 'revert: 🙈 Revert to a commit' } - ] - }, - { - type: 'checkbox', - name: 'scope', - default: changedPackages, - choices: allPackages, - message: `The packages that this commit has affected (${changedPackages.length} detected)\n` - }, - { - type: 'maxlength-input', - name: 'subject', - message: 'Write a short, imperative tense description of the change:\n', - validate: function (input, _answers) { - return input && input.length > 0 - }, - filter: function (input, _answers) { - // used as return value and as length measurement - return input.charAt(0).toLowerCase() + input.slice(1) - }, - transformer: function (input, answers) { - // Return prefix + input. Shown only while entering the prompt - if (answers.scope.length === 0) { - return `${answers.type}: ${input}` - } - return `${answers.type}(${scopeText(answers.scope)}): ${input}` - }, - maxLength: 150 - }, - { - type: 'input', - name: 'body', - message: - 'Provide a longer description of the change (optional). Use "|" to break new line:\n' - }, - { - type: 'input', - name: 'testplan', - message: 'Provide a test plan:\n' - }, - { - type: 'input', - name: 'breaking', - message: 'List any BREAKING CHANGES (if none, leave blank):\n' - }, - { - type: 'input', - name: 'footer', // needs to be called footer, so its inserted after BREAKING CHANGE part, so it appears in the changelog - message: - 'List any ISSUES CLOSED by this change. E.g.: PROJECT-123, PROJECT-456:\n' - } -] diff --git a/packages/cz-lerna-changelog/tsconfig.build.json b/packages/cz-lerna-changelog/tsconfig.build.json deleted file mode 100644 index 99a342b900..0000000000 --- a/packages/cz-lerna-changelog/tsconfig.build.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "extends": "../../tsconfig.build.json", - "compilerOptions": { - "rootDir": "./src", - "outDir": "./types", - "composite": true - }, - "include": ["src"], - "references": [ - { - "path": "../pkg-utils/tsconfig.build.json" - }, - { - "path": "../ui-babel-preset/tsconfig.build.json" - } - ] -} diff --git a/packages/cz-lerna-changelog/tsconfig.json b/packages/cz-lerna-changelog/tsconfig.json deleted file mode 100644 index b29a7b46c4..0000000000 --- a/packages/cz-lerna-changelog/tsconfig.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../tsconfig.json", - "compilerOptions": {} -} diff --git a/scripts/clean.js b/scripts/clean.js index d87bea64d2..1d9d0890fc 100755 --- a/scripts/clean.js +++ b/scripts/clean.js @@ -34,7 +34,6 @@ const NODE_PACKAGES = [ 'ui-karma-config', 'ui-scripts', 'command-utils', - 'cz-lerna-changelog', 'instui-cli', 'babel-plugin-transform-imports', 'pkg-utils' diff --git a/tsconfig.json b/tsconfig.json index b61823279c..286700044e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,6 @@ ], "@instructure/command-utils": ["command-utils/lib"], "@instructure/config-loader": ["config-loader/lib"], - "@instructure/cz-lerna-changelog": ["cz-lerna-changelog/lib"], "@instructure/instui-cli": ["instui-cli/lib"], "@instructure/pkg-utils": ["pkg-utils/lib"], "@instructure/ui-babel-preset": ["ui-babel-preset/lib"], diff --git a/tsconfig.references.json b/tsconfig.references.json index df0d281d80..7df59af645 100644 --- a/tsconfig.references.json +++ b/tsconfig.references.json @@ -15,9 +15,6 @@ { "path": "./packages/console/tsconfig.build.json" }, - { - "path": "./packages/cz-lerna-changelog/tsconfig.build.json" - }, { "path": "./packages/debounce/tsconfig.build.json" },