mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:37:32 +00:00
fix package scripts
This commit is contained in:
@@ -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": "^_"
|
||||
}]
|
||||
}
|
||||
};
|
||||
|
@@ -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",
|
||||
|
@@ -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() };
|
||||
});
|
||||
|
||||
|
@@ -4,9 +4,6 @@
|
||||
"build": {
|
||||
"outputs": ["dist/**"],
|
||||
"dependsOn": ["@zitadel/proto#generate"]
|
||||
},
|
||||
"build:client:standalone": {
|
||||
"outputs": ["dist/**"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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": {
|
||||
|
Reference in New Issue
Block a user