This is an automated email from the ASF dual-hosted git repository. suyanhanx pushed a commit to branch replace-yarn-with-pnpm in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git
commit 4357cd528f5e9c686644c411ed008218da2153a5 Author: suyanhanx <[email protected]> AuthorDate: Fri Dec 8 22:49:32 2023 +0800 save work Signed-off-by: suyanhanx <[email protected]> --- .github/workflows/docs.yml | 16 ++++++++-------- bindings/nodejs/CONTRIBUTING.md | 18 ++++++++---------- licenserc.toml | 2 +- 3 files changed, 17 insertions(+), 19 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 3d19e3076..bb687e545 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -93,19 +93,19 @@ jobs: - uses: actions/setup-node@v4 with: node-version: '18' - cache: yarn - cache-dependency-path: "bindings/nodejs/yarn.lock" + cache: pnpm + cache-dependency-path: "bindings/nodejs/pnpm-lock.yaml" - name: Corepack working-directory: bindings/nodejs run: corepack enable - name: Install dependencies working-directory: bindings/nodejs - run: yarn install --immutable + run: pnpm install --frozen-lockfile - name: Build bindings/nodejs Docs working-directory: bindings/nodejs - run: yarn docs + run: pnpm run docs - name: Upload docs uses: actions/upload-artifact@v3 @@ -295,8 +295,8 @@ jobs: - uses: actions/setup-node@v4 with: node-version: '18' - cache: yarn - cache-dependency-path: "website/yarn.lock" + cache: pnpm + cache-dependency-path: "website/pnpm-lock.yaml" - name: Corepack working-directory: website @@ -358,11 +358,11 @@ jobs: - name: Install Dependencies working-directory: website - run: yarn install --immutable + run: pnpm install --frozen-lockfile - name: Build working-directory: website - run: yarn build + run: pnpm run build - name: Copy asf file run: cp .asf.yaml ./website/build/.asf.yaml diff --git a/bindings/nodejs/CONTRIBUTING.md b/bindings/nodejs/CONTRIBUTING.md index 496fbf91c..e828d7678 100644 --- a/bindings/nodejs/CONTRIBUTING.md +++ b/bindings/nodejs/CONTRIBUTING.md @@ -40,36 +40,34 @@ For RHEL, CentOS, CloudLinux, Amazon Linux or Fedora: > curl -fsSL https://rpm.nodesource.com/setup_lts.x | sudo bash - ``` -Afterwards, you will need to enable `corepack` to ensure that `yarn` has been set up correctly: +Afterward, you will need to enable `corepack` to ensure that `pnpm` has been set up correctly: ```shell > sudo corepack enable ``` -To verify that everything is working properly, run `yarn --version`: +To verify that everything is working properly, run `pnpm --version`: ```shell -> yarn --version -3.4.1 +> pnpm --version +8.11.0 ``` ## Build ```bash # Install dependencies. -> yarn +> pnpm install # Build from source. -> yarn build +> pnpm run build # Build from source with debug info. -> yarn build:debug +> pnpm run build:debug ``` ## Test -We use [`Cucumber`](https://cucumber.io/) for behavior testing. Refer to [here](https://cucumber.io/docs/guides/overview/) for more information about `Cucumber`. - ```bash -> yarn test +> pnpm run test ............ 2 scenarios (2 passed) diff --git a/licenserc.toml b/licenserc.toml index c97813ef8..4ae93850b 100644 --- a/licenserc.toml +++ b/licenserc.toml @@ -23,7 +23,7 @@ excludes = [ # Well known generated files "**/Cargo.lock", - "**/yarn.lock", + "**/pnpm-lock.yaml", # Python binding related files "**/venv/**",
