@sanity/cli 3.68.0 → 3.68.2
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.68.
|
3
|
+
"version": "3.68.2",
|
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.24.1",
|
61
|
-
"@sanity/codegen": "3.68.
|
61
|
+
"@sanity/codegen": "3.68.2",
|
62
62
|
"@sanity/telemetry": "^0.7.7",
|
63
63
|
"@sanity/template-validator": "^1.0.2",
|
64
|
-
"@sanity/util": "3.68.
|
64
|
+
"@sanity/util": "3.68.2",
|
65
65
|
"chalk": "^4.1.2",
|
66
66
|
"debug": "^4.3.4",
|
67
67
|
"decompress": "^4.2.0",
|
@@ -72,17 +72,16 @@
|
|
72
72
|
"pkg-dir": "^5.0.0",
|
73
73
|
"prettier": "^3.3.0",
|
74
74
|
"semver": "^7.3.5",
|
75
|
-
"silver-fleece": "1.1.0",
|
76
75
|
"validate-npm-package-name": "^3.0.0"
|
77
76
|
},
|
78
77
|
"devDependencies": {
|
79
|
-
"@repo/package.config": "3.68.
|
80
|
-
"@repo/test-config": "3.68.
|
78
|
+
"@repo/package.config": "3.68.2",
|
79
|
+
"@repo/test-config": "3.68.2",
|
81
80
|
"@rexxars/gitconfiglocal": "^3.0.1",
|
82
81
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
83
82
|
"@sanity/eslint-config-studio": "^4.0.0",
|
84
83
|
"@sanity/generate-help-url": "^3.0.0",
|
85
|
-
"@sanity/types": "3.68.
|
84
|
+
"@sanity/types": "3.68.2",
|
86
85
|
"@types/babel__traverse": "^7.20.5",
|
87
86
|
"@types/configstore": "^5.0.1",
|
88
87
|
"@types/cpx": "^1.5.2",
|
@@ -134,5 +133,5 @@
|
|
134
133
|
"engines": {
|
135
134
|
"node": ">=18"
|
136
135
|
},
|
137
|
-
"gitHead": "
|
136
|
+
"gitHead": "a28a9cf41a5d393d90f750471225fcfe36301f28"
|
138
137
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {existsSync
|
1
|
+
import {existsSync} from 'node:fs'
|
2
2
|
import fs from 'node:fs/promises'
|
3
3
|
import path from 'node:path'
|
4
4
|
|
@@ -11,7 +11,6 @@ import {deburr, noop} from 'lodash'
|
|
11
11
|
import pFilter from 'p-filter'
|
12
12
|
import resolveFrom from 'resolve-from'
|
13
13
|
import semver from 'semver'
|
14
|
-
import {evaluate, patch} from 'silver-fleece'
|
15
14
|
|
16
15
|
import {CLIInitStepCompleted} from '../../__telemetry__/init.telemetry'
|
17
16
|
import {type InitFlags} from '../../commands/init/initCommand'
|
@@ -434,21 +433,6 @@ export default async function initSanity(
|
|
434
433
|
|
435
434
|
await writeSourceFiles(sanityFolder(useTypeScript, templateToUse), undefined, hasSrcFolder)
|
436
435
|
|
437
|
-
// set tsconfig.json target to ES2017
|
438
|
-
const tsConfigPath = path.join(workDir, 'tsconfig.json')
|
439
|
-
|
440
|
-
if (useTypeScript && existsSync(tsConfigPath)) {
|
441
|
-
const tsConfigFile = readFileSync(tsConfigPath, 'utf8')
|
442
|
-
const config = evaluate(tsConfigFile)
|
443
|
-
|
444
|
-
if (config.compilerOptions.target?.toLowerCase() !== 'es2017') {
|
445
|
-
config.compilerOptions.target = 'ES2017'
|
446
|
-
|
447
|
-
const newConfig = patch(tsConfigFile, config)
|
448
|
-
await fs.writeFile(tsConfigPath, Buffer.from(newConfig))
|
449
|
-
}
|
450
|
-
}
|
451
|
-
|
452
436
|
const appendEnv = unattended ? true : await promptForAppendEnv(prompt, envFilename)
|
453
437
|
|
454
438
|
if (appendEnv) {
|