Skip to content

Commit 1f7c1bc

Browse files
committed
chore: rename npm scope from @tiny-ui to @tiny-design
1 parent a66e078 commit 1f7c1bc

32 files changed

Lines changed: 52 additions & 52 deletions

.changeset/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@
1010
"access": "public",
1111
"baseBranch": "master",
1212
"updateInternalDependencies": "patch",
13-
"ignore": ["@tiny-ui/docs"]
13+
"ignore": ["@tiny-design/docs"]
1414
}

.github/workflows/deploy-site.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
run: pnpm install --frozen-lockfile
3434

3535
- name: Build docs site
36-
run: pnpm --filter @tiny-ui/docs build -- --base /tiny-ui/
36+
run: pnpm --filter @tiny-design/docs build -- --base /tiny-ui/
3737

3838
- name: Copy 404.html for SPA routing
3939
run: cp apps/docs/build/index.html apps/docs/build/404.html

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ pnpm build
3333

3434
```
3535
tiny-ui/
36-
├── packages/react/ # @tiny-ui/react — component library
36+
├── packages/react/ # @tiny-design/react — component library
3737
│ ├── src/ # Component source code
3838
│ ├── scripts/ # Build scripts
3939
│ └── package.json
@@ -83,13 +83,13 @@ your-component/
8383
pnpm test
8484

8585
# Run tests for a specific component
86-
pnpm --filter @tiny-ui/react test -- --testPathPattern=button
86+
pnpm --filter @tiny-design/react test -- --testPathPattern=button
8787

8888
# Update snapshots
89-
pnpm --filter @tiny-ui/react test:update
89+
pnpm --filter @tiny-design/react test:update
9090

9191
# Run with coverage
92-
pnpm --filter @tiny-ui/react test:coverage
92+
pnpm --filter @tiny-design/react test:coverage
9393
```
9494

9595
## Commit Convention
@@ -109,14 +109,14 @@ Examples:
109109

110110
## Adding a Changeset
111111

112-
We use [Changesets](https://github.com/changesets/changesets) to manage versioning and changelogs. If your PR includes user-facing changes to `@tiny-ui/react`, add a changeset:
112+
We use [Changesets](https://github.com/changesets/changesets) to manage versioning and changelogs. If your PR includes user-facing changes to `@tiny-design/react`, add a changeset:
113113

114114
```bash
115115
pnpm changeset
116116
```
117117

118118
You'll be prompted to:
119-
1. Select the package(s) affected (`@tiny-ui/react`)
119+
1. Select the package(s) affected (`@tiny-design/react`)
120120
2. Choose the semver bump type (patch / minor / major)
121121
3. Write a short summary of your change
122122

DEVELOPMENT.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,16 @@ A **pre-commit hook** (husky) runs `lint-staged`, which auto-fixes SCSS via styl
1717
Turborepo handles the dependency graph via `"dependsOn": ["^build"]`:
1818

1919
```
20-
@tiny-ui/tokens → @tiny-ui/react → @tiny-ui/docs
20+
@tiny-design/tokens → @tiny-design/react → @tiny-design/docs
2121
```
2222

2323
Each package's build step:
2424

2525
| Package | Build Steps |
2626
|---------|-------------|
27-
| **@tiny-ui/tokens** | `node scripts/build.js` — sass compiles `scss/base.scss` into `css/base.css` |
28-
| **@tiny-ui/react** | `tsdown` (TS to JS) → `build-styles.js` (copies base.css from tokens, compiles 78 component SCSS files) → `inject-style-imports.js` (adds CSS imports into JS entry files) |
29-
| **@tiny-ui/docs** | `vite build` |
27+
| **@tiny-design/tokens** | `node scripts/build.js` — sass compiles `scss/base.scss` into `css/base.css` |
28+
| **@tiny-design/react** | `tsdown` (TS to JS) → `build-styles.js` (copies base.css from tokens, compiles 78 component SCSS files) → `inject-style-imports.js` (adds CSS imports into JS entry files) |
29+
| **@tiny-design/docs** | `vite build` |
3030

3131
## CI (GitHub Actions)
3232

apps/docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "@tiny-ui/docs",
2+
"name": "@tiny-design/docs",
33
"version": "0.0.0",
44
"private": true,
55
"scripts": {
@@ -8,8 +8,8 @@
88
"preview": "vite preview"
99
},
1010
"dependencies": {
11-
"@tiny-ui/react": "workspace:*",
12-
"@tiny-ui/tokens": "workspace:*",
11+
"@tiny-design/react": "workspace:*",
12+
"@tiny-design/tokens": "workspace:*",
1313
"@mdx-js/react": "^3.1.1",
1414
"react": "^18.2.0",
1515
"react-dom": "^18.2.0",

apps/docs/src/components/code-block/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ Prism.languages.bash = Prism.languages.shell = {
2323
};
2424
import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live';
2525
import { LightCodeTheme, DarkCodeTheme } from './code-theme';
26-
import * as Components from '@tiny-ui/react';
27-
import CollapseTransition from '@tiny-ui/react/collapse-transition';
28-
import { useTheme } from '@tiny-ui/react';
26+
import * as Components from '@tiny-design/react';
27+
import CollapseTransition from '@tiny-design/react/collapse-transition';
28+
import { useTheme } from '@tiny-design/react';
2929
import { useLocaleContext } from '../../context/locale-context';
3030

3131
type Props = {

apps/docs/src/components/doc-footer/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import './component-page.scss';
33
import { Link, useLocation } from 'react-router-dom';
44
import { RouterItem } from '../../routers';
5-
import { Icon } from '@tiny-ui/react';
5+
import { Icon } from '@tiny-design/react';
66

77
type Props = {
88
routers: RouterItem[];

apps/docs/src/components/feature-block/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import './feature-block.scss';
3-
import { Icon } from '@tiny-ui/react';
3+
import { Icon } from '@tiny-design/react';
44

55
type Props = {
66
icon: string;

apps/docs/src/components/header/color-customizer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, { useEffect, useState } from 'react';
2-
import { ColorPicker } from '@tiny-ui/react';
3-
import { hexToHsb, hsbToHex } from '@tiny-ui/react/color-picker/utils';
2+
import { ColorPicker } from '@tiny-design/react';
3+
import { hexToHsb, hsbToHex } from '@tiny-design/react/color-picker/utils';
44

55
const STORAGE_KEY = 'ty-primary-color';
66
const DEFAULT_COLOR = '#6e41bf';

apps/docs/src/components/header/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import React from 'react';
22
import './header.scss';
33
import { NavLink } from 'react-router-dom';
44
import pkg from '../../../../../packages/react/package.json';
5-
import { Icon, Link } from '@tiny-ui/react';
5+
import { Icon, Link } from '@tiny-design/react';
66
import { useSidebarToggle } from '../../context/sidebar-toggle-context';
77
import { useLocaleContext } from '../../context/locale-context';
88
import { ThemeToggle } from './theme-toggle';

0 commit comments

Comments
 (0)