mirror of
https://github.com/goauthentik/authentik
synced 2026-05-15 11:26:31 +02:00
* core: add .npmrc baseline to block dependency lifecycle scripts Set ignore-scripts=true at the repo root, plus engine-strict, save-exact, audit, and prefer-offline. This neutralizes the dominant npm supply-chain attack vector — postinstall scripts in transitive dependencies — at the cost of requiring an explicit rebuild for the handful of packages that legitimately need install scripts (esbuild, chromedriver, tree-sitter, tree-sitter-json). The next commit wires that rebuild into the Makefile. Co-Authored-By: Playpen Agent <279763771+playpen-agent@users.noreply.github.com> * core: route node installs through make to retire website preinstall hook Make docs-install depend on a new root-node-install so the root deps are guaranteed before the website install runs, removing the need for the website/preinstall lifecycle script. Rebuild the small audited list of trusted packages (esbuild, chromedriver, tree-sitter, tree-sitter-json) after the web install so ignore-scripts=true remains the only path that needs maintenance. web/README documents the new workflow. Co-Authored-By: Playpen Agent <279763771+playpen-agent@users.noreply.github.com> * Clean up install scripts. * Track .npmrc in CODEOWNERS * Fix formatter config. Reformat. * Fix mounted references. * Flesh out node scripts. * Bump engines. * Prep containers. * Update makefile. * Flesh out github actions. * Clean up docs container. * lint. Bump. Lint. Bump NPM version. * Add limits. * collapse the composite's three setup-node calls to one cache restore * Add SHA. * Bump NPM range. * Run formatter. * Bump NPM. * Remove extra install. * Fix website deps. * Use local prettier. Fix drift in CI. * ci: build frontend in CI with node_env production Signed-off-by: Jens Langhammer <jens@goauthentik.io> * Install docusaurus config. * Fix linter warning, order. * Add linter commands. * Add timeout. * Remove pre install check. --------- Signed-off-by: Jens Langhammer <jens@goauthentik.io> Co-authored-by: Playpen Agent <279763771+playpen-agent@users.noreply.github.com> Co-authored-by: Jens Langhammer <jens@goauthentik.io>
110 lines
3.0 KiB
JSON
110 lines
3.0 KiB
JSON
{
|
|
"name": "@goauthentik/docusaurus-config",
|
|
"version": "3.0.0",
|
|
"description": "authentik's Docusaurus config",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/goauthentik/authentik.git",
|
|
"directory": "packages/docusaurus-config"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc -p .",
|
|
"lint": "eslint --fix .",
|
|
"lint-check": "eslint --max-warnings 0 .",
|
|
"prettier": "prettier --cache --write -u .",
|
|
"prettier-check": "prettier --cache --check -u ."
|
|
},
|
|
"type": "module",
|
|
"types": "./out/index.d.ts",
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": {
|
|
"types": "./out/index.d.ts",
|
|
"import": "./index.js"
|
|
},
|
|
"./css/*.css": "./css/*.css"
|
|
},
|
|
"dependencies": {
|
|
"deepmerge-ts": "^7.1.5",
|
|
"prism-react-renderer": "^2.4.1"
|
|
},
|
|
"devDependencies": {
|
|
"@docusaurus/theme-common": "^3.10.0",
|
|
"@docusaurus/theme-search-algolia": "^3.10.0",
|
|
"@docusaurus/types": "^3.10.0",
|
|
"@eslint/js": "^9.39.3",
|
|
"@goauthentik/eslint-config": "../eslint-config",
|
|
"@goauthentik/prettier-config": "../prettier-config",
|
|
"@goauthentik/tsconfig": "../tsconfig",
|
|
"@types/node": "^25.7.0",
|
|
"@types/react": "^19.2.14",
|
|
"@types/react-dom": "^19.2.3",
|
|
"eslint": "^9.39.3",
|
|
"pino": "^10.3.1",
|
|
"prettier": "^3.8.3",
|
|
"prettier-plugin-packagejson": "^3.0.2",
|
|
"typescript": "^6.0.3",
|
|
"typescript-eslint": "^8.59.3"
|
|
},
|
|
"peerDependencies": {
|
|
"@docusaurus/theme-common": "^3.10.1",
|
|
"@docusaurus/theme-search-algolia": "^3.10.1",
|
|
"@docusaurus/types": "^3.10.1",
|
|
"react": ">=19",
|
|
"react-dom": ">=19"
|
|
},
|
|
"optionalDependencies": {
|
|
"react": ">=19",
|
|
"react-dom": ">=19"
|
|
},
|
|
"files": [
|
|
"./index.js",
|
|
"lib/**/*",
|
|
"css/**/*",
|
|
"out/**/*"
|
|
],
|
|
"engines": {
|
|
"node": ">=24",
|
|
"npm": ">=11.14.1"
|
|
},
|
|
"devEngines": {
|
|
"runtime": {
|
|
"name": "node",
|
|
"onFail": "warn",
|
|
"version": ">=24"
|
|
},
|
|
"packageManager": {
|
|
"name": "npm",
|
|
"version": ">=11.14.1",
|
|
"onFail": "warn"
|
|
}
|
|
},
|
|
"prettier": "@goauthentik/prettier-config",
|
|
"overrides": {
|
|
"@typescript-eslint/eslint-plugin": {
|
|
"typescript": "$typescript"
|
|
},
|
|
"@typescript-eslint/parser": {
|
|
"typescript": "$typescript"
|
|
},
|
|
"typescript-eslint": {
|
|
"typescript": "$typescript"
|
|
}
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@docusaurus/theme-search-algolia": {
|
|
"optional": true
|
|
},
|
|
"react": {
|
|
"optional": true
|
|
},
|
|
"react-dom": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|