mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
9543b3c9f6
* 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>
122 lines
3.3 KiB
JSON
122 lines
3.3 KiB
JSON
{
|
|
"name": "@goauthentik/esbuild-plugin-live-reload",
|
|
"version": "2.0.1",
|
|
"description": "ESBuild + browser refresh. Build completes, page reloads.",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/goauthentik/authentik.git",
|
|
"directory": "packages/esbuild-plugin-live-reload"
|
|
},
|
|
"scripts": {
|
|
"build": "npm run build:types && npm run build:docs",
|
|
"build:docs": "typedoc",
|
|
"build:types": "tsc -p .",
|
|
"lint": "eslint --fix .",
|
|
"lint-check": "eslint --max-warnings 0 .",
|
|
"prettier": "prettier --cache --write -u .",
|
|
"prettier-check": "prettier --cache --check -u ."
|
|
},
|
|
"main": "index.js",
|
|
"type": "module",
|
|
"types": "./out/index.d.ts",
|
|
"exports": {
|
|
"./package.json": "./package.json",
|
|
".": {
|
|
"types": "./out/index.d.ts",
|
|
"import": "./index.js"
|
|
},
|
|
"./shared": {
|
|
"types": "./out/shared/index.d.ts",
|
|
"import": "./shared/index.js"
|
|
},
|
|
"./client": {
|
|
"types": "./out/client/index.d.ts",
|
|
"import": "./client/index.js"
|
|
},
|
|
"./client/types": "./client/types.d.ts",
|
|
"./plugin": {
|
|
"types": "./out/plugin/index.d.ts",
|
|
"import": "./plugin/index.js"
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"find-free-ports": "^3.1.1"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^9.39.3",
|
|
"@goauthentik/eslint-config": "../eslint-config",
|
|
"@goauthentik/logger-js": "../logger-js",
|
|
"@goauthentik/prettier-config": "../prettier-config",
|
|
"@goauthentik/tsconfig": "../tsconfig",
|
|
"@types/node": "^25.7.0",
|
|
"esbuild": "^0.27.4",
|
|
"eslint": "^9.39.3",
|
|
"pino": "^10.3.1",
|
|
"prettier": "^3.8.3",
|
|
"prettier-plugin-packagejson": "^3.0.2",
|
|
"typedoc": "^0.28.18",
|
|
"typedoc-plugin-markdown": "^4.11.0",
|
|
"typescript": "^6.0.3",
|
|
"typescript-eslint": "^8.59.3"
|
|
},
|
|
"peerDependencies": {
|
|
"@goauthentik/logger-js": "^1.0.1",
|
|
"esbuild": "^0.27.4"
|
|
},
|
|
"files": [
|
|
"./index.js",
|
|
"client/**/*",
|
|
"plugin/**/*",
|
|
"shared/**/*",
|
|
"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",
|
|
"keywords": [
|
|
"esbuild",
|
|
"live-reload",
|
|
"browser",
|
|
"refresh",
|
|
"reload",
|
|
"authentik"
|
|
],
|
|
"overrides": {
|
|
"@typescript-eslint/eslint-plugin": {
|
|
"typescript": "$typescript"
|
|
},
|
|
"@typescript-eslint/parser": {
|
|
"typescript": "$typescript"
|
|
},
|
|
"format-imports": {
|
|
"eslint": "$eslint"
|
|
},
|
|
"typescript-eslint": {
|
|
"typescript": "$typescript"
|
|
}
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@goauthentik/logger-js": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"publishConfig": {
|
|
"access": "public"
|
|
}
|
|
}
|