-
-
Notifications
You must be signed in to change notification settings - Fork 313
Expand file tree
/
Copy pathrelease.js
More file actions
22 lines (19 loc) · 812 Bytes
/
release.js
File metadata and controls
22 lines (19 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import path from 'path';
import { fileURLToPath } from 'url';
import { run_core_release } from '../obsidian-smart-env/build/release_runner.js';
import {
build_combined_notes,
latest_release_file,
semver_compare,
} from '../obsidian-smart-env/build/release_notes.js';
const is_main = path.resolve(process.argv[1] ?? '') === fileURLToPath(import.meta.url);
if (is_main) {
run_core_release().catch((err) => {
console.error('Error in release process:', err);
process.exit(1);
});
}
/* -------------------------------------------------------------------------- */
/* Exports for unit tests */
/* -------------------------------------------------------------------------- */
export { semver_compare, latest_release_file, build_combined_notes };