Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update all dependencies #16

Merged
merged 1 commit into from
Nov 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/release-plan-setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import util from 'util';
import execa from 'execa';
import sortPackageJson from 'sort-package-json';
import gitconfiglocal from 'gitconfiglocal';
import parseMarkdown from 'mdast-util-from-markdown';
import { fromMarkdown } from 'mdast-util-from-markdown';
import findRepoURL from '../lib/findRepoUrl.js';
import getDependencyRange from '../lib/getDependencyRange.js';
import ejs from 'ejs';
Expand Down Expand Up @@ -138,7 +138,7 @@ try {

if (hasChangelog && update) {
let changelogContent = fs.readFileSync('CHANGELOG.md', { encoding: 'utf8' });
let ast = parseMarkdown(changelogContent);
let ast = fromMarkdown(changelogContent);

let hasH1 = ast.children.find((it) => it.type === 'heading' && it.depth === 1);

Expand Down
4 changes: 2 additions & 2 deletions lib/findRepoUrl.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { fromUrl as getRepoInfoFromURL } from 'hosted-git-info';
import hostedGitInfo from 'hosted-git-info';

export default function findRepoURL(pkg) {
if (!pkg.repository) {
Expand All @@ -8,7 +8,7 @@ export default function findRepoURL(pkg) {

// see https://docs.npmjs.com/configuring-npm/package-json#repository for valid formats
const url = typeof pkg.repository === 'string' ? pkg.repository : pkg.repository.url;
const repoInfo = getRepoInfoFromURL(url);
const repoInfo = hostedGitInfo.fromUrl(url);
if (repoInfo === undefined || repoInfo === null || repoInfo.type !== 'github') {
return;
}
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@
"execa": "^5.1.1",
"gitconfiglocal": "^2.1.0",
"github-label-sync": "^1.6.0",
"hosted-git-info": "^3.0.8",
"hosted-git-info": "^7.0.1",
"lodash.template": "^4.5.0",
"mdast-util-from-markdown": "^0.8.5",
"mdast-util-from-markdown": "^2.0.0",
"semver": "^7.3.5",
"sort-package-json": "^1.50.0",
"which": "^3.0.0"
"sort-package-json": "^2.6.0",
"which": "^4.0.0"
},
"devDependencies": {
"eslint": "^8.54.0",
Expand Down
Loading