Skip to content

Commit d2c1900

Browse files
author
Chuanqi
committed
add node engine version
1 parent 03ab7af commit d2c1900

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# v1.0.0-alpha.23
22

3+
- Added: Minimum required Node version in package.json
34
- Fixed: YouTube title extraction didn't work
45

56
# v1.0.0-alpha.21

package-lock.json

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/server/package.json

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"bin": {
2121
"osmosnote": "main.js"
2222
},
23+
"engines": {
24+
"node": "^18"
25+
},
2326
"files": [
2427
"src/**/*",
2528
"dist/**/*",

packages/server/src/lib/diagnostics.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { homedir } from "os";
21
import { bold, gray, red } from "./print";
32
import { getRunShellError, runShell } from "./run-shell";
43

@@ -26,6 +25,7 @@ export async function printDiagnosticsToConsole() {
2625

2726
export async function getSystemInformation() {
2827
const version = await getPackageVersion();
28+
const nodeVersion = getNodeVersion();
2929
const rgPath = await getBinPath("rg");
3030
const rgVersion = await getBinVersion("rg", (stdout) => stdout.split("\n")?.[0]?.replace("ripgrep ", ""));
3131
const gitPath = await getBinPath("git");
@@ -35,6 +35,7 @@ export async function getSystemInformation() {
3535

3636
return {
3737
version,
38+
nodeVersion,
3839
rgPath,
3940
rgVersion,
4041
gitPath,
@@ -87,3 +88,7 @@ export async function getBinVersion(
8788
return null;
8889
}
8990
}
91+
92+
export function getNodeVersion() {
93+
return process.version;
94+
}

0 commit comments

Comments
 (0)