@sanity/cli 4.10.4-next.4 → 4.11.0-next.7
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 +20 -0
- package/bin/sanity +6 -2
- package/package.json +6 -6
package/bin/dev.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-require-imports */
|
|
2
|
+
/* oxlint-disable import/no-unassigned-import */
|
|
3
|
+
const {register} = require('esbuild-register/dist/node')
|
|
4
|
+
|
|
5
|
+
register({
|
|
6
|
+
target: `node${process.version.slice(1)}`,
|
|
7
|
+
supported: {'dynamic-import': true},
|
|
8
|
+
jsx: 'automatic',
|
|
9
|
+
})
|
|
10
|
+
|
|
11
|
+
// oxlint-disable-next-line no-console
|
|
12
|
+
console.log('\n️ⓘ Running local Sanity CLI from source\n')
|
|
13
|
+
|
|
14
|
+
// Define the global `__DEV__` flag which is used to
|
|
15
|
+
// - determine when to use `esbuild-register` in the Sanity development server
|
|
16
|
+
// - determine when to use `esbuild-register` in the Sanity CLI
|
|
17
|
+
// - exclude development-only code from the production build
|
|
18
|
+
global.__DEV__ = true
|
|
19
|
+
|
|
20
|
+
require('../src/run')
|
package/bin/sanity
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/cli",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.11.0-next.7+2f71623759",
|
|
4
4
|
"description": "Sanity CLI tool for managing Sanity installations, managing plugins, schemas and datasets",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"pkg-dir": "^5.0.0",
|
|
61
61
|
"prettier": "^3.5.3",
|
|
62
62
|
"semver": "^7.7.2",
|
|
63
|
-
"@sanity/codegen": "4.
|
|
63
|
+
"@sanity/codegen": "4.11.0-next.7+2f71623759"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
66
|
"@rexxars/gitconfiglocal": "^3.0.1",
|
|
@@ -114,10 +114,10 @@
|
|
|
114
114
|
"vitest": "^3.2.4",
|
|
115
115
|
"which": "^2.0.2",
|
|
116
116
|
"xdg-basedir": "^4.0.0",
|
|
117
|
-
"@repo/eslint-config": "4.
|
|
118
|
-
"@repo/package.config": "4.
|
|
119
|
-
"@repo/test-config": "4.
|
|
120
|
-
"@sanity/types": "4.
|
|
117
|
+
"@repo/eslint-config": "4.11.0-next.7+2f71623759",
|
|
118
|
+
"@repo/package.config": "4.11.0-next.7+2f71623759",
|
|
119
|
+
"@repo/test-config": "4.11.0-next.7+2f71623759",
|
|
120
|
+
"@sanity/types": "4.11.0-next.7+2f71623759"
|
|
121
121
|
},
|
|
122
122
|
"peerDependencies": {
|
|
123
123
|
"babel-plugin-react-compiler": "*"
|