Skip to content

Commit 2b3e312

Browse files
committed
fix: use dev-preview tag as sanity peer dependency
1 parent 08dd2fa commit 2b3e312

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ lib/
5858
## Parcel
5959
.parcel-cache
6060

61+
# yalc
62+
yalc.lock
63+
.yalc
64+
6165
# Fixtures for tests that output files that will be verified
6266
test/fixtures/build/lib
6367
/test/fixtures/init/empty/*

src/actions/init.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ export const initFlags = {
5959
export type InitFlags = TypedFlags<typeof initFlags>
6060

6161
const defaultDependencies = [incompatiblePluginPackage]
62-
// purple-unicorn as version in devDependencies will install 2.29.5, so must be explicit
63-
// using ^2.29.5-purple-unicorn.856 is not safe either
64-
const defaultDevDependencies = {react: '^17.0.0 || ^18.0.0', sanity: '2.29.5-purple-unicorn.856'}
65-
const defaultPeerDependencies = {react: '^17.0.0 || ^18.0.0', sanity: 'purple-unicorn'}
62+
63+
const defaultDevDependencies = {react: '^17.0.0 || ^18.0.0', sanity: '^3.0.0-dev-preview.15'}
64+
const defaultPeerDependencies = {react: '^17.0.0 || ^18.0.0', sanity: 'dev-preview'}
6665

6766
export interface InitOptions {
6867
basePath: string

0 commit comments

Comments
 (0)