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
58 changes: 58 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
## Project Context

A TypeScript project using React. Contains 26 files across 6 directories.

## Stack

**Frameworks & Tools:**
- Vite (build)
- React (web)
- Vitest (testing)
- tsup (build)
- esbuild (build)

## Commands

```bash
pnpm dev # dev
pnpm build # build
pnpm build:example # build:example
pnpm test # test
pnpm test:watch # test:watch
pnpm test:ci # test:ci
```

## Conventions

- **Naming**: camelCase
- **File organization**: flat
- **Config files**: tsconfig.json
- **CI/CD**: .github/workflows/tests.yml

## Architecture

**Entry points:** src/index.tsx

**Key directories:**
- `example/`
- `src/` - Source code

## Boundaries

**Always:**
- Use pnpm, not npm or yarn
- Run `pnpm test` before committing changes
- Follow camelCase naming convention
- Follow flat file organization

**Ask first:**
- Adding new dependencies
- Changing project configuration files
- Modifying CI/CD pipelines

**Never:**
- Commit secrets, API keys, or .env files
- Delete or overwrite test files without understanding them
- Force push to main/master branch

<!-- agentseed:meta {"sha":"4396e24e461489ba6797a646354a71f2bd77ece7","timestamp":"2026-02-18T14:12:41.668Z","format":"agentseed-v1"} -->
1 change: 1 addition & 0 deletions CLAUDE.md
34 changes: 34 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"quoteStyle": "double",
"trailingCommas": "all"
}
},
"files": {
"ignore": ["dist/**", "**/node_modules/**"]
}
}
21 changes: 10 additions & 11 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,21 @@
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"format": "prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
"lint": "prettier --check \"src/**/*.{js,jsx,ts,tsx}\""
"format": "biome format --write src/",
"lint": "biome check src/"
},
"dependencies": {
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"react-select": "^5.8.0",
"spacetime": "^7.5.0",
"spacetime": "^7.12.0",
"spacetime-informal": "^0.6.1"
},
"devDependencies": {
"@types/react": "^18.2.48",
"@types/react-dom": "^18.2.18",
"@vitejs/plugin-react": "^4.2.1",
"prettier": "^3.2.4",
"typescript": "^5.3.3",
"vite": "^5.0.12"
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.4",
"typescript": "^5.9.3",
"vite": "^7.3.1"
}
}
7 changes: 3 additions & 4 deletions example/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"compilerOptions": {
"module": "esnext",
"target": "esnext",
"moduleResolution": "node",
"jsx": "react",
"moduleResolution": "bundler",
"jsx": "react-jsx",
"baseUrl": "./",
"paths": {
"*": ["../../src"]
Expand All @@ -15,7 +15,6 @@
"lib": ["dom", "dom.iterable", "esnext"],
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"importsNotUsedAsValues": "error"
"allowSyntheticDefaultImports": true
}
}
104 changes: 31 additions & 73 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
{
"name": "react-timezone-select",
"version": "3.2.8",
"version": "3.3.1",
"description": "Usable, dynamic React Timezone Select",
"scripts": {
"dev": "concurrently \"tsup src/index.tsx --format esm --watch\" \"cd example && pnpm dev\"",
"dev": "concurrently \"tsup --watch\" \"cd example && pnpm dev\"",
"prepublishOnly": "pnpm run build",
"postpublish": "pnpm run build:example && npm run deploy",
"build": "tsup src/index.tsx --format esm --clean --dts && sed -i '1i \"use client\"\\n' dist/index.js",
"build": "tsup",
"build:example": "cd example && pnpm run build",
"deploy": "gh-pages -d example/dist",
"pretest": "pnpm run build",
"test": "vitest",
"test:watch": "vitest --watch",
"test:ci": "pnpm run build && pnpm test",
"tsc": "tsc"
"tsc": "tsc",
"lint": "biome lint",
"lint:fix": "biome lint --fix",
"format": "biome check",
"format:fix": "biome check --write"
},
"author": "Nico Domino <yo@ndo.dev>",
"homepage": "https://github.com/ndom91/react-timezone-select",
Expand All @@ -25,16 +29,8 @@
"url": "https://github.com/ndom91/react-timezone-select/issues"
},
"license": "MIT",
"keywords": [
"react",
"timezone",
"select",
"react-select"
],
"files": [
"dist/**/*",
"package.json"
],
"keywords": ["react", "timezone", "select", "react-select"],
"files": ["dist/**/*", "package.json"],
"type": "module",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand All @@ -45,71 +41,33 @@
}
},
"peerDependencies": {
"react": "^16 || ^17.0.1 || ^18 || ^19.0.0-0",
"react-dom": "^16 || ^17.0.1 || ^18 || ^19.0.0-0",
"react": "^16 || ^17.0.1 || ^18 || ^19",
"react-dom": "^16 || ^17.0.1 || ^18 || ^19",
"react-select": "^5.8.0"
},
"dependencies": {
"spacetime": "^7.6.0",
"spacetime": "^7.12.0",
"timezone-soft": "^1.5.2"
},
"devDependencies": {
"@babel/core": "^7.24.9",
"@testing-library/jest-dom": "^6.4.8",
"@testing-library/react": "^16.0.0",
"@types/jest": "^29.5.12",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/testing-library__jest-dom": "^5.14.9",
"@typescript-eslint/eslint-plugin": "^7.17.0",
"@typescript-eslint/parser": "^7.17.0",
"@vitejs/plugin-react": "^4.3.1",
"concurrently": "^8.2.2",
"esbuild": "^0.23.0",
"esbuild-jest": "^0.5.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "5.2.1",
"gh-pages": "^6.1.1",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.3.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"simple-git-hooks": "^2.11.1",
"ts-jest": "^29.2.3",
"tsup": "^8.2.2",
"typescript": "^5.5.4",
"vite": "^5.3.4",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^2.0.4"
},
"eslintConfig": {
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended"
],
"plugins": [
"@typescript-eslint"
],
"root": true
},
"prettier": {
"semi": false,
"printWidth": 100
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"eslint --fix"
]
"@biomejs/biome": "^1.9.4",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.2",
"@types/node": "^20.19.0",
"@types/react": "^19.2.14",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.4",
"concurrently": "^9.2.1",
"esbuild": "^0.27.3",
"gh-pages": "^6.3.0",
"jsdom": "^26.1.0",
"react": "^19.2.4",
"react-dom": "^19.2.4",
"tsup": "^8.5.1",
"typescript": "^5.9.3",
"vite": "^7.3.1",
"vite-tsconfig-paths": "^6.1.1",
"vitest": "^4.0.18"
},
"packageManager": "pnpm@9.0.6+sha256.0624e30eff866cdeb363b15061bdb7fd9425b17bc1bb42c22f5f4efdea21f6b3"
}
Loading