@sanity/cli 3.72.2-corel.577 → 3.72.2-coreui.14
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sanity/cli",
|
3
|
-
"version": "3.72.2-
|
3
|
+
"version": "3.72.2-coreui.14+39938af572",
|
4
4
|
"description": "Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets",
|
5
5
|
"keywords": [
|
6
6
|
"sanity",
|
@@ -58,10 +58,10 @@
|
|
58
58
|
"dependencies": {
|
59
59
|
"@babel/traverse": "^7.23.5",
|
60
60
|
"@sanity/client": "^6.27.2",
|
61
|
-
"@sanity/codegen": "3.72.2-
|
61
|
+
"@sanity/codegen": "3.72.2-coreui.14+39938af572",
|
62
62
|
"@sanity/telemetry": "^0.7.7",
|
63
63
|
"@sanity/template-validator": "^2.4.0",
|
64
|
-
"@sanity/util": "3.72.2-
|
64
|
+
"@sanity/util": "3.72.2-coreui.14+39938af572",
|
65
65
|
"chalk": "^4.1.2",
|
66
66
|
"debug": "^4.3.4",
|
67
67
|
"decompress": "^4.2.0",
|
@@ -81,7 +81,7 @@
|
|
81
81
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
82
82
|
"@sanity/eslint-config-studio": "^4.0.0",
|
83
83
|
"@sanity/generate-help-url": "^3.0.0",
|
84
|
-
"@sanity/types": "3.72.2-
|
84
|
+
"@sanity/types": "3.72.2-coreui.14+39938af572",
|
85
85
|
"@types/babel__traverse": "^7.20.5",
|
86
86
|
"@types/configstore": "^5.0.1",
|
87
87
|
"@types/cpx": "^1.5.2",
|
@@ -125,7 +125,7 @@
|
|
125
125
|
"semver": "^7.3.5",
|
126
126
|
"semver-compare": "^1.0.0",
|
127
127
|
"tar": "^6.1.11",
|
128
|
-
"vite": "^
|
128
|
+
"vite": "^6.0.11",
|
129
129
|
"vitest": "^2.1.8",
|
130
130
|
"which": "^2.0.2",
|
131
131
|
"xdg-basedir": "^4.0.0"
|
@@ -133,5 +133,5 @@
|
|
133
133
|
"engines": {
|
134
134
|
"node": ">=18"
|
135
135
|
},
|
136
|
-
"gitHead": "
|
136
|
+
"gitHead": "39938af572f4f3df89db1c60d3fd25028245eb5a"
|
137
137
|
}
|
@@ -97,7 +97,7 @@ export async function bootstrapRemoteTemplate(
|
|
97
97
|
debug('Applying environment variables to %s', pkg)
|
98
98
|
// Next.js uses `.env.local` for local environment variables
|
99
99
|
const envName = packageFramework?.slug === 'nextjs' ? '.env.local' : '.env'
|
100
|
-
await applyEnvVariables(packagePath, {...variables, readToken}, envName)
|
100
|
+
await applyEnvVariables(packagePath, {...variables, readToken, writeToken}, envName)
|
101
101
|
}
|
102
102
|
|
103
103
|
debug('Setting package name to %s', packageName)
|
@@ -229,7 +229,7 @@ export async function applyEnvVariables(
|
|
229
229
|
|
230
230
|
try {
|
231
231
|
const templateContent = await readFile(join(root, templatePath), 'utf8')
|
232
|
-
const {projectId, dataset, readToken = ''} = envData
|
232
|
+
const {projectId, dataset, readToken = '', writeToken = ''} = envData
|
233
233
|
|
234
234
|
const findAndReplaceVariable = (
|
235
235
|
content: string,
|
@@ -255,6 +255,7 @@ export async function applyEnvVariables(
|
|
255
255
|
{pattern: ENV_VAR.PROJECT_ID, value: projectId},
|
256
256
|
{pattern: ENV_VAR.DATASET, value: dataset},
|
257
257
|
{pattern: ENV_VAR.READ_TOKEN, value: readToken},
|
258
|
+
{pattern: ENV_VAR.WRITE_TOKEN, value: writeToken},
|
258
259
|
]
|
259
260
|
const useQuotes = templateContent.includes('="')
|
260
261
|
|