File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ MissingPackageError.prototype = Error.prototype;
64
64
async function computeDiff ( type ) {
65
65
const packageName = type . replace ( / \d + $ / , '' ) ;
66
66
const majorVersionMatch = type . match ( / ( \d + ) $ / ) ;
67
- const majorVersion = majorVersionMatch ? '@' + majorVersionMatch [ 1 ] : '' ;
67
+ const majorVersion = majorVersionMatch ? majorVersionMatch [ 1 ] : '' ;
68
68
69
69
// Install @webref package in tmp folder
70
70
// If package is pinned to a major version, we'll use that one.
@@ -88,12 +88,12 @@ async function computeDiff(type) {
88
88
}
89
89
}
90
90
try {
91
- execSync ( `npm install @webref/${ packageName } ${ versionToInstall } ` , {
91
+ execSync ( `npm install @webref/${ packageName } @ ${ versionToInstall } ` , {
92
92
cwd : tmpFolder
93
93
} ) ;
94
94
}
95
95
catch ( err ) {
96
- throw new MissingPackageError ( `Package @webref/${ packageName } ${ versionToInstall } does not exist or could not be installed.` ) ;
96
+ throw new MissingPackageError ( `Package @webref/${ packageName } @ ${ versionToInstall } does not exist or could not be installed.` ) ;
97
97
}
98
98
99
99
// Extract released version (will be used in the body of the pre-release PR)
You can’t perform that action at this time.
0 commit comments