Skip to content

Commit

Permalink
Pin next^14 the right way
Browse files Browse the repository at this point in the history
  • Loading branch information
kasperpeulen committed Oct 23, 2024
1 parent 3cfcd71 commit 37d466b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/core/template/stories/hooks.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useEffect, useState } from '@storybook/core/preview-api';

export default {
component: globalThis.Components.Button,
tags: ['!vitest']
tags: ['!vitest'],
};

export const UseState = {
Expand Down
4 changes: 2 additions & 2 deletions code/lib/cli-storybook/src/sandbox-templates.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const baseTemplates = {
'nextjs/default-js': {
name: 'Next.js Latest (Webpack | JavaScript)',
script:
'yarn create next-app {{beforeDir}} -e https://github.com/vercel/next.js/tree/next-14-1/examples/hello-world && cd {{beforeDir}} && npm pkg set "dependencies.next"="^14.2.16" && yarn && git add . && git commit --amend --no-edit && cd ..',
'npx create-next-app@^14 {{beforeDir}} --typescript --eslint --tailwind --app --import-alias="@/*" --src-dir',
expected: {
framework: '@storybook/nextjs',
renderer: '@storybook/react',
Expand All @@ -176,7 +176,7 @@ const baseTemplates = {
'nextjs/default-ts': {
name: 'Next.js Latest (Webpack | TypeScript)',
script:
'yarn create next-app {{beforeDir}} -e https://github.com/vercel/next.js/tree/next-14-1/examples/hello-world && cd {{beforeDir}} && npm pkg set "dependencies.next"="^14.2.16" && yarn && git add . && git commit --amend --no-edit && cd ..',
'npx create-next-app@^14 {{beforeDir}} --typescript --eslint --tailwind --app --import-alias="@/*" --src-dir',
expected: {
framework: '@storybook/nextjs',
renderer: '@storybook/react',
Expand Down

0 comments on commit 37d466b

Please sign in to comment.