Skip to content

Commit fcbcf3b

Browse files
Merge branch 'dev' into Outputting_ES_Code
2 parents a5bd49f + 8b0d218 commit fcbcf3b

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

.prettierignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
lib/
22

3+
scripts/**/*
4+
35
src/**/*.js
46
src/**/*.js.map
57
src/**/*.d.ts
68

79
spec/**/*.js
810
spec/**/*.js.map
9-
spec/**/*.d.ts
11+
spec/**/*.d.ts

scripts/src/gulpfile.js

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,20 @@ const replace = require("gulp-replace");
33
const jsonModify = require("gulp-json-modify");
44
const argv = require("yargs").argv;
55

6-
function ReplaceVersionInJson() {
7-
const versionKey = "version";
8-
return src(["../../package.json", "../../package-lock.json"])
9-
.pipe(
10-
jsonModify({
11-
key: versionKey,
12-
value: argv.newVersion,
13-
}),
14-
)
15-
.pipe(dest("../../"));
6+
function ReplaceVersionInJson () {
7+
const versionKey = "version";
8+
return src(["../../package.json", "../../package-lock.json"])
9+
.pipe(jsonModify({
10+
key: versionKey,
11+
value: argv.newVersion
12+
}))
13+
.pipe(dest("../../"));
1614
}
1715

18-
function ReplaceVersionInConstants() {
19-
return src(["../../src/Constants.ts"])
20-
.pipe(replace(/PACKAGE_VERSION ?= ?".*?"/g, `PACKAGE_VERSION = "${argv.newVersion}"`))
21-
.pipe(dest("../../src"));
16+
function ReplaceVersionInConstants () {
17+
return src(["../../src/Constants.ts"])
18+
.pipe(replace(/PACKAGE_VERSION ?= ?".*?"/g, `PACKAGE_VERSION = "${argv.newVersion}"`))
19+
.pipe(dest("../../src"));
2220
}
2321

2422
exports.ReplaceVersion = series(ReplaceVersionInJson, ReplaceVersionInConstants);

0 commit comments

Comments
 (0)