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
8 changes: 4 additions & 4 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This document provides essential information about the `packages-private` reposi

## Repository Overview

This is a **TypeScript monorepo** managed with **pnpm workspaces** and **Turbo**. It contains various utility packages, tools, and libraries created by Patrick Kerschbaum (@pkerschbaum).
This is a **TypeScript monorepo** managed with **pnpm workspaces** and **Turbo**. It contains various utility packages, tools, and libraries created by Patrick Kerschbaum (@patricktree).

### Key Technologies

Expand Down Expand Up @@ -113,15 +113,15 @@ The root `tsconfig.json` contains references to all packages for TypeScript proj

- Packages under `packages/` are published to npm
- Uses Changesets for version management
- Public packages use `@pkerschbaum/` scope
- Public packages use `@patricktree/` scope

## Special Considerations

### TypeScript Patching

The repository uses a patched version of TypeScript to support custom transformers. We use the custom transformer (plugin) [`typescript-transform-paths`](https://github.com/LeDDGroup/typescript-transform-paths) in our TypeScript codebase. This enables authoring TypeScript sources with path aliases but during TypeScript compilation, they are replaced by relative paths. That avoids all sorts of difficulties supporting path aliases in Node.js, Next.js, etc.

Such custom transformers (plugins) are not supported by TypeScript out-of-the-box, so we apply [`ts-patch`](https://github.com/nonara/ts-patch) to the `typescript` package. To better incorporate with pnpm (<https://github.com/pnpm/pnpm/issues/6111>) we create a pnpm patch via `ts-patch`, using [`@pkerschbaum/pkg-management`](https://www.npmjs.com/package/@pkerschbaum/pkg-management).
Such custom transformers (plugins) are not supported by TypeScript out-of-the-box, so we apply [`ts-patch`](https://github.com/nonara/ts-patch) to the `typescript` package. To better incorporate with pnpm (<https://github.com/pnpm/pnpm/issues/6111>) we create a pnpm patch via `ts-patch`, using [`@patricktree/pkg-management`](https://www.npmjs.com/package/@patricktree/pkg-management).

When updating TypeScript to a new version, this procedure is required:

Expand All @@ -140,7 +140,7 @@ When updating TypeScript to a new version, this procedure is required:
3. Run:

```bash
pnpm --package="@pkerschbaum/pkg-management@2.1.0" dlx create-pnpm-patch-via-ts-patch \
pnpm --package="@patricktree/pkg-management@2.1.0" dlx create-pnpm-patch-via-ts-patch \
--typescript-version=5.6.3 \ # <-- new version of `typescript` here
--ts-patch-version=3.3.0 # <-- latest version of `ts-patch` here
```
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pkerschbaum OSS <!-- omit in toc -->
# patricktree OSS <!-- omit in toc -->

- [Development](#development)
- [Prerequisites](#prerequisites)
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "pkerschbaum",
"name": "patricktree",
"private": true,
"scripts": {
"build": "superturbo build",
"changeset": "changeset",
"create-pnpm-patch-via-ts-patch": "pnpm --filter=\"@pkerschbaum/pkg-management\" exec node ./dist/create-pnpm-patch-via-ts-patch.mjs --typescript-version=5.5.4 --ts-patch-version=3.2.1",
"create-pnpm-patch-via-ts-patch": "pnpm --filter=\"@patricktree/pkg-management\" exec node ./dist/create-pnpm-patch-via-ts-patch.mjs --typescript-version=5.5.4 --ts-patch-version=3.2.1",
"format": "prettier --write --ignore-unknown .",
"lint": "superturbo lint",
"lint:fix": "superturbo lint:fix",
Expand All @@ -16,10 +16,10 @@
},
"devDependencies": {
"@changesets/cli": "^2.27.8",
"@pkerschbaum/config-eslint": "workspace:*",
"@pkerschbaum/config-typescript": "workspace:*",
"@patricktree/config-eslint": "workspace:*",
"@patricktree/config-typescript": "workspace:*",
"@patricktree/superturbo": "workspace:*",
"@pkerschbaum/pkg-management": "^2.1.0",
"@pkerschbaum/superturbo": "workspace:*",
"@typescript-eslint/eslint-plugin": "^8.26.1",
"@typescript-eslint/parser": "^8.26.1",
"del-cli": "^5.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/CLAUDE.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Packages Directory

This directory contains the main packages that are published to npm under the `@pkerschbaum/` scope.
This directory contains the main packages that are published to npm under the `@patricktree/` scope.

## Package Categories

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const baseEslintConfig = require('@pkerschbaum/config-eslint/eslint-ecma.cjs');
const baseEslintConfig = require('@patricktree/config-eslint/eslint-ecma.cjs');

module.exports = {
...baseEslintConfig,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# @pkerschbaum/codemod-rewrite-module-specifiers-to-full-paths
# @patricktree/codemod-rewrite-module-specifiers-to-full-paths

## 1.0.1

### Patch Changes

- 3f52b98: fix(codemod-rewrite-module-specifiers-to-full-paths): make `@pkerschbaum/runtime-extensions-node` a dev dependency
- 3f52b98: fix(codemod-rewrite-module-specifiers-to-full-paths): make `@patricktree/runtime-extensions-node` a dev dependency

## 1.0.0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# `@pkerschbaum/codemod-rewrite-module-specifiers-to-full-paths`
# `@patricktree/codemod-rewrite-module-specifiers-to-full-paths`

Codemod to rewrite module specifiers of TypeScript files to their full paths.

Expand All @@ -25,7 +25,7 @@ This package is a codemod which consumes a TypeScript configuration file and rew
## How to use

```bash
npx @pkerschbaum/codemod-rewrite-module-specifiers-to-full-paths --help
npx @patricktree/codemod-rewrite-module-specifiers-to-full-paths --help

# Usage: codemod [options]

Expand All @@ -36,5 +36,5 @@ npx @pkerschbaum/codemod-rewrite-module-specifiers-to-full-paths --help
# -h, --help display help for command

# for example
npx @pkerschbaum/codemod-rewrite-module-specifiers-to-full-paths --project=./path/to/tsconfig.json
npx @patricktree/codemod-rewrite-module-specifiers-to-full-paths --project=./path/to/tsconfig.json
```
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@pkerschbaum/codemod-rewrite-module-specifiers-to-full-paths",
"name": "@patricktree/codemod-rewrite-module-specifiers-to-full-paths",
"version": "1.0.1",
"homepage": "https://github.com/pkerschbaum/packages/tree/main/packages/codemod-rewrite-module-specifiers-to-full-paths",
"homepage": "https://github.com/patricktree/packages/tree/main/packages/codemod-rewrite-module-specifiers-to-full-paths",
"bugs": {
"url": "https://github.com/pkerschbaum/packages/issues"
"url": "https://github.com/patricktree/packages/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/pkerschbaum/packages",
"url": "https://github.com/patricktree/packages",
"directory": "packages/codemod-rewrite-module-specifiers-to-full-paths"
},
"license": "MIT",
Expand Down Expand Up @@ -41,16 +41,16 @@
},
"dependencies": {
"@commander-js/extra-typings": "^12.1.0",
"@pkerschbaum/commons-ecma": "workspace:*",
"@pkerschbaum/commons-node": "workspace:*",
"@patricktree/commons-ecma": "workspace:*",
"@patricktree/commons-node": "workspace:*",
"commander": "^12.1.0",
"jscodeshift": "^17.0.0",
"p-limit": "^6.1.0",
"tiny-invariant": "^1.3.3",
"typescript": "^5.8.2"
},
"devDependencies": {
"@pkerschbaum/runtime-extensions-node": "workspace:*",
"@patricktree/runtime-extensions-node": "workspace:*",
"@types/jscodeshift": "^0.11.11",
"@types/node": "^20",
"@vitest/coverage-v8": "^2.0.5",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
import '@pkerschbaum/runtime-extensions-node';
import '@patricktree/runtime-extensions-node';
import '#pkg/bin/codemod.js';
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import path from 'node:path';
import invariant from 'tiny-invariant';
import ts from 'typescript';

import { fsUtils } from '@pkerschbaum/commons-node/utils/fs';
import { fsUtils } from '@patricktree/commons-node/utils/fs';

export type TypeScriptProgram = {
compilerOptions: ts.CompilerOptions;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@pkerschbaum/config-typescript/tsconfig.json",
"extends": "@patricktree/config-typescript/tsconfig.json",
"compilerOptions": {
/* Modules */
"module": "node16",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons-ecma/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const baseEslintConfig = require('@pkerschbaum/config-eslint/eslint-ecma.cjs');
const baseEslintConfig = require('@patricktree/config-eslint/eslint-ecma.cjs');

module.exports = {
...baseEslintConfig,
Expand Down
4 changes: 2 additions & 2 deletions packages/commons-ecma/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @pkerschbaum/commons-ecma
# @patricktree/commons-ecma

## 2.4.1

Expand Down Expand Up @@ -53,4 +53,4 @@

### Major Changes

- initial version (extracted from https://github.com/pkerschbaum/pkerschbaum-homepage)
- initial version (extracted from https://github.com/patricktree/patricktree-homepage)
8 changes: 4 additions & 4 deletions packages/commons-ecma/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@pkerschbaum/commons-ecma",
"name": "@patricktree/commons-ecma",
"version": "2.4.1",
"homepage": "https://github.com/pkerschbaum/packages/tree/main/packages/commons-ecma",
"homepage": "https://github.com/patricktree/packages/tree/main/packages/commons-ecma",
"bugs": {
"url": "https://github.com/pkerschbaum/packages/issues"
"url": "https://github.com/patricktree/packages/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/pkerschbaum/packages",
"url": "https://github.com/patricktree/packages",
"directory": "packages/commons-ecma"
},
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons-ecma/tsconfig.project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@pkerschbaum/config-typescript/tsconfig.json",
"extends": "@patricktree/config-typescript/tsconfig.json",
"compilerOptions": {
/* Modules */
"module": "CommonJS",
Expand Down
2 changes: 1 addition & 1 deletion packages/commons-node/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const baseEslintConfig = require('@pkerschbaum/config-eslint/eslint-ecma.cjs');
const baseEslintConfig = require('@patricktree/config-eslint/eslint-ecma.cjs');

module.exports = {
...baseEslintConfig,
Expand Down
12 changes: 6 additions & 6 deletions packages/commons-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @pkerschbaum/commons-node
# @patricktree/commons-node

## 2.2.0

Expand All @@ -10,22 +10,22 @@

- f43b99b: chore(deps): bump all deps to latest and apply ESLint fixes
- Updated dependencies [f43b99b]
- @pkerschbaum/commons-ecma@2.4.1
- @patricktree/commons-ecma@2.4.1

## 2.1.2

### Patch Changes

- defe2b1: Revert "refactor: use verbatimModuleSyntax for CJS modules"
- Updated dependencies [defe2b1]
- @pkerschbaum/commons-ecma@2.1.2
- @patricktree/commons-ecma@2.1.2

## 2.1.1

### Patch Changes

- Updated dependencies [8aa8641]
- @pkerschbaum/commons-ecma@2.1.1
- @patricktree/commons-ecma@2.1.1

## 2.1.0

Expand All @@ -36,7 +36,7 @@
### Patch Changes

- Updated dependencies [98c3b5e]
- @pkerschbaum/commons-ecma@2.1.0
- @patricktree/commons-ecma@2.1.0

## 2.0.0

Expand All @@ -54,4 +54,4 @@

### Major Changes

- initial version (extracted from https://github.com/pkerschbaum/pkerschbaum-homepage)
- initial version (extracted from https://github.com/patricktree/patricktree-homepage)
10 changes: 5 additions & 5 deletions packages/commons-node/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "@pkerschbaum/commons-node",
"name": "@patricktree/commons-node",
"version": "2.2.0",
"homepage": "https://github.com/pkerschbaum/packages/tree/main/packages/commons-node",
"homepage": "https://github.com/patricktree/packages/tree/main/packages/commons-node",
"bugs": {
"url": "https://github.com/pkerschbaum/packages/issues"
"url": "https://github.com/patricktree/packages/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/pkerschbaum/packages",
"url": "https://github.com/patricktree/packages",
"directory": "packages/commons-node"
},
"license": "MIT",
Expand Down Expand Up @@ -38,7 +38,7 @@
"nuke:artifacts": "del-cli dist \"*.tsbuildinfo\""
},
"dependencies": {
"@pkerschbaum/commons-ecma": "workspace:^"
"@patricktree/commons-ecma": "workspace:^"
},
"devDependencies": {
"@types/node": "^20"
Expand Down
2 changes: 1 addition & 1 deletion packages/commons-node/src/utils/fs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import fs from 'node:fs';
import os from 'node:os';
import path from 'node:path';

import { check } from '@pkerschbaum/commons-ecma/util/assert';
import { check } from '@patricktree/commons-ecma/util/assert';

export const fsUtils = {
createTemporaryDirectory,
Expand Down
2 changes: 1 addition & 1 deletion packages/commons-node/tsconfig.project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@pkerschbaum/config-typescript/tsconfig.json",
"extends": "@patricktree/config-typescript/tsconfig.json",
"compilerOptions": {
/* Modules */
"module": "CommonJS",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-code-import-patterns/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const baseEslintConfig = require('@pkerschbaum/config-eslint/eslint-ecma.cjs');
const baseEslintConfig = require('@patricktree/config-eslint/eslint-ecma.cjs');

module.exports = {
...baseEslintConfig,
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-code-import-patterns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ It can be used to:

Since the rule uses JavaScript regexes for the zones `target` parameters, the rule can currently only be used in ESLint JavaScript configurations (`.eslintrc.js`).

> If you need support for JSON/YAML configurations, feel free to reach out by [creating an issue](https://github.com/pkerschbaum/eslint-plugin-code-import-patterns/issues)!
> If you need support for JSON/YAML configurations, feel free to reach out by [creating an issue](https://github.com/patricktree/eslint-plugin-code-import-patterns/issues)!

```javascript
module.exports = {
Expand Down
6 changes: 3 additions & 3 deletions packages/eslint-plugin-code-import-patterns/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
"code-import-patterns",
"modules"
],
"homepage": "https://github.com/pkerschbaum/packages/tree/main/packages/eslint-plugin-code-import-patterns",
"homepage": "https://github.com/patricktree/packages/tree/main/packages/eslint-plugin-code-import-patterns",
"bugs": {
"url": "https://github.com/pkerschbaum/packages/issues"
"url": "https://github.com/patricktree/packages/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/pkerschbaum/packages",
"url": "https://github.com/patricktree/packages",
"directory": "packages/eslint-plugin-code-import-patterns"
},
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"extends": "@pkerschbaum/config-typescript/tsconfig.json",
"extends": "@patricktree/config-typescript/tsconfig.json",
"compilerOptions": {
/* Modules */
"module": "CommonJS",
Expand Down
2 changes: 1 addition & 1 deletion packages/fetch-favicon/.eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const baseEslintConfig = require('@pkerschbaum/config-eslint/eslint-ecma.cjs');
const baseEslintConfig = require('@patricktree/config-eslint/eslint-ecma.cjs');

module.exports = {
...baseEslintConfig,
Expand Down
Loading
Loading