@sanity/cli 4.14.2-next.1 → 4.14.2-next.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/bin/dev.js +9 -1
- package/package.json +7 -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.2+a30a092346",
|
|
4
4
|
"description": "Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"pkg-dir": "^5.0.0",
|
|
62
62
|
"prettier": "^3.6.2",
|
|
63
63
|
"semver": "^7.7.2",
|
|
64
|
-
"@sanity/codegen": "4.14.2-next.
|
|
64
|
+
"@sanity/codegen": "4.14.2-next.2+a30a092346"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@rexxars/gitconfiglocal": "^3.0.1",
|
|
@@ -116,11 +116,11 @@
|
|
|
116
116
|
"vitest": "^3.2.4",
|
|
117
117
|
"which": "^2.0.2",
|
|
118
118
|
"xdg-basedir": "^4.0.0",
|
|
119
|
-
"@repo/
|
|
120
|
-
"@repo/
|
|
121
|
-
"@
|
|
122
|
-
"@
|
|
123
|
-
"@repo/
|
|
119
|
+
"@repo/package.config": "4.14.2-next.2+a30a092346",
|
|
120
|
+
"@repo/test-config": "4.14.2-next.2+a30a092346",
|
|
121
|
+
"@sanity/types": "4.14.2-next.2+a30a092346",
|
|
122
|
+
"@repo/tsconfig": "4.14.2-next.2+a30a092346",
|
|
123
|
+
"@repo/eslint-config": "4.14.2-next.2+a30a092346"
|
|
124
124
|
},
|
|
125
125
|
"peerDependencies": {
|
|
126
126
|
"babel-plugin-react-compiler": "*"
|