Skip to content

Commit

Permalink
fix: fix for typedoc 0.27
Browse files Browse the repository at this point in the history
Default import for typedoc was not working with Typedoc 0.27. In addition, the dependencies have been upgraded and we passed to nodejs 22 and pnpm 9

Signed-off-by: euberdeveloper <[email protected]>

#1
  • Loading branch information
euberdeveloper committed Dec 30, 2024
1 parent bcf83fd commit 3fbbe77
Show file tree
Hide file tree
Showing 7 changed files with 971 additions and 1,285 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20.x]
pnpm-version: [8.x]
node-version: [22.x]
pnpm-version: [9.x]

runs-on: ${{ matrix.os }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20.x]
pnpm-version: [8.x]
node-version: [22.x]
pnpm-version: [9.x]

runs-on: ${{ matrix.os }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: [20.x]
pnpm-version: [8.x]
node-version: [22.x]
pnpm-version: [9.x]

runs-on: ${{ matrix.os }}

Expand Down
2 changes: 1 addition & 1 deletion build.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from 'node:fs';
import { build } from 'esbuild';

import packageJson from './package.json' assert { type: 'json' };
import packageJson from './package.json' with { type: 'json' };

function getExternalDependencies(allow = []) {
const deps = packageJson.dependencies ? Object.keys(packageJson.dependencies).filter(dep => !allow.includes(dep)) : [];
Expand Down
33 changes: 17 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"exports": {
".": {
"require": {
"default": "./bundled/lib/commonjs/index.js",
"types": "./bundled/lib/commonjs/index.d.ts"
"types": "./bundled/lib/commonjs/index.d.ts",
"default": "./bundled/lib/commonjs/index.js"
},
"import": {
"default": "./bundled/lib/esm/index.esm.js",
"types": "./bundled/lib/esm/index.d.ts"
"types": "./bundled/lib/esm/index.d.ts",
"default": "./bundled/lib/esm/index.esm.js"
}
}
},
Expand All @@ -30,8 +30,8 @@
"pretranspile": "pnpm clean",
"transpile": "tsc -p source",
"bundle:esm": "node build.mjs",
"bundle:dts": "dts-bundle-generator -o bundled/lib/commonjs/index.d.ts --project source/tsconfig.json source/index.ts",
"postbundle:dts": "cp bundled/lib/commonjs/index.d.ts bundled/lib/esm/index.d.ts",
"bundle:dts": "dts-bundle-generator -o bundled/lib/esm/index.d.ts --project source/tsconfig.json source/index.ts",
"postbundle:dts": "cp bundled/lib/esm/index.d.ts bundled/lib/commonjs/index.d.ts",
"prebundle": "pnpm clean",
"bundle": "pnpm bundle:esm && pnpm bundle:dts",
"lint": "eslint source --ext ts --format codeframe",
Expand Down Expand Up @@ -63,18 +63,19 @@
"url": "https://github.com/euberdeveloper/typedoc-plugin-ga/issues"
},
"homepage": "https://github.com/euberdeveloper/typedoc-plugin-ga",
"peerDependencies": {
"typedoc": "^0.26.5"
},
"packageManager": "[email protected]+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1",
"devDependencies": {
"@euberdeveloper/eslint-plugin": "^2.7.0",
"@release-it/conventional-changelog": "^8.0.1",
"@types/node": "^22.3.0",
"dotenv-cli": "^7.4.2",
"@euberdeveloper/eslint-plugin": "^2.8.0",
"@release-it/conventional-changelog": "^9.0.4",
"@types/node": "^22.10.2",
"dotenv-cli": "^8.0.0",
"dts-bundle-generator": "^9.5.1",
"esbuild": "^0.23.0",
"release-it": "^17.6.0",
"esbuild": "^0.24.2",
"release-it": "^17.11.0",
"shx": "^0.3.4",
"typescript": "^5.5.4"
},
"peerDependencies": {
"typedoc": "^0.26.5"
"typescript": "^5.7.2"
}
}
Loading

0 comments on commit 3fbbe77

Please sign in to comment.