mirror of
https://github.com/goauthentik/authentik
synced 2026-05-15 03:16:22 +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>
42 lines
1.4 KiB
JSON
42 lines
1.4 KiB
JSON
{
|
|
"name": "@goauthentik/docusaurus-theme",
|
|
"version": "0.0.0",
|
|
"license": "MIT",
|
|
"private": true,
|
|
"type": "module",
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": "./index.js",
|
|
"./custom.css": "./custom.css",
|
|
"./config": "./config.js",
|
|
"./remark": "./remark/index.mjs",
|
|
"./components/*": "./components/*",
|
|
"./redirects/plugin": "./redirects/plugin.mjs",
|
|
"./redirects/node": "./redirects/node.mjs",
|
|
"./redirects": "./redirects/index.mjs",
|
|
"./releases/common": "./releases/common.mjs",
|
|
"./releases/plugin": "./releases/plugin.mjs",
|
|
"./releases/version": "./releases/version.mjs",
|
|
"./releases/node": "./releases/node.mjs"
|
|
},
|
|
"imports": {
|
|
"#remark": "./remark/index.mjs",
|
|
"#remark/*": "./remark/*",
|
|
"#components/*": "./components/*",
|
|
"#hooks/*": "./hooks/*",
|
|
"#theme/*": "./theme/*"
|
|
},
|
|
"dependencies": {
|
|
"@docusaurus/preset-classic": "^3.10.1",
|
|
"@goauthentik/docusaurus-config": "../../packages/docusaurus-config",
|
|
"@types/semver": "^7.7.1",
|
|
"clsx": "^2.1.1",
|
|
"fast-glob": "^3.3.3",
|
|
"remark-directive": "^4.0.0",
|
|
"remark-github": "^12.0.0",
|
|
"semver": "^7.7.3",
|
|
"typescript": "^6.0.3",
|
|
"unist-util-visit": "^5.0.0"
|
|
}
|
|
}
|