Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
e848a9e5
Unverified
Commit
e848a9e5
authored
Jan 04, 2021
by
Kristoffer K
Committed by
GitHub
Jan 04, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(next): add missing peer dependencies for sass support (#17606)
parent
ad1150d2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
49 additions
and
12 deletions
+49
-12
build_test_deploy.yml
.github/workflows/build_test_deploy.yml
+2
-9
package.json
packages/next/package.json
+17
-3
test-pnp.sh
test-pnp.sh
+30
-0
No files found.
.github/workflows/build_test_deploy.yml
View file @
e848a9e5
...
...
@@ -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
...
...
packages/next/package.json
View file @
e848a9e5
...
...
@@ -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"
,
...
...
test-pnp.sh
0 → 100644
View file @
e848a9e5
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment