fix package scripts

This commit is contained in:
Elio Bischof
2025-07-17 20:07:53 +02:00
parent cf4f2308b3
commit a053ee802d
9 changed files with 66 additions and 33 deletions

View File

@@ -1,6 +1,6 @@
module.exports = {
root: true,
extends: ["eslint:recommended", "@typescript-eslint/recommended"],
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
env: {
@@ -11,4 +11,9 @@ module.exports = {
ecmaVersion: 2022,
sourceType: "module",
},
rules: {
"@typescript-eslint/no-unused-vars": ["error", {
"argsIgnorePattern": "^_"
}]
}
};

View File

@@ -44,10 +44,7 @@
"sideEffects": false,
"scripts": {
"build": "pnpm exec tsup",
"build:client:standalone": "pnpm build",
"test": "pnpm test:unit",
"test:unit": "pnpm exec vitest --run",
"test:unit:standalone": "pnpm test:unit",
"lint": "eslint \"src/**/*.ts*\"",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
},
@@ -62,6 +59,8 @@
"devDependencies": {
"@bufbuild/buf": "^1.53.0",
"@bufbuild/protocompile": "^0.0.1",
"@eslint/compat": "^1.3.1",
"@eslint/eslintrc": "^3.3.1",
"@typescript-eslint/eslint-plugin": "^8.15.0",
"@typescript-eslint/parser": "^8.15.0",
"eslint": "^8.57.0",

View File

@@ -24,7 +24,7 @@ describe("NewAuthorizationBearerInterceptor", () => {
};
test("injects the authorization token", async () => {
const handler = vitest.fn((request: Int32Value, context: HandlerContext) => {
const handler = vitest.fn((request: Int32Value, _context: HandlerContext) => {
return { value: request.value.toString() };
});
@@ -42,7 +42,7 @@ describe("NewAuthorizationBearerInterceptor", () => {
});
test("do not overwrite the previous authorization token", async () => {
const handler = vitest.fn((request: Int32Value, context: HandlerContext) => {
const handler = vitest.fn((request: Int32Value, _context: HandlerContext) => {
return { value: request.value.toString() };
});

View File

@@ -4,9 +4,6 @@
"build": {
"outputs": ["dist/**"],
"dependsOn": ["@zitadel/proto#generate"]
},
"build:client:standalone": {
"outputs": ["dist/**"]
}
}
}

View File

@@ -14,7 +14,7 @@
],
"sideEffects": false,
"scripts": {
"generate": "pnpm exec buf generate ../../../proto --path ../../../proto/zitadel",
"generate": "pnpm exec buf generate ../../proto --path ../../proto/zitadel",
"clean": "rm -rf zitadel .turbo node_modules google protoc-gen-openapiv2 validate"
},
"dependencies": {