@sanity/cli 3.74.2-coreui.20 → 3.75.1-canary.110
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 +262 -258
- package/lib/_chunks-cjs/cli.js.map +1 -1
- package/lib/_chunks-cjs/loadEnv.js +15 -73
- package/lib/_chunks-cjs/loadEnv.js.map +1 -1
- package/lib/index.d.mts +3 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.esm.js +12 -70
- package/lib/index.esm.js.map +1 -1
- package/lib/index.mjs +12 -70
- package/lib/index.mjs.map +1 -1
- package/package.json +9 -9
- package/src/actions/init-project/bootstrapLocalTemplate.ts +4 -1
- package/src/actions/init-project/createCoreAppCliConfig.ts +2 -1
- package/src/actions/init-project/createStudioConfig.ts +1 -0
- package/src/actions/init-project/initProject.ts +29 -16
- package/src/cli.ts +14 -4
- package/src/types.ts +3 -0
- package/src/util/resolveRootDir.ts +9 -8
- package/templates/core-app/src/App.tsx +8 -7
- package/templates/core-app/src/ExampleComponent.tsx +11 -0
@@ -0,0 +1,11 @@
|
|
1
|
+
export function ExampleComponent() {
|
2
|
+
return (
|
3
|
+
<div>
|
4
|
+
<h1>Welcome to Your Sanity App!</h1>
|
5
|
+
<p>
|
6
|
+
This is an example component. You can replace this with your own content
|
7
|
+
by creating a new component and importing it in App.tsx.
|
8
|
+
</p>
|
9
|
+
</div>
|
10
|
+
)
|
11
|
+
}
|