Skip to content

Commit

Permalink
fix: use sanity ^3.0.0 and @sanity/ui ^1.0.0 for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
snorrees committed Nov 30, 2022
1 parent 3336123 commit 9f2c6c6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
12 changes: 4 additions & 8 deletions src/configs/forced-package-versions.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
const sanityVersion = '3.0.0-rc.2'
const sanityVersion = '^3.0.0'

export const forcedPackageVersions = {
react: '^18',
'@types/react': '^18',
'react-dom': '^18',
'@types/react-dom': '^18',
sanity: `dev-preview || ${sanityVersion}`,
'@sanity/ui': '1.0.0-beta.32',
}

export const forcedDevPackageVersions = {
...forcedPackageVersions,
// tagged release does not play nice with npm ci
sanity: sanityVersion,
'@sanity/ui': '^1.0.0',
}

export const forcedDevPackageVersions = forcedPackageVersions
4 changes: 2 additions & 2 deletions test/fixtures/inject/valid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,12 @@
"prettier-plugin-packagejson": "^2.3.0",
"react": "^18.2.0",
"rimraf": "^3.0.2",
"sanity": "3.0.0-rc.2",
"sanity": "^3.0.0",
"typescript": "^4.7.3"
},
"peerDependencies": {
"react": "^18",
"sanity": "dev-preview || 3.0.0-rc.2"
"sanity": "^3.0.0"
},
"engines": {
"node": ">=14"
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/verify-package/invalid-eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@
"prettier-plugin-packagejson": "^2.3.0",
"react": "^18.2.0",
"rimraf": "^3.0.2",
"sanity": "3.0.0-rc.2",
"sanity": "^3.0.0",
"typescript": "^4.7.3"
},
"peerDependencies": {
"react": "^18",
"sanity": "dev-preview || 3.0.0-rc.2"
"sanity": "^3.0.0"
},
"engines": {
"node": ">=14"
Expand Down
4 changes: 2 additions & 2 deletions test/fixtures/verify-package/valid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@
"prettier-plugin-packagejson": "^2.3.0",
"react": "^18.2.0",
"rimraf": "^3.0.2",
"sanity": "3.0.0-rc.2",
"sanity": "^3.0.0",
"typescript": "^4.7.3"
},
"peerDependencies": {
"react": "^18",
"sanity": "dev-preview || 3.0.0-rc.2"
"sanity": "^3.0.0"
},
"engines": {
"node": ">=14"
Expand Down

0 comments on commit 9f2c6c6

Please sign in to comment.