Skip to content

Commit cf2dade

Browse files
takumi0hclaude
andcommitted
refactor: modernize tooling and build system
- Migrate from npm to pnpm - Replace CircleCI with GitHub Actions - Replace ESLint + Prettier with oxlint + oxfmt - Add ESM/CJS dual output support - Update TypeScript target to ES2022 - Remove unused config files (Babel, TSLint, Renovate) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent e003c60 commit cf2dade

22 files changed

+1264
-6024
lines changed

.babelrc

Lines changed: 0 additions & 24 deletions
This file was deleted.

.circleci/config.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

.eslintrc.cjs

Lines changed: 0 additions & 12 deletions
This file was deleted.

.github/dependabot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
updates:
3-
- package-ecosystem: "npm" # See documentation for possible values
4-
directory: "/" # Location of package manifests
3+
- package-ecosystem: "npm"
4+
directory: "/"
55
schedule:
6-
interval: "daily"
6+
interval: "weekly"

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
ci:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: pnpm/action-setup@v4
15+
- uses: jdx/mise-action@v2
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version-file: ".mise.toml"
19+
cache: "pnpm"
20+
- run: pnpm install --frozen-lockfile
21+
- run: pnpm lint
22+
- run: pnpm format:check
23+
- run: pnpm check
24+
- run: pnpm test
25+
- run: pnpm build

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
node_modules
2-
npm-debug.log
32
lib
3+
coverage
44
.nyc_output
5-
coverage
5+
.DS_Store
6+
.claude

.mise.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[tools]
2+
node = "24"

.node-version

Lines changed: 0 additions & 1 deletion
This file was deleted.

.prettierrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ $ npm install wareki
1111
## Usage
1212

1313
```js
14-
import wareki from 'wareki'
14+
import wareki from "wareki";
1515

16-
wareki('1989-01-07')
16+
wareki("1989-01-07");
1717
// -> 昭和64
18-
wareki('1989-01-08')
18+
wareki("1989-01-08");
1919
// -> 平成元
20-
wareki('2018-08-01', { unit: true })
20+
wareki("2018-08-01", { unit: true });
2121
// -> 平成30年
22-
wareki('2019-05-01')
22+
wareki("2019-05-01");
2323
// -> 令和元
2424
```

0 commit comments

Comments
 (0)