Skip to content

Commit c376cd7

Browse files
feat: add episode id to show
1 parent d3a608d commit c376cd7

File tree

5 files changed

+3351
-102
lines changed

5 files changed

+3351
-102
lines changed

build/version.js

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
const replace = require("replace-in-file");
2+
const ENTRY = "src/plugin/podlove-web-player.php";
3+
const version = require("../package.json").version;
4+
5+
async function main() {
6+
await replace({
7+
files: ENTRY,
8+
from: /(Version: \d\.\d\.\d?[-]?[\d])/,
9+
to: `Version: ${version}`,
10+
});
11+
12+
await replace({
13+
files: ENTRY,
14+
from: /(define\( \'PODLOVE_WEB_PLAYER_VERSION\'\, \'\d\.\d\.\d?[-]?[\d]\' \))/,
15+
to: `define( 'PODLOVE_WEB_PLAYER_VERSION', '${version}' )`,
16+
});
17+
}
18+
19+
main();

0 commit comments

Comments
 (0)