diff --git a/web/package-lock.json b/web/package-lock.json index d7b5b9493..a3cfe1968 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -14370,8 +14370,9 @@ }, "node_modules/npm-run-all": { "version": "4.1.5", + "resolved": "https://registry.npmjs.org/npm-run-all/-/npm-run-all-4.1.5.tgz", + "integrity": "sha512-Oo82gJDAVcaMdi3nuoKFavkIHBRVqQ1qvMb+9LHk/cF4P6B2m8aP04hGf7oL6wZ9BuGwX1onlLhpuoofSyoQDQ==", "dev": true, - "license": "MIT", "dependencies": { "ansi-styles": "^3.2.1", "chalk": "^2.4.1", @@ -19149,6 +19150,7 @@ } }, "packages/localization": { + "name": "@goauthentik/localization", "version": "0.0.0", "license": "MIT", "devDependencies": { @@ -19162,6 +19164,7 @@ "npm-run-all": "^4.1.5", "prettier": "^3.1.1", "pseudolocale": "^2.0.0", + "rimraf": "^5.0.5", "typescript": "^5.3.3" } }, @@ -19522,6 +19525,24 @@ "@esbuild/win32-ia32": "0.19.11", "@esbuild/win32-x64": "0.19.11" } + }, + "packages/localization/node_modules/rimraf": { + "version": "5.0.5", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-5.0.5.tgz", + "integrity": "sha512-CqDakW+hMe/Bz202FPEymy68P+G50RfMQK+Qo5YUqc9SPipvbGjCGKd0RSKEelbsfQuw3g5NZDSrlZZAJurH1A==", + "dev": true, + "dependencies": { + "glob": "^10.3.7" + }, + "bin": { + "rimraf": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } } } } diff --git a/web/packages/localization/package.json b/web/packages/localization/package.json index 90fa54541..ca2165e04 100644 --- a/web/packages/localization/package.json +++ b/web/packages/localization/package.json @@ -9,7 +9,9 @@ "build": "run-s build-locales compile fix:lint fix:prettier", "build-locales": "lit-localize build", "compile": "node ./build.mjs", - "clean": "rimraf src dist scripts/*.mjs", + "clean:dist": "rimraf dist scripts/*.mjs", + "clean:build": "rimraf src", + "clean": "npm-run-all --parallel clean:dist clean:build", "extract-locales": "run-p localization:extract localization:pseudolocalize", "lint:lint": "eslint . --max-warnings 0", "fix:lint": "eslint . --max-warnings 0 --fix dist/locale-codes.js", @@ -29,16 +31,17 @@ "./dist/**/*" ], "devDependencies": { + "@lit/localize-tools": "^0.7.1", "@typescript-eslint/eslint-plugin": "^6.17.0", "@typescript-eslint/parser": "^6.17.0", - "@lit/localize-tools": "^0.7.1", + "esbuild": "^0.19.10", "eslint": "^8.56.0", "eslint-config-google": "^0.14.0", "eslint-plugin-custom-elements": "0.0.8", "npm-run-all": "^4.1.5", "prettier": "^3.1.1", "pseudolocale": "^2.0.0", - "typescript": "^5.3.3", - "esbuild": "^0.19.10" + "rimraf": "^5.0.5", + "typescript": "^5.3.3" } }