-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replaced lerna-changelog with changesets. Installed update-workspace-…
…root-version. (#242) * chore: Replaced lerna-changelog with changesets * chore: Moved CHANGELOG.md to the package * chore: Installed update-workspace-root-version * chore: Added lockfile * chore: Added changeset --------- Co-authored-by: ijlee2 <[email protected]>
- Loading branch information
Showing
12 changed files
with
572 additions
and
456 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,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
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,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "./format-changelogs.cjs", | ||
"commit": false, | ||
"fixed": [], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
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,55 @@ | ||
const { getInfo } = require('@changesets/get-github-info'); | ||
|
||
const repo = 'ijlee2/ember-container-query'; | ||
|
||
async function analyze(changeset) { | ||
const { links: info } = await getInfo({ | ||
commit: changeset.commit, | ||
repo, | ||
}); | ||
|
||
const contributor = info.user ? `(${info.user})` : undefined; | ||
const link = info.pull ?? info.commit ?? undefined; | ||
const summary = (changeset.summary ?? '').split('\n')[0].trim(); | ||
|
||
return { | ||
contributor, | ||
link, | ||
summary, | ||
}; | ||
} | ||
|
||
async function summarize(changeset) { | ||
const { contributor, link, summary } = await analyze(changeset); | ||
|
||
const line = [link, summary, contributor].filter(Boolean).join(' '); | ||
|
||
return `- ${line}`; | ||
} | ||
|
||
async function getDependencyReleaseLine(changesets) { | ||
try { | ||
const lines = await Promise.all(changesets.map(summarize)); | ||
|
||
return lines.join('\n'); | ||
} catch (error) { | ||
console.error(`ERROR: getDependencyReleaseLine (${error.message})`); | ||
|
||
return ''; | ||
} | ||
} | ||
|
||
async function getReleaseLine(changeset) { | ||
try { | ||
return summarize(changeset); | ||
} catch (error) { | ||
console.error(`ERROR: getReleaseLine (${error.message})`); | ||
|
||
return ''; | ||
} | ||
} | ||
|
||
module.exports = { | ||
getDependencyReleaseLine, | ||
getReleaseLine, | ||
}; |
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,6 @@ | ||
--- | ||
"docs-app": major | ||
"test-app": major | ||
--- | ||
|
||
Made package version independent |
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 @@ | ||
# docs-app |
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 |
---|---|---|
|
@@ -17,33 +17,25 @@ | |
"lint": "pnpm --filter '*' lint", | ||
"lint:fix": "pnpm --filter '*' lint:fix", | ||
"prepare": "pnpm build:addon", | ||
"release:changelog": "lerna-changelog", | ||
"release:publish": "pnpm --recursive publish", | ||
"release:changelog": "changeset version; update-workspace-root-version", | ||
"release:publish": "pnpm build && changeset publish", | ||
"start": "concurrently 'pnpm:start:*' --restart-after 5000 --prefix-colors cyan,white,yellow", | ||
"start:addon": "pnpm --filter ember-container-query start", | ||
"start:docs-app": "pnpm --filter docs-app start", | ||
"start:test-app": "pnpm --filter test-app start", | ||
"test": "pnpm --filter '*' test" | ||
}, | ||
"devDependencies": { | ||
"@changesets/cli": "^2.27.7", | ||
"@changesets/get-github-info": "^0.6.0", | ||
"concurrently": "^8.2.2", | ||
"lerna-changelog": "^2.2.0" | ||
"update-workspace-root-version": "^0.3.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": "18.* || >= 20", | ||
"pnpm": ">= 9" | ||
}, | ||
"changelog": { | ||
"labels": { | ||
"breaking": "Breaking Change", | ||
"bug": "Bug Fix", | ||
"enhance: code": "Enhancement", | ||
"enhance: dependency": "Internal", | ||
"enhance: documentation": "Documentation", | ||
"user feedback": "User Feedback" | ||
} | ||
}, | ||
"pnpm": { | ||
"overrides": { | ||
"[email protected]>tsconfig-paths": "^4.2.0" | ||
|
File renamed without changes.
Oops, something went wrong.