Skip to content

Commit

Permalink
fix: use dev-preview tag as sanity peer dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
snorrees committed Aug 24, 2022
1 parent 08dd2fa commit 2b3e312
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ lib/
## Parcel
.parcel-cache

# yalc
yalc.lock
.yalc

# Fixtures for tests that output files that will be verified
test/fixtures/build/lib
/test/fixtures/init/empty/*
Expand Down
7 changes: 3 additions & 4 deletions src/actions/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,9 @@ export const initFlags = {
export type InitFlags = TypedFlags<typeof initFlags>

const defaultDependencies = [incompatiblePluginPackage]
// purple-unicorn as version in devDependencies will install 2.29.5, so must be explicit
// using ^2.29.5-purple-unicorn.856 is not safe either
const defaultDevDependencies = {react: '^17.0.0 || ^18.0.0', sanity: '2.29.5-purple-unicorn.856'}
const defaultPeerDependencies = {react: '^17.0.0 || ^18.0.0', sanity: 'purple-unicorn'}

const defaultDevDependencies = {react: '^17.0.0 || ^18.0.0', sanity: '^3.0.0-dev-preview.15'}
const defaultPeerDependencies = {react: '^17.0.0 || ^18.0.0', sanity: 'dev-preview'}

export interface InitOptions {
basePath: string
Expand Down

0 comments on commit 2b3e312

Please sign in to comment.