Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 15 additions & 16 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
uses: ./.github/actions/setup
with:
node-version: 24.10.0
- run: pnpm check
- run: pnpm check:tsgo

# TODO: discuss with Sebastian whether we should add Deno / Bun configuration / checks
# types-deno:
Expand Down Expand Up @@ -89,18 +89,17 @@ jobs:
if: matrix.runtime == 'Deno'
run: deno task test --shard ${{ matrix.shard }}

# TODO: discuss with Sebastian whether we want circularity checks
# circular:
# name: Circular Dependencies
# runs-on: ubuntu-latest
# permissions:
# contents: read
# timeout-minutes: 10
# steps:
# - uses: actions/checkout@v4
# - name: Install dependencies
# uses: ./.github/actions/setup
# with:
# node-version: 24.10.0
# - name: Check for circular dependencies
# run: pnpm circular
circular:
name: Circular Dependencies
runs-on: ubuntu-latest
permissions:
contents: read
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- name: Install dependencies
uses: ./.github/actions/setup
with:
node-version: 24.10.0
- name: Check for circular dependencies
run: pnpm circular
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dprint.path": "node_modules/dprint/dprint",
"dprint.path": "node_modules/.bin/dprint",
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.preferences.importModuleSpecifier": "relative",
"typescript.enablePromptUseWorkspaceTsdk": true,
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@
"type": "module",
"packageManager": "pnpm@10.25.0+sha512.5e82639027af37cf832061bcc6d639c219634488e0f2baebe785028a793de7b525ffcd3f7ff574f5e9860654e098fe852ba8ac5dd5cefe1767d23a020a92f501",
"scripts": {
"build": "tspc -b tsconfig.packages.json && pnpm --recursive --parallel --filter \"./packages/**/*\" run build",
"build:tsgo": "tsgo -b tsconfig.packages.json && pnpm --recursive --parallel --filter \"./packages/**/*\" run build:tsgo",
"check": "tspc -b tsconfig.json",
"check:tsgo": "tsgo -b tsconfig.json",
"check:recursive": "pnpm --recursive --filter \"./packages/**/*\" exec tspc -b tsconfig.json",
"circular": "node scripts/circular.mjs",
"clean": "node scripts/clean.mjs",
"lint": "oxlint && dprint check",
"lint-fix": "oxlint --fix && dprint fmt",
"lint:fix": "oxlint --fix && dprint fmt",
"test": "vitest"
},
"devDependencies": {
Expand All @@ -15,12 +20,14 @@
"@effect/platform-node": "^0.104.0",
"@effect/vitest": "^0.27.0",
"@types/node": "^25.0.3",
"@typescript/native-preview": "7.0.0-dev.20260115.1",
"@vitest/coverage-v8": "^4.0.16",
"@vitest/ui": "^4.0.16",
"dprint": "^0.51.1",
"effect": "^3.19.13",
"glob": "^13.0.0",
"globals": "^16.5.0",
"madge": "^8.0.0",
"oxlint": "^1.38.0",
"ts-patch": "^3.3.0",
"typescript": "^5.9.3",
Expand Down
8 changes: 8 additions & 0 deletions packages/amp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@
"./internal/*.ts": null
}
},
"scripts": {
"build": "tsc -b tsconfig.json && pnpm babel",
"build:tsgo": "tsgo -b tsconfig.json && pnpm babel",
"babel": "babel dist --plugins annotate-pure-calls --out-dir dist --source-maps",
"check": "tsc -b tsconfig.json",
"test": "vitest",
"coverage": "vitest --coverage"
},
"peerDependencies": {
"@bufbuild/protobuf": "^2.10.1",
"@connectrpc/connect": "^2.1.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/amp/src/AdminApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import * as HttpApiError from "@effect/platform/HttpApiError"
import * as HttpApiGroup from "@effect/platform/HttpApiGroup"
import * as HttpApiSchema from "@effect/platform/HttpApiSchema"
import * as HttpClient from "@effect/platform/HttpClient"
import * as HttpClientError from "@effect/platform/HttpClientError"
import type * as HttpClientError from "@effect/platform/HttpClientError"
import * as HttpClientRequest from "@effect/platform/HttpClientRequest"
import * as KeyValueStore from "@effect/platform/KeyValueStore"
import type * as KeyValueStore from "@effect/platform/KeyValueStore"
import * as Context from "effect/Context"
import * as Effect from "effect/Effect"
import { constUndefined } from "effect/Function"
Expand Down
11 changes: 0 additions & 11 deletions packages/amp/tsconfig.build.json

This file was deleted.

10 changes: 5 additions & 5 deletions packages/amp/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../../tsconfig.base.json",
"include": [],
"references": [
{ "path": "tsconfig.src.json" },
{ "path": "tsconfig.test.json" }
]
"include": ["src"],
"references": [],
"compilerOptions": {
"types": ["node"]
}
}
12 changes: 0 additions & 12 deletions packages/amp/tsconfig.src.json

This file was deleted.

23 changes: 0 additions & 23 deletions packages/amp/tsconfig.test.json

This file was deleted.

46 changes: 20 additions & 26 deletions packages/tools/oxc/oxlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@
},
"rules": {
// Effect custom rules
"effect/no-import-from-barrel-package": [
"error",
{
"checkPatterns": [
"^effect$",
"^effect/(.+/)?[a-z][a-z0-9]*$",
"^@effect/[^/]+$",
"^@effect/[^/]+/(.+/)?[a-z][a-z0-9]*$"
],
"checkRelativeIndexImports": true
}
],
"effect/no-import-from-barrel-package": ["error", {
"checkPatterns": [
"^effect$",
"^effect/(.+/)?[a-z][a-z0-9]*$",
"^@effect/[^/]+$",
"^@effect/[^/]+/(.+/)?[a-z][a-z0-9]*$"
],
"checkRelativeIndexImports": true
}],
"effect/no-js-extension-imports": "error",
"effect/no-opaque-instance-fields": "error",
// Tune native rules
// Import rules
"typescript/consistent-type-imports": ["error", {
"fixStyle": "inline-type-imports"
}],
"typescript/no-import-type-side-effects": "error",
"import/no-duplicates": "error",
"import/no-self-import": "error",
Expand Down Expand Up @@ -67,19 +67,13 @@
"typescript/unified-signatures": "off",
"typescript/no-empty-object-type": "off",
"typescript/no-confusing-non-null-assertion": "off",
"typescript/array-type": [
"error",
{
"default": "generic",
"readonly": "generic"
}
],
"typescript/no-unused-vars": [
"error",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
]
"typescript/array-type": ["error", {
"default": "generic",
"readonly": "generic"
}],
"typescript/no-unused-vars": ["error", {
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}]
}
}
4 changes: 3 additions & 1 deletion packages/tools/oxc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@
}
},
"scripts": {
"build": "tsc -b tsconfig.build.json && pnpm babel",
"build": "tsc -b tsconfig.json && pnpm babel",
"build:tsgo": "tsgo -b tsconfig.json && pnpm babel",
"babel": "babel dist --plugins annotate-pure-calls --out-dir dist --source-maps",
"check": "tsc -b tsconfig.json",
"test": "vitest",
"coverage": "vitest --coverage"
Expand Down
10 changes: 0 additions & 10 deletions packages/tools/oxc/tsconfig.build.json

This file was deleted.

9 changes: 4 additions & 5 deletions packages/tools/oxc/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"$schema": "http://json.schemastore.org/tsconfig",
"extends": "../../../tsconfig.base.json",
"include": [],
"references": [
{ "path": "tsconfig.src.json" },
{ "path": "tsconfig.test.json" }
]
"include": ["src"],
"compilerOptions": {
"types": ["node"]
}
}
11 changes: 0 additions & 11 deletions packages/tools/oxc/tsconfig.src.json

This file was deleted.

17 changes: 0 additions & 17 deletions packages/tools/oxc/tsconfig.test.json

This file was deleted.

Loading