File tree Expand file tree Collapse file tree 5 files changed +26
-4
lines changed
Expand file tree Collapse file tree 5 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " @pinia-orm/axios" ,
3- "version" : " 1.7 .0" ,
3+ "version" : " 1.8 .0" ,
44 "description" : " Axios plugin for pinia-orm" ,
55 "bugs" : {
66 "url" : " https://github.com/CodeDredd/pinia-orm/issues"
Original file line number Diff line number Diff line change 11{
22 "name" : " @pinia-orm/normalizr" ,
3- "version" : " 1.7 .0" ,
3+ "version" : " 1.8 .0" ,
44 "description" : " Normalizes JSON according to schema for Redux and Flux applications" ,
55 "bugs" : {
66 "url" : " https://github.com/CodeDredd/pinia-orm/issues"
Original file line number Diff line number Diff line change 11{
22 "name" : " @pinia-orm/nuxt" ,
33 "description" : " Nuxt module for pinia-orm" ,
4- "version" : " 1.7 .0" ,
4+ "version" : " 1.8 .0" ,
55 "license" : " MIT" ,
66 "author" : {
77 "name" : " Gregor Becker" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " pinia-orm" ,
3- "version" : " 1.7.2 " ,
3+ "version" : " 1.8.0 " ,
44 "description" : " The Pinia plugin to enable Object-Relational Mapping access to the Pinia Store." ,
55 "keywords" : [
66 " vue" ,
Original file line number Diff line number Diff line change 1+ import { consola } from 'consola'
2+ import { loadWorkspace } from './_utils'
3+
4+ async function main ( ) {
5+ const workspace = await loadWorkspace ( process . cwd ( ) )
6+
7+ const newVersion = process . argv [ 2 ]
8+ if ( ! newVersion ) {
9+ throw new Error ( 'Please provide version!' )
10+ }
11+
12+ for ( const pkg of workspace . packages . filter ( p => ! p . data . private ) ) {
13+ workspace . setVersion ( pkg . data . name , newVersion ! )
14+ }
15+
16+ await workspace . save ( )
17+ }
18+
19+ main ( ) . catch ( ( err ) => {
20+ consola . error ( err )
21+ process . exit ( 1 )
22+ } )
You can’t perform that action at this time.
0 commit comments