Skip to content

Instantly share code, notes, and snippets.

@SamJakob
Last active September 16, 2021 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SamJakob/6fd2f06cc38242557e5d2d50fbe7a157 to your computer and use it in GitHub Desktop.
Save SamJakob/6fd2f06cc38242557e5d2d50fbe7a157 to your computer and use it in GitHub Desktop.
Hotfix for typedoc package.json
# This should be added to package.json as a 'postinstall' script.
curl https://gist.githubusercontent.com/SamJakob/6fd2f06cc38242557e5d2d50fbe7a157/raw/62bae510910db76c9ef503b92288b429c62a4206/typedoc_package.json > ./node_modules/typedoc/package.json
{
"__comment__hotfix": [
"This is a hotfixed file for typedoc to remove the 'exports' property to allow",
"legacy plugins that rely on those exports to work until they are updated."
],
"name": "typedoc",
"description": "Create api documentation for TypeScript projects.",
"version": "0.22.3",
"homepage": "https://typedoc.org",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"bin": {
"typedoc": "bin/typedoc"
},
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "git://github.com/TypeStrong/TypeDoc.git"
},
"bugs": {
"url": "https://github.com/TypeStrong/TypeDoc/issues"
},
"engines": {
"node": ">= 12.10.0"
},
"dependencies": {
"glob": "^7.1.7",
"lunr": "^2.3.9",
"marked": "^3.0.3",
"minimatch": "^3.0.4",
"shiki": "^0.9.10"
},
"peerDependencies": {
"typescript": "4.0.x || 4.1.x || 4.2.x || 4.3.x || 4.4.x"
},
"devDependencies": {
"@types/glob": "^7.1.4",
"@types/lunr": "^2.3.4",
"@types/marked": "^3.0.0",
"@types/minimatch": "3.0.5",
"@types/mocha": "^9.0.0",
"@types/node": "^16.9.1",
"@types/puppeteer": "^5.4.4",
"@typescript-eslint/eslint-plugin": "^4.31.0",
"@typescript-eslint/parser": "^4.31.0",
"esbuild": "^0.12.26",
"eslint": "^7.32.0",
"mocha": "^9.1.1",
"nyc": "^15.1.0",
"prettier": "2.4.0",
"puppeteer": "^10.1.0",
"reg-notify-github-plugin": "^0.10.16",
"reg-suit": "^0.10.16",
"reg-suit-core": "^0.10.16",
"reg-suit-interface": "^0.10.16",
"typescript": "^4.3.5"
},
"files": [
"/bin",
"!*.map",
"/dist",
"!/dist/tmp",
"!/dist/test",
"/LICENSE",
"/static"
],
"scripts": {
"pretest": "node scripts/copy_test_files.js",
"test": "mocha --config .config/mocha.fast.json",
"pretest:full": "npm run pretest",
"test:full": "nyc mocha --config .config/mocha.full.json",
"test:visual": "node ./dist/test/capture-screenshots.js && reg-suit -c .config/regconfig.json compare",
"test:visual:accept": "node scripts/accept_visual_regression.js",
"prerebuild_specs": "npm run pretest",
"rebuild_specs": "node scripts/rebuild_specs.js",
"build": "npm run build:tsc && npm run build:themes",
"build:tsc": "tsc --project .",
"build:themes": "esbuild src/lib/output/themes/default/assets/bootstrap.ts --bundle --minify --outfile=static/main.js",
"build:prod": "npm run build:prod:tsc && npm run build:themes",
"build:prod:tsc": "tsc --project . --sourceMap false",
"lint": "eslint . && npm run prettier -- --check .",
"prettier": "prettier --config .config/.prettierrc.json --ignore-path .config/.prettierignore",
"prepublishOnly": "node scripts/set_strict.js false && npm run build:prod && npm test",
"postpublish": "node scripts/set_strict.js true"
},
"keywords": [
"typescript",
"documentation",
"generator"
],
"nyc": {
"extension": [
".ts",
".tsx"
],
"reporter": [
"html",
"text-summary"
],
"exclude": [
"**/*.d.ts",
"src/test"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment