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
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ web_modules/
# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache
Expand Down
4 changes: 2 additions & 2 deletions configs/renovate-config/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,15 @@
},
{
"description": "TypeScript and related packages",
"matchPackageNames": ["typescript", "@types/*", "ts-node", "tsx", "tsup"],
"matchPackageNames": ["typescript", "@types/*", "ts-node", "tsx", "@rslib/*", "@rsbuild/*"],
"matchUpdateTypes": ["minor", "patch"],
"labels": ["dependencies", "renovate", "typescript", "priority-medium"],
"commitMessagePrefix": "chore(typescript):",
"groupName": "TypeScript packages"
},
{
"description": "Major TypeScript and related packages - manual review",
"matchPackageNames": ["typescript", "@types/*", "ts-node", "tsx", "tsup"],
"matchPackageNames": ["typescript", "@types/*", "ts-node", "tsx", "@rslib/*", "@rsbuild/*"],
"matchUpdateTypes": ["major"],
"labels": ["dependencies", "renovate", "major-update", "typescript", "priority-high"],
"automerge": false,
Expand Down
2 changes: 1 addition & 1 deletion docs/ADDING_PACKAGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Use an existing sibling package as a template. Here are the critical fields:

## Step 3 — Add Package Content

Write your config files, source code, or whatever the package exports. For a config package, the entry point is usually a JSON file. For code packages, add a `tsup` build target (copy from `packages/components`).
Write your config files, source code, or whatever the package exports. For a config package, the entry point is usually a JSON file. For code packages, add a `rslib` build target (copy from `packages/components`).

## Step 4 — Create the Baseline Git Tag

Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
"build": "nx run-many -t build",
"release": "nx release",
"lint": "biome check .",
"eslint": "nx run-many -t eslint",
"eslint:fix": "nx run-many -t eslint --fix",
"lint:fix": "biome check --no-errors-on-unmatched --write .",
"lint:staged": "biome check --no-errors-on-unmatched --staged .",
"lint:ci": "biome ci --no-errors-on-unmatched .",
Expand All @@ -25,12 +23,15 @@
"@biomejs/biome": "^2.4.16",
"@commitlint/cli": "^21.0.2",
"@commitlint/config-conventional": "^21.0.2",
"@microsoft/api-extractor": "^7.58.7",
"@nx/js": "22.7.5",
"@tutods/renovate-config": "workspace:*",
"@rsbuild/plugin-react": "^2.0.1",
"@rslib/core": "^0.22.0",
"@swc-node/register": "~1.11.1",
"@swc/core": "~1.15.40",
"@swc/helpers": "~0.5.22",
"@tutods/biome-config": "workspace:*",
"@tutods/renovate-config": "workspace:*",
"@types/node": "25.9.1",
"@types/react": "^19.2.16",
"@types/react-dom": "^19.2.3",
Expand All @@ -40,7 +41,6 @@
"react-dom": "^19.2.7",
"renovate": "^43.212.4",
"tslib": "^2.8.1",
"tsup": "^8.5.1",
"typescript": "~6.0.3"
}
}
23 changes: 0 additions & 23 deletions packages/components/eslint.config.js

This file was deleted.

10 changes: 3 additions & 7 deletions packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,16 @@
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.js"
}
}
},
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"module": "./dist/index.mjs",
"module": "./dist/index.js",
"scripts": {
"dev": "tsup --watch",
"build": "tsup"
"dev": "rslib build --watch",
"build": "rslib build"
},
"devDependencies": {
"@tutods/typescript-config": "0.7.1"
Expand Down
20 changes: 20 additions & 0 deletions packages/components/rslib.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { pluginReact } from '@rsbuild/plugin-react';
import { defineConfig } from '@rslib/core';

export default defineConfig({
lib: [
{
format: 'esm',
dts: { bundle: true },
},
],
plugins: [pluginReact()],
source: {
entry: {
index: './src/index.ts',
},
},
output: {
target: 'web',
},
});
2 changes: 1 addition & 1 deletion packages/components/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"compilerOptions": {
"ignoreDeprecations": "6.0"
},
"include": ["src", "tsup.config.ts"]
"include": ["src", "rslib.config.ts"]
}
12 changes: 0 additions & 12 deletions packages/components/tsup.config.ts

This file was deleted.

Loading
Loading