Skip to content

Commit 0cb6958

Browse files
committed
chore: use pnpm (yarn broke resolution)
1 parent 9c382ca commit 0cb6958

File tree

4 files changed

+20
-18
lines changed

4 files changed

+20
-18
lines changed

.circleci/config.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,17 @@ jobs:
1414
- v2-dependencies-{{ checksum "package.json" }}
1515
- v2-dependencies-
1616

17-
- run: yarn
17+
- run: yarn global add pnpm
18+
19+
- run: pnpm i
1820

1921
- save_cache:
2022
paths:
2123
- node_modules
2224
key: v2-dependencies-{{ checksum "package.json" }}
2325

24-
- run: yarn run lint
25-
- run: yarn test -w 1 --coverage
26+
- run: pnpm run lint
27+
- run: pnpm test -w 1 --coverage
2628
- run: bash <(curl -s https://codecov.io/bash)
2729

2830
build:
@@ -39,14 +41,14 @@ jobs:
3941
- v2-dependencies-{{ checksum "package.json" }}
4042
- v2-dependencies-
4143

42-
- run: yarn
44+
- run: pnpm i
4345

4446
- save_cache:
4547
paths:
4648
- node_modules
4749
key: v2-dependencies-{{ checksum "package.json" }}
4850

49-
- run: yarn run build
51+
- run: pnpm run build
5052
workflows:
5153
version: 2
5254
build_and_test:

.github/workflows/publish.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
with:
1515
node-version: 12
1616
- name: install
17-
run: yarn install --check-files --frozen-lockfile
17+
run: pnpm install --check-files --frozen-lockfile
1818
- name: lint
19-
run: yarn lint
19+
run: pnpm lint
2020
- name: lint
21-
run: yarn test
21+
run: pnpm test
2222
- name: build
23-
run: yarn build
23+
run: pnpm build
2424
publish:
2525
needs: build
2626
runs-on: ubuntu-latest
@@ -32,7 +32,7 @@ jobs:
3232
node-version: 12
3333
registry-url: https://registry.npmjs.org/
3434
- name: install
35-
run: yarn install --check-files --frozen-lockfile
35+
run: pnpm install --check-files --frozen-lockfile
3636
- name: set dist-tag
3737
run: |
3838
case "${{github.event.release.name}}" in
@@ -48,6 +48,6 @@ jobs:
4848
- name: publish
4949
run: |
5050
echo ">> dist-tag: ${{ env.r_tag }}"
51-
yarn release --tag ${{ env.r_tag }}
51+
pnpm release --tag ${{ env.r_tag }}
5252
env:
5353
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ branches:
1616
- master
1717

1818
install:
19-
- yarn
19+
- pnpm i
2020

2121
script:
22-
- yarn run build
22+
- pnpm build

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,24 @@
66
"types": "esm/index.d.ts",
77
"unpkg": "dist/index.min.js",
88
"scripts": {
9-
"dev": "yarn docs:collect && next dev",
9+
"dev": "pnpm docs:collect && next dev",
1010
"docs:start": "next start",
1111
"docs:collect": "node scripts/collect-meta.js",
1212
"docs:seeds": "node scripts/seeds/update.js",
13-
"docs:build": "yarn docs:collect & yarn docs:seeds && next build",
13+
"docs:build": "pnpm docs:collect & pnpm docs:seeds && next build",
1414
"prettier": "prettier --write .",
1515
"lint": "eslint \"{components,lib}/**/*.{js,ts,tsx}\"",
1616
"test": "jest --config .jest.config.js --no-cache",
1717
"test:update": "jest --config .jest.config.js --no-cache --update-snapshot",
18-
"test:coverage": "yarn test --coverage",
18+
"test:coverage": "pnpm test --coverage",
1919
"build:clear": "rm -rf ./dist ./esm",
2020
"build:rollup": "rollup -c scripts/rollup.config.js",
2121
"build:webpack": "webpack --config scripts/webpack.config.js",
2222
"build:babel": "babel --no-babelrc --config-file ./scripts/babel.config.js --extensions \".js,.ts,.tsx\" ./components --out-dir ./esm --ignore \"**/__tests__/**/*,**/*.d.ts\"",
2323
"build:after": "node scripts/move-built-in.js",
2424
"build:types": "ttsc -p ./scripts & ttsc -p ./scripts --outDir ./esm",
25-
"build": "yarn build:clear && yarn build:rollup && yarn build:babel && yarn build:types && yarn build:after",
26-
"release": "yarn build && yarn publish --access public --non-interactive"
25+
"build": "pnpm build:clear && pnpm build:rollup && pnpm build:babel && pnpm build:types && pnpm build:after",
26+
"release": "pnpm build && pnpm publish --access public --non-interactive"
2727
},
2828
"license": "MIT",
2929
"description": "Modern and minimalist React UI library.",

0 commit comments

Comments
 (0)