Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,31 @@ jobs:
with:
node-version: 20.x

- name: Enable pnpm
run: corepack enable pnpm

- name: Install dependencies
run: yarn install --frozen-lockfile
run: pnpm install --frozen-lockfile
env:
CI: true

- name: Build
run: yarn build
run: pnpm build
env:
CI: true

- name: Lint
run: yarn lint
run: pnpm lint
env:
CI: true

- name: Test
run: yarn test
run: pnpm test
env:
CI: true

- name: Test types
run: yarn test-types
run: pnpm test-types
env:
CI: true

Expand All @@ -53,4 +56,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}
run: yarn semantic-release
run: pnpm semantic-release
1 change: 0 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
package-lock=false
save-exact = true
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,14 @@
"typings": "./index.d.ts",
"scripts": {
"build-babel": "bunchee src/babel.js -f cjs -e babel-plugin-macros --runtime node -o dist/babel/index.js",
"build": "rm -rf dist && rm -rf out && yarn build-webpack && yarn build-index && yarn build-babel",
"build": "rm -rf dist && rm -rf out && pnpm build-webpack && pnpm build-index && pnpm build-babel",
"build-webpack": "bunchee src/webpack.js -f cjs --runtime node -o dist/webpack/index.js",
"build-index": "bunchee src/index.js -f cjs --runtime node -o dist/index/index.js",
"test": "ava",
"test-types": "tsc --project tsconfig.json --noEmit",
"lint": "eslint ./src",
"format": "prettier --write \"./{src,test}/**/*.{js,css}\"",
"prepublishOnly": "yarn build && yarn test && yarn lint --quiet"
"prepublishOnly": "pnpm build && pnpm test && pnpm lint --quiet"
},
"husky": {
"hooks": {
Expand Down Expand Up @@ -129,5 +129,5 @@
"dependencies": {
"client-only": "0.0.1"
},
"packageManager": "yarn@1.22.22"
"packageManager": "pnpm@10.33.0+sha512.10568bb4a6afb58c9eb3630da90cc9516417abebd3fabbe6739f0ae795728da1491e9db5a544c76ad8eb7570f5c4bb3d6c637b2cb41bfdcdb47fa823c8649319"
}
Loading
Loading