Yarn v4(PnPモード)をbitbucket-pipelinesで利用する
Yarn v4のプロジェクトを作成しておきます。
yarn create vite yarn-v4-app --template vanilla-ts
ディレクトリを移動
cd ./yarn-v4-app && pwd
bitbucket-pipelines.ymlを作成する
image: node:22.6.0definitions: caches: yarn: key: files: - yarn.lock - .pnp.cjs - .pnp.loader.mjs path: ~/.yarn/berry/cache
scripts: - &Init export TZ=Asia/Tokyo && corepack enable - &Install yarn install --frozen-lockfile
pipelines: custom: build-vite: - step: name: "Build" caches: - yarn script: - *Init - *Install - yarn build