Skip to content

Commit 3c4c87a

Browse files
authored
chore: update next to v16 (#22177)
* chore: update Next.js examples to v16 * fix(examples): correct root pathing problems with turborepo * ci(examples): add elements previews ci check
1 parent 2830de7 commit 3c4c87a

44 files changed

Lines changed: 14139 additions & 59 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,34 @@ jobs:
159159
env:
160160
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
161161

162+
elements-previews:
163+
runs-on: ubuntu-latest
164+
steps:
165+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
166+
- name: Use Node.js version from .nvmrc
167+
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
168+
with:
169+
node-version-file: '.nvmrc'
170+
- uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
171+
if: github.event_name != 'merge_group'
172+
with:
173+
path: |
174+
node_modules
175+
*/**/node_modules
176+
key:
177+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock',
178+
'packages/**/yarn.lock') }}
179+
restore-keys: |
180+
${{ runner.os }}-yarn-
181+
- name: Install dependencies
182+
env:
183+
YARN_ENABLE_HARDENED_MODE: 0
184+
run: yarn install --immutable
185+
- name: Build project
186+
run: yarn build
187+
- name: Build elements previews
188+
run: node tasks/examples.js
189+
162190
e2e:
163191
name: 'test:e2e'
164192
runs-on: ubuntu-latest

examples/light-dark-mode/next.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
reactStrictMode: true,
4+
turbopack: {
5+
root: __dirname,
6+
},
47
sassOptions: {
58
quietDeps: true,
69
},

examples/light-dark-mode/package.json

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,15 @@
66
"scripts": {
77
"build": "next build",
88
"dev": "next dev",
9-
"lint": "next lint",
109
"start": "next start"
1110
},
1211
"dependencies": {
1312
"@carbon/react": "^1.104.0-rc.0",
14-
"next": "15.5.10",
15-
"react": "^19.2.3",
16-
"react-dom": "^19.2.3"
13+
"next": "16.2.4",
14+
"react": "^19.2.5",
15+
"react-dom": "^19.2.5"
1716
},
1817
"devDependencies": {
19-
"eslint": "8.40.0",
2018
"sass": "^1.93.2"
2119
}
2220
}

examples/light-dark-mode/src/scss/styles.scss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
@use '@carbon/react';
1+
@use '@carbon/react' with (
2+
$font-path: '../../../../@ibm/plex'
3+
);
24

35
body {
46
background: react.$background;

0 commit comments

Comments
 (0)