Skip to content

Commit 9fa7413

Browse files
authored
Merge branch 'main' into fix/findIndex
2 parents ed40174 + e220bb7 commit 9fa7413

File tree

2,070 files changed

+112905
-36751
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,070 files changed

+112905
-36751
lines changed

.github/CONTRIBUTING-ko_kr.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44

55
> es-toolkit에 기여할 때, [행동 강령(Code of conduct)](./CODE_OF_CONDUCT.md)을 준수해 주세요. 허용되는 행동과 허용되지 않는 행동을 준수해 주세요.
66
7+
## 패키지 매니저
8+
9+
이 프로젝트는 **Yarn 4**를 패키지 매니저로 사용해요. `yarn install`을 실행하면 Corepack을 통해 올바른 버전이 자동으로 설치돼요.
10+
11+
시작하는 방법:
12+
13+
1. Node.js가 설치되어 있는지 확인하세요 (필요한 버전은 `.nvmrc` 파일을 참고하세요)
14+
2. Corepack을 활성화하세요: `corepack enable`
15+
3. 의존성을 설치하세요: `yarn install`
16+
717
## 1. 설계 원칙
818

919
es-toolkit 프로젝트는 성능, 구현의 단순함, 그리고 꼼꼼한 문서화가 중요해요. 다양한 기능과 옵션을 지원하기보다, 성능이 뛰어나고 안정적으로 작동하는 핵심 유틸리티들만 제공하려고 해요.

.github/CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@ We welcome contribution from everyone in the community. All communications in th
44

55
> Every contributor to es-toolkit should adhere to our Code of Conduct. Please read the [full text](./CODE_OF_CONDUCT.md) to understand what actions will and will not be tolerated.
66
7+
## Package Manager
8+
9+
This project uses **Yarn 4** as its package manager. The correct version is automatically installed via Corepack when you run `yarn install`.
10+
11+
To get started:
12+
13+
1. Make sure you have Node.js installed (see `.nvmrc` for the required version)
14+
2. Enable Corepack: `corepack enable`
15+
3. Install dependencies: `yarn install`
16+
717
## 1. Our Design Principles
818

919
Note that we value performance, simplicity of implementation, and detailed documentations. We do not aim for supporting a variety of features and options. Our goal is to provide a small set of performant and well-functioning utilities.

.github/workflows/autofix.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,10 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v5
2121
- run: corepack enable
22-
- uses: actions/setup-node@v5
22+
- uses: actions/setup-node@v6
2323
with:
24-
cache: 'yarn'
25-
cache-dependency-path: 'yarn.lock'
2624
node-version-file: '.nvmrc'
25+
cache: 'yarn'
2726
- run: yarn install
2827
- run: yarn prettier --write .
2928
- run: yarn run packlint

.github/workflows/broken-link-checker.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ on:
88

99
jobs:
1010
broken-link-checker:
11+
if: github.repository == 'toss/es-toolkit'
1112
runs-on: ubuntu-latest
1213
steps:
1314
- uses: actions/checkout@v5
1415
- run: corepack enable
15-
- uses: actions/setup-node@v5
16+
- uses: actions/setup-node@v6
1617
with:
17-
cache: 'yarn'
18-
cache-dependency-path: 'yarn.lock'
1918
node-version-file: '.nvmrc'
19+
cache: 'yarn'
2020
- run: yarn install
2121
- name: Check broken link
2222
env:

.github/workflows/codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v5
1717
- run: corepack enable
18-
- uses: actions/setup-node@v5
18+
- uses: actions/setup-node@v6
1919
with:
2020
node-version-file: .nvmrc
2121
cache: 'yarn'

.github/workflows/release.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99

1010
jobs:
1111
release:
12+
if: github.repository == 'toss/es-toolkit'
1213
runs-on: ubuntu-latest
1314
permissions:
1415
id-token: write
@@ -18,11 +19,10 @@ jobs:
1819
- name: Checkout
1920
uses: actions/checkout@v5
2021
- run: corepack enable
21-
- uses: actions/setup-node@v5
22+
- uses: actions/setup-node@v6
2223
with:
23-
cache: 'yarn'
24-
cache-dependency-path: 'yarn.lock'
2524
node-version-file: '.nvmrc'
25+
cache: 'yarn'
2626
- name: Update npm
2727
run: npm install -g [email protected]
2828
- uses: denoland/setup-deno@v2
@@ -84,17 +84,16 @@ jobs:
8484
working-directory: ${{ github.workspace }}/out/
8585

8686
deploy-docs:
87-
if: github.event_name == 'push' && github.ref_type == 'tag'
87+
if: github.repository == 'toss/es-toolkit' && github.event_name == 'push' && github.ref_type == 'tag'
8888
runs-on: ubuntu-latest
8989
steps:
9090
- name: Checkout
9191
uses: actions/checkout@v5
9292
- run: corepack enable
93-
- uses: actions/setup-node@v5
93+
- uses: actions/setup-node@v6
9494
with:
95-
cache: 'yarn'
96-
cache-dependency-path: 'yarn.lock'
9795
node-version-file: '.nvmrc'
96+
cache: 'yarn'
9897
- name: Install dependencies
9998
run: yarn install
10099
- name: Deploy a docs site

.scripts/docs/operations/render/en.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ function returns(item: DocumentationItem) {
5656

5757
if (item.returns.type == null) {
5858
return `
59-
### Returns
59+
#### Returns
6060
6161
(\`${item.returns.type}\`): ${item.returns.document}
6262
`.trim();
6363
}
6464

6565
return `
66-
### Returns
66+
#### Returns
6767
6868
(\`${item.returns.type}\`): ${item.returns.document}
6969
`.trim();

.scripts/docs/operations/render/ja.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function returns(item: DocumentationItem) {
5757
}
5858

5959
return `
60-
### 戻り値
60+
#### 戻り値
6161
6262
(\`${item.returns.type}\`): ${item.returns.document}
6363
`.trim();

.scripts/docs/operations/render/ko.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function returns(item: DocumentationItem) {
5555
}
5656

5757
return `
58-
### 반환 값
58+
#### 반환 값
5959
6060
(\`${item.returns.type}\`): ${item.returns.document}
6161
`.trim();

.scripts/docs/operations/render/zh_hans.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ function returns(item: DocumentationItem) {
5555
}
5656

5757
return `
58-
### 返回值
58+
#### 返回值
5959
6060
(\`${item.returns.type}\`): ${item.returns.document}
6161
`.trim();

0 commit comments

Comments
 (0)