chore(login): migrate nextjs login to monorepo (#10134)

# Which Problems Are Solved

We move the login code to the zitadel repo.

# How the Problems Are Solved

The login repo is added to ./login as a git subtree pulled from the
dockerize-ci branch.
Apart from the login code, this PR contains the changes from #10116

# Additional Context

- Closes https://github.com/zitadel/typescript/issues/474
- Also merges #10116  
- Merging is blocked by failing check because of:
- https://github.com/zitadel/zitadel/pull/10134#issuecomment-3012086106

---------

Co-authored-by: Max Peintner <[email protected]>
Co-authored-by: Max Peintner <[email protected]>
Co-authored-by: Florian Forster <[email protected]>
This commit is contained in:
Elio Bischof
2025-07-02 10:04:19 +02:00
committed by GitHub
co-authored by Max Peintner Max Peintner Florian Forster
parent fce9e770ac
commit 2928c6ac2b
416 changed files with 38969 additions and 10 deletions
@@ -0,0 +1,4 @@
module.exports = {
root: true,
extends: ["@zitadel/eslint-config"],
};
+4
View File
@@ -0,0 +1,4 @@
src/proto
node_modules
dist
.turbo
@@ -0,0 +1,77 @@
# @zitadel/client
## 1.2.0
### Minor Changes
- 62ad388: revert CJS support
## 1.1.0
### Minor Changes
- 9692297: add CJS and ESM support
## 1.0.7
### Patch Changes
- Updated dependencies [97b0332]
- @zitadel/proto@1.0.4
## 1.0.6
### Patch Changes
- 90fbdd1: use node16/nodenext module resolution
- Updated dependencies [90fbdd1]
- @zitadel/proto@1.0.3
## 1.0.5
### Patch Changes
- 4fa22c0: fix export for grpcweb transport
## 1.0.4
### Patch Changes
- 28dc956: dynamic properties for system token utility
## 1.0.3
### Patch Changes
- ef1c801: add missing client transport utility
## 1.0.2
### Patch Changes
- Updated dependencies
- @zitadel/proto@1.0.2
## 1.0.1
### Patch Changes
- README updates
- Updated dependencies
- @zitadel/proto@1.0.1
## 1.0.0
### Major Changes
- 32e1199: Initial Release
### Minor Changes
- f32ab7f: Initial release
### Patch Changes
- Updated dependencies [f32ab7f]
- Updated dependencies [32e1199]
- @zitadel/proto@1.0.0
+53
View File
@@ -0,0 +1,53 @@
# ZITADEL Client
This package exports services and utilities to interact with ZITADEL
## Installation
To install the package, use npm or yarn:
```sh
npm install @zitadel/client
```
or
```sh
yarn add @zitadel/client
```
## Usage
### Importing Services
You can import and use the services provided by this package to interact with ZITADEL.
```ts
import { createSettingsServiceClient, makeReqCtx } from "@zitadel/client/v2";
// Example usage
const transport = createServerTransport(process.env.ZITADEL_SERVICE_USER_TOKEN!, { baseUrl: process.env.ZITADEL_API_URL! });
const settingsService = createSettingsServiceClient(transport);
settingsService.getBrandingSettings({ ctx: makeReqCtx("orgId") }, {});
```
### Utilities
This package also provides various utilities to work with ZITADEL
```ts
import { timestampMs } from "@zitadel/client";
// Example usage
console.log(`${timestampMs(session.creationDate)}`);
```
## Documentation
For detailed documentation and API references, please visit the [ZITADEL documentation](https://zitadel.com/docs).
## Contributing
Contributions are welcome! Please read the contributing guidelines before getting started.
@@ -0,0 +1,71 @@
{
"name": "@zitadel/client",
"version": "1.2.0",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"type": "module",
"exports": {
".": {
"types": "./dist/index.d.ts",
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./v1": {
"types": "./dist/v1.d.ts",
"import": "./dist/v1.js",
"require": "./dist/v1.cjs"
},
"./v2": {
"types": "./dist/v2.d.ts",
"import": "./dist/v2.js",
"require": "./dist/v2.cjs"
},
"./v3alpha": {
"types": "./dist/v3alpha.d.ts",
"import": "./dist/v3alpha.js",
"require": "./dist/v3alpha.cjs"
},
"./node": {
"types": "./dist/node.d.ts",
"import": "./dist/node.js",
"require": "./dist/node.cjs"
},
"./web": {
"types": "./dist/web.d.ts",
"import": "./dist/web.js",
"require": "./dist/web.cjs"
}
},
"files": [
"dist/**"
],
"sideEffects": false,
"scripts": {
"build": "pnpm exec tsup",
"build:client:standalone": "pnpm build",
"test": "pnpm test:unit",
"test:watch": "pnpm test:unit:watch",
"test:unit": "pnpm exec vitest",
"test:unit:standalone": "pnpm test:unit",
"test:unit:watch": "pnpm exec vitest --watch",
"dev": "pnpm exec tsup --watch --dts",
"lint": "eslint \"src/**/*.ts*\"",
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
},
"dependencies": {
"@bufbuild/protobuf": "^2.2.2",
"@connectrpc/connect": "^2.0.0",
"@connectrpc/connect-node": "^2.0.0",
"@connectrpc/connect-web": "^2.0.0",
"jose": "^5.3.0",
"@zitadel/proto": "workspace:*"
},
"devDependencies": {
"@bufbuild/protocompile": "^0.0.1",
"@bufbuild/buf": "^1.53.0",
"@zitadel/tsconfig": "workspace:*",
"@zitadel/eslint-config": "workspace:*"
}
}
@@ -0,0 +1,11 @@
import type { DescService } from "@bufbuild/protobuf";
import { Timestamp, timestampDate } from "@bufbuild/protobuf/wkt";
import { createClient, Transport } from "@connectrpc/connect";
export function createClientFor<TService extends DescService>(service: TService) {
return (transport: Transport) => createClient(service, transport);
}
export function toDate(timestamp: Timestamp | undefined): Date | undefined {
return timestamp ? timestampDate(timestamp) : undefined;
}
@@ -0,0 +1,10 @@
export { createClientFor, toDate } from "./helpers.js";
export { NewAuthorizationBearerInterceptor } from "./interceptors.js";
// TODO: Move this to `./protobuf.ts` and export it from there
export { create, fromJson, toJson } from "@bufbuild/protobuf";
export type { JsonObject } from "@bufbuild/protobuf";
export type { GenService } from "@bufbuild/protobuf/codegenv1";
export { TimestampSchema, timestampDate, timestampFromDate, timestampFromMs, timestampMs } from "@bufbuild/protobuf/wkt";
export type { Duration, Timestamp } from "@bufbuild/protobuf/wkt";
export type { Client, Code, ConnectError } from "@connectrpc/connect";
@@ -0,0 +1,67 @@
import { Int32Value } from "@bufbuild/protobuf/wkt";
import { compileService } from "@bufbuild/protocompile";
import { createRouterTransport, HandlerContext } from "@connectrpc/connect";
import { describe, expect, test, vitest } from "vitest";
import { NewAuthorizationBearerInterceptor } from "./interceptors.js";
const TestService = compileService(`
syntax = "proto3";
package handwritten;
service TestService {
rpc Unary(Int32Value) returns (StringValue);
}
message Int32Value {
int32 value = 1;
}
message StringValue {
string value = 1;
}
`);
describe("NewAuthorizationBearerInterceptor", () => {
const transport = {
interceptors: [NewAuthorizationBearerInterceptor("mytoken")],
};
test("injects the authorization token", async () => {
const handler = vitest.fn((request: Int32Value, context: HandlerContext) => {
return { value: request.value.toString() };
});
const service = createRouterTransport(
({ rpc }) => {
rpc(TestService.method.unary, handler);
},
{ transport },
);
await service.unary(TestService.method.unary, undefined, undefined, {}, { value: 9001 });
expect(handler).toBeCalled();
expect(handler.mock.calls[0][1].requestHeader.get("Authorization")).toBe("Bearer mytoken");
});
test("do not overwrite the previous authorization token", async () => {
const handler = vitest.fn((request: Int32Value, context: HandlerContext) => {
return { value: request.value.toString() };
});
const service = createRouterTransport(
({ rpc }) => {
rpc(TestService.method.unary, handler);
},
{ transport },
);
await service.unary(
TestService.method.unary,
undefined,
undefined,
{ Authorization: "Bearer somethingelse" },
{ value: 9001 },
);
expect(handler).toBeCalled();
expect(handler.mock.calls[0][1].requestHeader.get("Authorization")).toBe("Bearer somethingelse");
});
});
@@ -0,0 +1,16 @@
import type { Interceptor } from "@connectrpc/connect";
/**
* Creates an interceptor that adds an Authorization header with a Bearer token.
* @param token
*/
export function NewAuthorizationBearerInterceptor(token: string): Interceptor {
return (next) => (req) => {
// TODO: I am not what is the intent of checking for the Authorization header
// and setting it if it is not present.
if (!req.header.get("Authorization")) {
req.header.set("Authorization", `Bearer ${token}`);
}
return next(req);
};
}
+36
View File
@@ -0,0 +1,36 @@
import { createGrpcTransport, GrpcTransportOptions } from "@connectrpc/connect-node";
import { importPKCS8, SignJWT } from "jose";
import { NewAuthorizationBearerInterceptor } from "./interceptors.js";
/**
* Create a server transport using grpc with the given token and configuration options.
* @param token
* @param opts
*/
export function createServerTransport(token: string, opts: GrpcTransportOptions) {
return createGrpcTransport({
...opts,
interceptors: [...(opts.interceptors || []), NewAuthorizationBearerInterceptor(token)],
});
}
export async function newSystemToken({
audience,
subject,
key,
expirationTime,
}: {
audience: string;
subject: string;
key: string;
expirationTime?: number | string | Date;
}) {
return await new SignJWT({})
.setProtectedHeader({ alg: "RS256" })
.setIssuedAt()
.setExpirationTime(expirationTime ?? "1h")
.setIssuer(subject)
.setSubject(subject)
.setAudience(audience)
.sign(await importPKCS8(key, "RS256"));
}
+11
View File
@@ -0,0 +1,11 @@
import { createClientFor } from "./helpers.js";
import { AdminService } from "@zitadel/proto/zitadel/admin_pb.js";
import { AuthService } from "@zitadel/proto/zitadel/auth_pb.js";
import { ManagementService } from "@zitadel/proto/zitadel/management_pb.js";
import { SystemService } from "@zitadel/proto/zitadel/system_pb.js";
export const createAdminServiceClient = createClientFor(AdminService);
export const createAuthServiceClient = createClientFor(AuthService);
export const createManagementServiceClient = createClientFor(ManagementService);
export const createSystemServiceClient = createClientFor(SystemService);
+27
View File
@@ -0,0 +1,27 @@
import { create } from "@bufbuild/protobuf";
import { FeatureService } from "@zitadel/proto/zitadel/feature/v2/feature_service_pb.js";
import { IdentityProviderService } from "@zitadel/proto/zitadel/idp/v2/idp_service_pb.js";
import { RequestContextSchema } from "@zitadel/proto/zitadel/object/v2/object_pb.js";
import { OIDCService } from "@zitadel/proto/zitadel/oidc/v2/oidc_service_pb.js";
import { OrganizationService } from "@zitadel/proto/zitadel/org/v2/org_service_pb.js";
import { SAMLService } from "@zitadel/proto/zitadel/saml/v2/saml_service_pb.js";
import { SessionService } from "@zitadel/proto/zitadel/session/v2/session_service_pb.js";
import { SettingsService } from "@zitadel/proto/zitadel/settings/v2/settings_service_pb.js";
import { UserService } from "@zitadel/proto/zitadel/user/v2/user_service_pb.js";
import { createClientFor } from "./helpers.js";
export const createUserServiceClient = createClientFor(UserService);
export const createSettingsServiceClient = createClientFor(SettingsService);
export const createSessionServiceClient = createClientFor(SessionService);
export const createOIDCServiceClient = createClientFor(OIDCService);
export const createSAMLServiceClient = createClientFor(SAMLService);
export const createOrganizationServiceClient = createClientFor(OrganizationService);
export const createFeatureServiceClient = createClientFor(FeatureService);
export const createIdpServiceClient = createClientFor(IdentityProviderService);
export function makeReqCtx(orgId: string | undefined) {
return create(RequestContextSchema, {
resourceOwner: orgId ? { case: "orgId", value: orgId } : { case: "instance", value: true },
});
}
@@ -0,0 +1,6 @@
import { ZITADELUsers } from "@zitadel/proto/zitadel/resources/user/v3alpha/user_service_pb.js";
import { ZITADELUserSchemas } from "@zitadel/proto/zitadel/resources/userschema/v3alpha/user_schema_service_pb.js";
import { createClientFor } from "./helpers.js";
export const createUserSchemaServiceClient = createClientFor(ZITADELUserSchemas);
export const createUserServiceClient = createClientFor(ZITADELUsers);
+15
View File
@@ -0,0 +1,15 @@
import { GrpcTransportOptions } from "@connectrpc/connect-node";
import { createGrpcWebTransport } from "@connectrpc/connect-web";
import { NewAuthorizationBearerInterceptor } from "./interceptors.js";
/**
* Create a client transport using grpc web with the given token and configuration options.
* @param token
* @param opts
*/
export function createClientTransport(token: string, opts: GrpcTransportOptions) {
return createGrpcWebTransport({
...opts,
interceptors: [...(opts.interceptors || []), NewAuthorizationBearerInterceptor(token)],
});
}
@@ -0,0 +1,5 @@
{
"extends": "@zitadel/tsconfig/tsup.json",
"include": ["./src/**/*"],
"exclude": ["dist", "build", "node_modules"]
}
@@ -0,0 +1,13 @@
import { defineConfig, Options } from "tsup";
export default defineConfig((options: Options) => ({
entry: ["src/index.ts", "src/v1.ts", "src/v2.ts", "src/v3alpha.ts", "src/node.ts", "src/web.ts"],
format: ["esm", "cjs"],
treeshake: false,
splitting: true,
dts: true,
minify: false,
clean: true,
sourcemap: true,
...options,
}));
+12
View File
@@ -0,0 +1,12 @@
{
"extends": ["//"],
"tasks": {
"build": {
"outputs": ["dist/**"],
"dependsOn": ["@zitadel/proto#generate"]
},
"build:client:standalone": {
"outputs": ["dist/**"]
}
}
}
@@ -0,0 +1,13 @@
# @zitadel/eslint-config
## 0.1.1
### Patch Changes
- README updates
## 0.1.0
### Minor Changes
- f32ab7f: Initial release
@@ -0,0 +1,35 @@
# ZITADEL ESLint Config
This package provides the ESLint configuration used by ZITADEL projects. It includes a set of rules and plugins to ensure consistent code quality and style across all ZITADEL codebases.
## Installation
To install the package, use npm or yarn:
```sh
npm install @zitadel/eslint-config
```
or
```sh
yarn add @zitadel/eslint-config
```
## Usage
To use the ESLint configuration in your project, extend it in your `.eslintrc` file:
```js
{
"extends": "@zitadel/eslint-config"
}
```
## Documentation
For detailed documentation and configuration options, please refer to the [ESLint documentation](https://eslint.org/docs/user-guide/configuring).
## Contributing
Contributions are welcome! Please read the contributing guidelines before getting started.
@@ -0,0 +1,13 @@
module.exports = {
parser: "@babel/eslint-parser",
extends: ["next", "turbo", "prettier"],
rules: {
"@next/next/no-html-link-for-pages": "off",
},
parserOptions: {
requireConfigFile: false,
babelOptions: {
presets: ["next/babel"],
},
},
};
@@ -0,0 +1,17 @@
{
"name": "@zitadel/eslint-config",
"version": "0.1.1",
"main": "index.js",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"dependencies": {
"@typescript-eslint/parser": "^7.9.0",
"eslint-config-next": "^14.2.18",
"eslint-config-prettier": "^9.1.0",
"eslint-config-turbo": "^2.0.9",
"eslint-plugin-react": "^7.34.1",
"@babel/eslint-parser": "^7.25.9"
}
}
@@ -0,0 +1,13 @@
# @zitadel/prettier-config
## 0.1.1
### Patch Changes
- README updates
## 0.1.0
### Minor Changes
- f32ab7f: Initial release
@@ -0,0 +1,36 @@
# ZITADEL Prettier Config
This package provides the Prettier configuration used by ZITADEL projects. It includes a set of formatting rules to ensure consistent code style across all ZITADEL codebases.
## Installation
To install the package, use npm or yarn:
```sh
npm install @zitadel/prettier-config
```
or
```sh
yarn add @zitadel/prettier-config
```
## Usage
To use the Prettier configuration in your project, extend it in your `prettier.config.js` file:
```js
module.exports = {
...require("@zitadel/prettier-config"),
// Add your custom configurations here
};
```
## Documentation
For detailed documentation and configuration options, please refer to the [Prettier documentation](https://prettier.io/docs/en/configuration.html).
## Contributing
Contributions are welcome! Please read the contributing guidelines before getting started.
@@ -0,0 +1,11 @@
export default {
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: true,
singleQuote: false,
trailingComma: 'all',
bracketSpacing: true,
arrowParens: 'always',
plugins: ["prettier-plugin-organize-imports"]
};
@@ -0,0 +1,12 @@
{
"name": "@zitadel/prettier-config",
"version": "0.1.1",
"description": "Prettier configuration",
"type": "module",
"publishConfig": {
"access": "public"
},
"exports": {
".": "./index.js"
}
}
+5
View File
@@ -0,0 +1,5 @@
zitadel
google
protoc-gen-openapiv2
validate
node_modules
+47
View File
@@ -0,0 +1,47 @@
# @zitadel/proto
## 1.2.0
### Minor Changes
- 62ad388: revert CJS support
## 1.1.0
### Minor Changes
- 9692297: add CJS and ESM support
## 1.0.4
### Patch Changes
- 97b0332: bind @zitadel/proto version to zitadel tag
## 1.0.3
### Patch Changes
- 90fbdd1: use node16/nodenext module resolution
## 1.0.2
### Patch Changes
- include validate, google and protoc-gen-openapiv2
## 1.0.1
### Patch Changes
- README updates
## 1.0.0
### Major Changes
- 32e1199: Initial Release
### Minor Changes
- f32ab7f: Initial release
+35
View File
@@ -0,0 +1,35 @@
# ZITADEL Proto
This package provides the Protocol Buffers (proto) definitions used by ZITADEL projects. It includes the proto files and generated code for interacting with ZITADEL's gRPC APIs.
## Installation
To install the package, use npm or yarn:
```sh
npm install @zitadel/proto
```
or
```sh
yarn add @zitadel/proto
```
## Usage
To use the proto definitions in your project, import the generated code:
```ts
import { Organization } from "@zitadel/proto/zitadel/org/v2/org_pb";
const org: Organization | null = await getDefaultOrg();
```
## Documentation
For detailed documentation and API references, please visit the [ZITADEL documentation](https://zitadel.com/docs).
## Contributing
Contributions are welcome! Please read the contributing guidelines before getting started.
+10
View File
@@ -0,0 +1,10 @@
version: v2
managed:
enabled: true
plugins:
- remote: buf.build/bufbuild/es:v2.2.0
out: .
include_imports: true
opt:
- json_types=true
- import_extension=js
+26
View File
@@ -0,0 +1,26 @@
{
"name": "@zitadel/proto",
"version": "1.2.0",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"type": "module",
"files": [
"zitadel/**",
"validate/**",
"google/**",
"protoc-gen-openapiv2/**"
],
"sideEffects": false,
"scripts": {
"generate": "pnpm exec buf generate https://github.com/zitadel/zitadel.git --path ./proto/zitadel",
"clean": "rm -rf zitadel .turbo node_modules google protoc-gen-openapiv2 validate"
},
"dependencies": {
"@bufbuild/protobuf": "^2.2.2"
},
"devDependencies": {
"@bufbuild/buf": "^1.53.0"
}
}
+9
View File
@@ -0,0 +1,9 @@
{
"extends": ["//"],
"tasks": {
"generate": {
"outputs": ["zitadel/**"],
"cache": false
}
}
}
@@ -0,0 +1,13 @@
# @zitadel/tailwind-config
## 0.1.1
### Patch Changes
- README updates
## 0.1.0
### Minor Changes
- f32ab7f: Initial release
@@ -0,0 +1,36 @@
# ZITADEL Tailwind Config
This package provides the Tailwind CSS configuration used by ZITADEL projects. It includes a set of default styles, themes, and utility classes to ensure consistent design and styling across all ZITADEL codebases.
## Installation
To install the package, use npm or yarn:
```sh
npm install @zitadel/tailwind-config
```
or
```sh
yarn add @zitadel/tailwind-config
```
## Usage
To use the Tailwind CSS configuration in your project, extend it in your `tailwind.config.js` file:
```js
module.exports = {
presets: [require("@zitadel/tailwind-config")],
// Add your custom configurations here
};
```
## Documentation
For detailed documentation and configuration options, please refer to the [Tailwind CSS documentation](https://tailwindcss.com/docs)
## Contributing
Contributions are welcome! Please read the contributing guidelines before getting started.
@@ -0,0 +1,12 @@
{
"name": "@zitadel/tailwind-config",
"version": "0.1.1",
"publishConfig": {
"access": "public"
},
"main": "index.js",
"devDependencies": {
"tailwindcss": "^4.1.4",
"@tailwindcss/forms": "0.5.3"
}
}
@@ -0,0 +1,97 @@
import colors from "tailwindcss/colors";
/** @type {import('tailwindcss').Config} */
export default {
content: ["./app/**/*.{js,ts,jsx,tsx}", "./page/**/*.{js,ts,jsx,tsx}", "./ui/**/*.{js,ts,jsx,tsx}"],
future: {
hoverOnlyWhenSupported: true,
},
theme: {
extend: {
// https://vercel.com/design/color
fontSize: {
"12px": "12px",
"14px": "14px",
},
colors: {
gray: colors.zinc,
divider: {
dark: "rgba(135,149,161,.2)",
light: "rgba(135,149,161,.2)",
},
input: {
light: {
label: "#000000c7",
background: "#00000004",
border: "#1a191954",
hoverborder: "1a1b1b",
},
dark: {
label: "#ffffffc7",
background: "#00000020",
border: "#f9f7f775",
hoverborder: "#e0e0e0",
},
},
button: {
light: {
border: "#0000001f",
},
dark: {
border: "#ffffff1f",
},
},
},
backgroundImage: ({ theme }) => ({
"dark-vc-border-gradient": `radial-gradient(at left top, ${theme(
"colors.gray.800",
)}, 50px, ${theme("colors.gray.800")} 50%)`,
"vc-border-gradient": `radial-gradient(at left top, ${theme(
"colors.gray.200",
)}, 50px, ${theme("colors.gray.300")} 50%)`,
}),
keyframes: ({ theme }) => ({
rerender: {
"0%": {
["border-color"]: theme("colors.pink.500"),
},
"40%": {
["border-color"]: theme("colors.pink.500"),
},
},
highlight: {
"0%": {
background: theme("colors.pink.500"),
color: theme("colors.white"),
},
"40%": {
background: theme("colors.pink.500"),
color: theme("colors.white"),
},
},
shimmer: {
"100%": {
transform: "translateX(100%)",
},
},
translateXReset: {
"100%": {
transform: "translateX(0)",
},
},
fadeToTransparent: {
"0%": {
opacity: 1,
},
"40%": {
opacity: 1,
},
"100%": {
opacity: 0,
},
},
}),
},
},
plugins: [require("@tailwindcss/forms")],
};
@@ -0,0 +1,13 @@
# @zitadel/tsconfig
## 0.1.1
### Patch Changes
- README updates
## 0.1.0
### Minor Changes
- f32ab7f: Initial release
+35
View File
@@ -0,0 +1,35 @@
# ZITADEL TypeScript Config
This package provides the TypeScript configuration used by ZITADEL projects. It includes a set of rules and settings to ensure consistent TypeScript configuration across all ZITADEL codebases.
## Installation
To install the package, use npm or yarn:
```sh
npm install @zitadel/tsconfig
```
or
```sh
yarn add @zitadel/tsconfig
```
## Usage
To use the TypeScript configuration in your project, extend it in your `tsconfig.json` file:
```json
{
"extends": "@zitadel/tsconfig/tsup.json"
}
```
## Documentation
For detailed documentation and configuration options, please refer to the [TypeScript documentation](https://www.typescriptlang.org/docs/).
## Contributing
Contributions are welcome! Please read the contributing guidelines before getting started.
+20
View File
@@ -0,0 +1,20 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Default",
"compilerOptions": {
"composite": false,
"declaration": true,
"declarationMap": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"inlineSources": false,
"isolatedModules": true,
"moduleResolution": "node16",
"noUnusedLocals": false,
"noUnusedParameters": false,
"preserveWatchOutput": true,
"skipLibCheck": true,
"strict": true
},
"exclude": ["node_modules"]
}
@@ -0,0 +1,32 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Next.js",
"extends": "./base.json",
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"preserveSymlinks": true,
"declaration": false,
"declarationMap": false,
"baseUrl": ".",
"plugins": [
{
"name": "next"
}
]
},
"include": ["src", "next-env.d.ts"],
"exclude": ["node_modules"]
}
@@ -0,0 +1,10 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Node 20",
"extends": "./base.json",
"compilerOptions": {
"lib": ["es2023"],
"module": "node16",
"target": "es2022"
}
}
@@ -0,0 +1,9 @@
{
"name": "@zitadel/tsconfig",
"version": "0.1.1",
"publishConfig": {
"access": "public"
},
"type": "module",
"license": "MIT"
}
@@ -0,0 +1,11 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "React Library",
"extends": "./base.json",
"compilerOptions": {
"jsx": "react-jsx",
"lib": ["dom", "ES2015"],
"module": "preserve",
"moduleResolution": "Bundler"
}
}
@@ -0,0 +1,5 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "tsup",
"extends": "./node20.json"
}