File tree Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Expand file tree Collapse file tree 2 files changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ npm i @simple-release/npm
48
48
import { Releaser } from ' @simple-release/core'
49
49
import { NpmProject } from ' @simple-release/npm'
50
50
51
- const project = new NpmProject ()
52
-
53
- await new Releaser (project )
51
+ await new Releaser ({
52
+ project : new NpmProject ()
53
+ } )
54
54
.bump ()
55
55
.commit ()
56
56
.tag ()
@@ -65,11 +65,11 @@ Workspaces example:
65
65
import { Releaser } from ' @simple-release/core'
66
66
import { NpmWorkspacesProject } from ' @simple-release/npm'
67
67
68
- const project = new NpmWorkspacesProject ({
69
- mode: ' independent'
68
+ await new Releaser ({
69
+ project: new NpmWorkspacesProject ({
70
+ mode: ' independent'
71
+ })
70
72
})
71
-
72
- await new Releaser (project)
73
73
.bump ()
74
74
.commit ()
75
75
.tag ()
@@ -130,9 +130,9 @@ Function to compose the main manifest with secondaries. It can be needed if you
130
130
131
131
``` js
132
132
import { ComposedProjectManifest } from ' @simple-release/core'
133
- import { NpmProject } from ' @simple-release/npm'
133
+ import { NpmWorkspacesProject } from ' @simple-release/npm'
134
134
135
- new NpmProject ({
135
+ new NpmWorkspacesProject ({
136
136
compose : (main , isRoot ) => (
137
137
isRoot
138
138
? main
Original file line number Diff line number Diff line change @@ -48,9 +48,9 @@ npm i @simple-release/pnpm
48
48
import { Releaser } from ' @simple-release/core'
49
49
import { PnpmProject } from ' @simple-release/pnpm'
50
50
51
- const project = new PnpmProject ()
52
-
53
- await new Releaser (project )
51
+ await new Releaser ({
52
+ project : new PnpmProject ()
53
+ } )
54
54
.bump ()
55
55
.commit ()
56
56
.tag ()
@@ -65,11 +65,11 @@ Workspaces example:
65
65
import { Releaser } from ' @simple-release/core'
66
66
import { PnpmWorkspacesProject } from ' @simple-release/pnpm'
67
67
68
- const project = new PnpmWorkspacesProject ({
69
- mode: ' independent'
68
+ await new Releaser ({
69
+ project: new PnpmWorkspacesProject ({
70
+ mode: ' independent'
71
+ })
70
72
})
71
-
72
- await new Releaser (project)
73
73
.bump ()
74
74
.commit ()
75
75
.tag ()
@@ -130,9 +130,9 @@ Function to compose the main manifest with secondaries. It can be needed if you
130
130
131
131
``` js
132
132
import { ComposedProjectManifest } from ' @simple-release/core'
133
- import { PnpmProject } from ' @simple-release/pnpm'
133
+ import { PnpmWorkspacesProject } from ' @simple-release/pnpm'
134
134
135
- new PnpmProject ({
135
+ new PnpmWorkspacesProject ({
136
136
compose : (main , isRoot ) => (
137
137
isRoot
138
138
? main
You can’t perform that action at this time.
0 commit comments