File tree Expand file tree Collapse file tree 7 files changed +25
-15
lines changed Expand file tree Collapse file tree 7 files changed +25
-15
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ stages:
212
212
213
213
git remote rm origin
214
214
215
- git remote add origin https://$(githubPersonalAccessToken)@github.com/smapiot/piral.git
215
+ git remote add origin https://$(githubPersonalAccessToken)@github.com/smapiot/piral-cli-vite .git
216
216
217
217
git fetch origin
218
218
Original file line number Diff line number Diff line change 1
1
{
2
- "packages" : [
3
- " packages/*"
4
- ],
5
2
"npmClient" : " yarn" ,
6
3
"useWorkspaces" : true ,
7
- "version" : " 0.15.0 "
4
+ "version" : " 0.14.32 "
8
5
}
Original file line number Diff line number Diff line change 22
22
"devDependencies" : {
23
23
"jest" : " ^25.0.0" ,
24
24
"jest-cli" : " ^25.0.0" ,
25
- "lerna" : " ^4 .0.0 " ,
25
+ "lerna" : " ^6 .0.3 " ,
26
26
"prettier" : " ^2.1.1" ,
27
27
"ts-jest" : " ^25.0.0" ,
28
28
"tslint" : " ^5.12.1" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " piral-cli-vite" ,
3
- "version" : " 0.15.0 " ,
3
+ "version" : " 0.14.32 " ,
4
4
"description" : " Provides debug and build capabilities for pilets and Piral instances using Vite." ,
5
5
"keywords" : [
6
6
" piral-cli" ,
46
46
"dependencies" : {
47
47
"sass" : " ^1.54.0" ,
48
48
"vite" : " ^2" ,
49
- "vite-plugin-codegen" : " ^0.15.0 " ,
49
+ "vite-plugin-codegen" : " ^0.14.32 " ,
50
50
"vite-plugin-environment" : " ^1.1.2" ,
51
- "vite-plugin-pilet" : " ^0.15.0 "
51
+ "vite-plugin-pilet" : " ^0.14.32 "
52
52
}
53
53
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vite-plugin-codegen" ,
3
- "version" : " 0.15.0 " ,
3
+ "version" : " 0.14.32 " ,
4
4
"description" : " Adds support for codegen files" ,
5
5
"keywords" : [
6
6
" vite" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vite-plugin-pilet" ,
3
- "version" : " 0.15.0 " ,
3
+ "version" : " 0.14.32 " ,
4
4
"description" : " Adds support for pilet output in Vite" ,
5
5
"keywords" : [
6
6
" vite" ,
Original file line number Diff line number Diff line change @@ -28,15 +28,28 @@ function updateChangelogDate(changelogPath = defaultPath) {
28
28
writeFileSync ( changelogPath , newContent , 'utf8' ) ;
29
29
}
30
30
31
+ function getVersion ( full , flags ) {
32
+ const id = process . env . BUILD_BUILDID || '0' ;
33
+
34
+ if ( flags . includes ( '--beta' ) ) {
35
+ return `${ full } -beta.${ id } ` ;
36
+ } else if ( flags . includes ( '--alpha' ) ) {
37
+ return `${ full } -alpha.${ id } ` ;
38
+ }
39
+
40
+ return full ;
41
+ }
42
+
31
43
if ( require . main === module ) {
32
- const version = getChangelogVersion ( ) ;
33
- const arg = process . argv . pop ( ) ;
44
+ const args = process . argv ;
45
+ const changelogVersion = getChangelogVersion ( ) ;
46
+ const version = getVersion ( changelogVersion , args ) ;
34
47
const cwd = process . cwd ( ) ;
35
48
console . log ( version ) ;
36
49
37
- if ( arg === '--update' ) {
50
+ if ( args . includes ( '--update' ) ) {
38
51
updateChangelogDate ( ) ;
39
- } else if ( arg === '--apply' ) {
52
+ } else if ( args . includes ( '--apply' ) ) {
40
53
execSync ( `lerna version ${ version } --no-git-tag-version --yes` , {
41
54
cwd,
42
55
stdio : 'inherit' ,
You can’t perform that action at this time.
0 commit comments