Skip to content

Commit

Permalink
feat: bump transform version
Browse files Browse the repository at this point in the history
  • Loading branch information
v8tenko committed Apr 9, 2024
1 parent 45b5750 commit 1c2b8f5
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 17 deletions.
108 changes: 98 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@diplodoc/mermaid-extension": "^1.2.1",
"@diplodoc/openapi-extension": "^2.1.0",
"@diplodoc/prettier-config": "^2.0.0",
"@diplodoc/transform": "^4.8.2",
"@diplodoc/transform": "^4.13.0",
"@diplodoc/tsconfig": "^1.0.2",
"@octokit/core": "4.2.4",
"@types/async": "^3.2.15",
Expand Down
10 changes: 4 additions & 6 deletions src/steps/processChangelogs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@ import {readFile, unlink, writeFile} from 'node:fs/promises';
import {Lang} from '../constants';

type Language = string;
type MergedChangelogs =
| {
[language: Language]: Record<string, Record<string, unknown>>;
}
| Record<string, Record<string, unknown>>;
type MergedChangelogs = {
[language: Language]: Record<string, Record<string, unknown>>;
};

/*
{
Expand Down Expand Up @@ -55,7 +53,7 @@ export async function processChangelogs() {
}

const [lang, ...rest] = path.split('/');
const [, hash] = rest.pop().split(/[-.]/);
const [, hash] = rest.pop()!.split(/[-.]/);

const fullPath = '/' + rest.join('/');

Expand Down

0 comments on commit 1c2b8f5

Please sign in to comment.