@sanity/cli 4.14.2-next.1 → 4.14.2-next.3
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/bin/dev.js +9 -1
- package/package.json +8 -7
package/bin/dev.js
CHANGED
|
@@ -4,8 +4,16 @@ const {register} = require('esbuild-register/dist/node')
|
|
|
4
4
|
|
|
5
5
|
register({
|
|
6
6
|
target: `node${process.version.slice(1)}`,
|
|
7
|
-
supported: {'dynamic-import': true},
|
|
8
7
|
jsx: 'automatic',
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Set 'dynamic-import': false to force esbuild to transpile dynamic import() calls
|
|
11
|
+
* to require() calls. When set to true, esbuild preserves dynamic imports, causing
|
|
12
|
+
* Node.js to try resolving them natively, which fails for .ts files since Node.js
|
|
13
|
+
* can't find TypeScript files. By transpiling to require(), esbuild-register can
|
|
14
|
+
* properly handle the module resolution for TypeScript files during development.
|
|
15
|
+
*/
|
|
16
|
+
supported: {'dynamic-import': false},
|
|
9
17
|
})
|
|
10
18
|
|
|
11
19
|
if (process.env.TEST !== 'true') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cli",
|
|
3
|
-
"version": "4.14.2-next.
|
|
3
|
+
"version": "4.14.2-next.3+3a6536ca7c",
|
|
4
4
|
"description": "Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -58,10 +58,11 @@
|
|
|
58
58
|
"esbuild-register": "^3.6.0",
|
|
59
59
|
"get-it": "^8.6.10",
|
|
60
60
|
"groq-js": "^1.20.0",
|
|
61
|
+
"patch-package": "^8.0.1",
|
|
61
62
|
"pkg-dir": "^5.0.0",
|
|
62
63
|
"prettier": "^3.6.2",
|
|
63
64
|
"semver": "^7.7.2",
|
|
64
|
-
"@sanity/codegen": "4.14.2-next.
|
|
65
|
+
"@sanity/codegen": "4.14.2-next.3+3a6536ca7c"
|
|
65
66
|
},
|
|
66
67
|
"devDependencies": {
|
|
67
68
|
"@rexxars/gitconfiglocal": "^3.0.1",
|
|
@@ -116,11 +117,11 @@
|
|
|
116
117
|
"vitest": "^3.2.4",
|
|
117
118
|
"which": "^2.0.2",
|
|
118
119
|
"xdg-basedir": "^4.0.0",
|
|
119
|
-
"@repo/
|
|
120
|
-
"@repo/
|
|
121
|
-
"@repo/
|
|
122
|
-
"@
|
|
123
|
-
"@
|
|
120
|
+
"@repo/package.config": "4.14.2-next.3+3a6536ca7c",
|
|
121
|
+
"@repo/eslint-config": "4.14.2-next.3+3a6536ca7c",
|
|
122
|
+
"@repo/test-config": "4.14.2-next.3+3a6536ca7c",
|
|
123
|
+
"@repo/tsconfig": "4.14.2-next.3+3a6536ca7c",
|
|
124
|
+
"@sanity/types": "4.14.2-next.3+3a6536ca7c"
|
|
124
125
|
},
|
|
125
126
|
"peerDependencies": {
|
|
126
127
|
"babel-plugin-react-compiler": "*"
|