Skip to content

Commit 06e1291

Browse files
committed
build: replace lerna with pnpm
1 parent 9e09ec9 commit 06e1291

File tree

5 files changed

+331
-2405
lines changed

5 files changed

+331
-2405
lines changed

Diff for: .husky/commit-msg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4-
yarn commitlint --edit
4+
pnpm commitlint --edit

Diff for: package.json

+6-12
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,10 @@
88
],
99
"scripts": {
1010
"prepare": "husky install",
11-
"build": "lerna run build",
11+
"build": "pnpm --filter ./packages run build",
1212
"storybook": "start-storybook -p 6006",
13-
"test": "lerna run test",
14-
"lint": "lerna run lint",
15-
"ui": "pnpm workspace @template/ui",
16-
"website": "pnpm workspace @template/website"
13+
"test": "pnpm --filter ./packages run test",
14+
"lint": "pnpm --filter ./packages run lint"
1715
},
1816
"devDependencies": {
1917
"@babel/core": "7.16.0",
@@ -28,7 +26,6 @@
2826
"eslint": "8.2.0",
2927
"eslint-plugin-react": "7.27.0",
3028
"husky": "7.0.4",
31-
"lerna": "4.0.0",
3229
"lint-staged": "12.0.2",
3330
"prettier": "2.4.1",
3431
"typescript": "4.4.4"
@@ -38,8 +35,9 @@
3835
"@commitlint/config-conventional"
3936
]
4037
},
41-
"volta": {
42-
"node": "16.13.0"
38+
"engines": {
39+
"node": "16.13.0",
40+
"pnpm": "6.22.2"
4341
},
4442
"lint-staged": {
4543
"**/*.{js,jsx,ts,tsx}": [
@@ -48,9 +46,5 @@
4846
"**/*.{js,jsx,ts,tsx,json,html}": [
4947
"prettier --write"
5048
]
51-
},
52-
"gitHooks": {
53-
"pre-commit": "echo blub",
54-
"commit-msg": "node scripts/verifyCommit.js"
5549
}
5650
}

Diff for: packages/ui/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"react-dom": "17.0.2"
3232
},
3333
"devDependencies": {
34+
"@swc/core": "1.2.108",
3435
"@swc/jest": "0.2.5",
3536
"@testing-library/jest-dom": "5.15.0",
3637
"@testing-library/react": "12.1.2",

Diff for: packages/ui/src/Button.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { render, screen } from '@testing-library/react'
1+
import { render } from '@testing-library/react'
22
import * as React from 'react'
33
import { Button } from './Button'
44

@@ -14,6 +14,6 @@ test.each([
1414
'vuswtg',
1515
'cairoiexitzo',
1616
])('a button works as expected %s', async (value: string) => {
17-
render(<Button label={value} />)
17+
const screen = render(<Button>{value}</Button>)
1818
expect(screen.getByText(value)).toBeInTheDocument()
1919
})

0 commit comments

Comments
 (0)