@sanity/cli 3.87.1-canary.4 → 3.87.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_chunks-cjs/cli.js +2795 -4725
- package/lib/_chunks-cjs/cli.js.map +1 -1
- package/package.json +7 -7
- package/src/actions/init-project/initProject.ts +5 -10
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sanity/cli",
|
3
|
-
"version": "3.87.1
|
3
|
+
"version": "3.87.1",
|
4
4
|
"description": "Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets",
|
5
5
|
"keywords": [
|
6
6
|
"sanity",
|
@@ -59,11 +59,11 @@
|
|
59
59
|
"dependencies": {
|
60
60
|
"@babel/traverse": "^7.23.5",
|
61
61
|
"@sanity/client": "^7.0.0",
|
62
|
-
"@sanity/codegen": "3.87.1
|
62
|
+
"@sanity/codegen": "3.87.1",
|
63
63
|
"@sanity/runtime-cli": "^3.0.0",
|
64
64
|
"@sanity/telemetry": "^0.8.0",
|
65
65
|
"@sanity/template-validator": "^2.4.3",
|
66
|
-
"@sanity/util": "3.87.1
|
66
|
+
"@sanity/util": "3.87.1",
|
67
67
|
"chalk": "^4.1.2",
|
68
68
|
"debug": "^4.3.4",
|
69
69
|
"decompress": "^4.2.0",
|
@@ -77,13 +77,13 @@
|
|
77
77
|
"validate-npm-package-name": "^3.0.0"
|
78
78
|
},
|
79
79
|
"devDependencies": {
|
80
|
-
"@repo/package.config": "3.87.
|
81
|
-
"@repo/test-config": "3.87.
|
80
|
+
"@repo/package.config": "3.87.1",
|
81
|
+
"@repo/test-config": "3.87.1",
|
82
82
|
"@rexxars/gitconfiglocal": "^3.0.1",
|
83
83
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
84
84
|
"@sanity/eslint-config-studio": "^4.0.0",
|
85
85
|
"@sanity/generate-help-url": "^3.0.0",
|
86
|
-
"@sanity/types": "3.87.1
|
86
|
+
"@sanity/types": "3.87.1",
|
87
87
|
"@types/babel__traverse": "^7.20.5",
|
88
88
|
"@types/configstore": "^5.0.1",
|
89
89
|
"@types/cpx": "^1.5.2",
|
@@ -135,5 +135,5 @@
|
|
135
135
|
"engines": {
|
136
136
|
"node": ">=18"
|
137
137
|
},
|
138
|
-
"gitHead": "
|
138
|
+
"gitHead": "64734627d11ac44ee8c989b5cc8554b84b5d3243"
|
139
139
|
}
|
@@ -1422,7 +1422,7 @@ export default async function initSanity(
|
|
1422
1422
|
debug('No access to organization %s (401)', orgId)
|
1423
1423
|
return false
|
1424
1424
|
}
|
1425
|
-
// For other errors, log them but still return false
|
1425
|
+
// For other errors, log them but still return false
|
1426
1426
|
debug('Error checking grants for organization %s: %s', orgId, err.message)
|
1427
1427
|
return false
|
1428
1428
|
}
|
@@ -1431,15 +1431,10 @@ export default async function initSanity(
|
|
1431
1431
|
function getOrganizationsWithAttachGrantInfo(organizations: ProjectOrganization[]) {
|
1432
1432
|
return pMap(
|
1433
1433
|
organizations,
|
1434
|
-
async (organization) => {
|
1435
|
-
|
1436
|
-
|
1437
|
-
|
1438
|
-
} catch (err) {
|
1439
|
-
debug('Error checking grants for organization %s: %s', organization.id, err.message)
|
1440
|
-
return {hasAttachGrant: false, organization}
|
1441
|
-
}
|
1442
|
-
},
|
1434
|
+
async (organization) => ({
|
1435
|
+
hasAttachGrant: await hasProjectAttachGrant(organization.id),
|
1436
|
+
organization,
|
1437
|
+
}),
|
1443
1438
|
{concurrency: 3},
|
1444
1439
|
)
|
1445
1440
|
}
|