-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
deps!: upgrade typescript and typedoc (#1337)
Upgrades all deps including typescript, typedoc, semantic release and markdown deps. BREAKING CHANGE: update typescript to `5.1.6, typedoc to `0.24.8` and eslint-config-ipfs to `5.0.0`
- Loading branch information
1 parent
48cc141
commit 4ef4b62
Showing
30 changed files
with
254 additions
and
152 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
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,33 @@ | ||
/* eslint-disable no-console */ | ||
|
||
import path from 'path' | ||
import fs from 'fs-extra' | ||
import { | ||
ensureFileHasContents | ||
} from './utils.js' | ||
|
||
/** | ||
* @param {string} projectDir | ||
* @param {boolean} isTypescriptProject | ||
*/ | ||
export async function checkTypedocFiles (projectDir, isTypescriptProject) { | ||
console.info('Check typedoc files') | ||
|
||
const pkg = fs.readJSONSync(path.join(projectDir, 'package.json')) | ||
const entryPoints = Object.values(pkg.exports) | ||
.map(e => { | ||
const path = e.import | ||
|
||
if (isTypescriptProject) { | ||
return path | ||
.replace('dist/src', 'src') | ||
.replace('.js', '.ts') | ||
} | ||
|
||
return path | ||
}) | ||
|
||
await ensureFileHasContents(JSON.stringify({ | ||
entryPoints | ||
}, null, 2), 'typedoc.json') | ||
} |
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
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
Oops, something went wrong.