@sanity/cli 3.81.1-sdk-295.35 → 3.82.0
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/lib/_chunks-cjs/cli.js +4 -4
- package/lib/_chunks-cjs/cli.js.map +1 -1
- package/lib/index.d.mts +10 -6
- package/lib/index.d.ts +10 -6
- package/package.json +9 -8
- package/src/actions/init-project/bootstrapLocalTemplate.ts +1 -1
- package/src/actions/init-project/createAppCliConfig.ts +3 -3
- package/src/actions/init-project/initProject.ts +1 -1
- package/src/actions/init-project/templates/appQuickstart.ts +1 -1
- package/src/types.ts +10 -6
- package/bin/xdg-open +0 -1066
- package/lib/index.esm.js +0 -391
- package/lib/index.esm.js.map +0 -1
package/lib/_chunks-cjs/cli.js
CHANGED
@@ -46741,9 +46741,9 @@ const defaultAppTemplate = `
|
|
46741
46741
|
import {defineCliConfig} from 'sanity/cli'
|
46742
46742
|
|
46743
46743
|
export default defineCliConfig({
|
46744
|
-
|
46744
|
+
app: {
|
46745
46745
|
organizationId: '%organizationId%',
|
46746
|
-
|
46746
|
+
entry: '%entry%',
|
46747
46747
|
},
|
46748
46748
|
})
|
46749
46749
|
`;
|
@@ -46940,7 +46940,7 @@ const appTemplate = {
|
|
46940
46940
|
sanity: "^3",
|
46941
46941
|
typescript: "^5.1.6"
|
46942
46942
|
},
|
46943
|
-
|
46943
|
+
entry: "./src/App.tsx",
|
46944
46944
|
scripts: {
|
46945
46945
|
dev: "sanity dev",
|
46946
46946
|
build: "sanity build",
|
@@ -47190,7 +47190,7 @@ async function bootstrapLocalTemplate(opts, context) {
|
|
47190
47190
|
template: template.configTemplate,
|
47191
47191
|
variables
|
47192
47192
|
}), cliConfig = isAppTemplate ? createAppCliConfig({
|
47193
|
-
|
47193
|
+
entry: template.entry,
|
47194
47194
|
organizationId: variables.organizationId
|
47195
47195
|
}) : createCliConfig({
|
47196
47196
|
projectId: variables.projectId,
|