@electrolux-oss/sanity-plugin-media 1.0.0 → 1.0.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/README.md +9 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -56,13 +56,13 @@ _Asset details tab_ | _Asset alt texts tab_
|
|
|
56
56
|
|
|
57
57
|
In your Sanity project folder:
|
|
58
58
|
|
|
59
|
-
```
|
|
59
|
+
```zsh
|
|
60
60
|
npm install --save sanity-plugin-media
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
or
|
|
64
64
|
|
|
65
|
-
```
|
|
65
|
+
```zsh
|
|
66
66
|
yarn add sanity-plugin-media
|
|
67
67
|
```
|
|
68
68
|
|
|
@@ -147,26 +147,26 @@ export default defineConfig({
|
|
|
147
147
|
### Test your plugin locally
|
|
148
148
|
|
|
149
149
|
In the plugin directory run this command:
|
|
150
|
-
```
|
|
150
|
+
```zsh
|
|
151
151
|
npm run link-watch
|
|
152
152
|
```
|
|
153
153
|
|
|
154
154
|
This will set up your plugin to build whenever the code changes, and publish the package to a local yalc repository.
|
|
155
155
|
|
|
156
|
-
|
|
156
|
+
Run the command in the studio project directory:
|
|
157
157
|
|
|
158
|
-
```
|
|
159
|
-
npx yalc add sanity-plugin-media
|
|
158
|
+
```zsh
|
|
159
|
+
npx yalc add @electrolux-oss/sanity-plugin-media && npx yalc link @electrolux-oss/sanity-plugin-media && npm install
|
|
160
160
|
```
|
|
161
161
|
|
|
162
|
-
|
|
162
|
+
You should see something like this in the `package.json` file:
|
|
163
163
|
|
|
164
164
|
```
|
|
165
|
-
"sanity-plugin-media
|
|
165
|
+
"@electrolux-oss/sanity-plugin-media": "file:.yalc/@electrolux-oss/sanity-plugin-media",
|
|
166
166
|
```
|
|
167
167
|
|
|
168
168
|
Which means you can safely use the local version of the plugin with this import:
|
|
169
169
|
|
|
170
170
|
```
|
|
171
|
-
import { media } from 'sanity-plugin-media
|
|
171
|
+
import { media } from '@electrolux-oss/sanity-plugin-media'
|
|
172
172
|
```
|