Unverified Commit e848a9e5 authored by Kristoffer K's avatar Kristoffer K Committed by GitHub

fix(next): add missing peer dependencies for sass support (#17606)

parent ad1150d2
......@@ -115,20 +115,13 @@ jobs:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: '--unhandled-rejections=strict'
YARN_COMPRESSION_LEVEL: '0'
steps:
- uses: actions/checkout@v2
- run: yarn install --frozen-lockfile --check-files
- run: |
mkdir -p ./e2e-tests/next-pnp
cp -r ./examples/with-typescript/. ./e2e-tests/next-pnp
cd ./e2e-tests/next-pnp
touch yarn.lock
yarn set version berry
yarn config set pnpFallbackMode none
yarn link --all --private ../..
yarn build
- run: bash ./test-pnp.sh
testsPass:
name: thank you, next
......
......@@ -107,12 +107,26 @@
"webpack": "4.44.1",
"webpack-sources": "1.4.3"
},
"optionalDependencies": {
"sharp": "0.26.3"
},
"peerDependencies": {
"react": "^16.6.0 || ^17",
"react-dom": "^16.6.0 || ^17"
"react-dom": "^16.6.0 || ^17",
"node-sass": "^4.0.0",
"sass": "^1.3.0",
"fibers": ">= 3.1.0"
},
"optionalDependencies": {
"sharp": "0.26.3"
"peerDependenciesMeta": {
"node-sass": {
"optional": true
},
"sass": {
"optional": true
},
"fibers": {
"optional": true
}
},
"devDependencies": {
"@babel/code-frame": "7.12.11",
......
declare -a testCases=(
"with-typescript"
"with-next-sass"
)
set -e
# Speeds up testing locally
export CI=1
rm -rf ./e2e-tests
initialDir=$(pwd)
for testCase in "${testCases[@]}"
do
cd $initialDir
echo "--- Testing $testCase ---"
mkdir -p "./e2e-tests/$testCase"
cp -r "./examples/$testCase/." "./e2e-tests/$testCase"
cd "./e2e-tests/$testCase"
touch yarn.lock
yarn set version berry
yarn config set pnpFallbackMode none
yarn link --all --private -r ../..
yarn build
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment