Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

updating peerDependency to webpack 5 #126

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"node": ">=8.0.0"
},
"scripts": {
"test": "eslint --ignore-pattern 'test/*' . && jest"
"test": "yarn run test:webpack4 && yan run @test:webpack5",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: yarn and extra @

"test:webpack4": "eslint --ignore-pattern 'test/*' . && jest",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

eslint --ignore-pattern 'test/*' is not really about testing webpack 4. This should be stay in test

"test:webpack5": "yarn add webpack:^5 --dev && jest",
"posttest": "yarn add webpack:^4.31.0 --dev"
},
"files": [
"src",
Expand Down Expand Up @@ -37,7 +40,7 @@
]
},
"peerDependencies": {
"webpack": "^4.0.0"
"webpack": "^4.0.0 || ^5.0.0"
},
"devDependencies": {
"@babel/core": "^7.5.4",
Expand Down
Loading