chore: pin Node version for reproducible releases (#779)
This commit is contained in:
@@ -12,10 +12,10 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node 22
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
node-version-file: .node-version
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
@@ -29,10 +29,10 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node 22
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
node-version-file: .node-version
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
@@ -46,10 +46,10 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node 22
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
node-version-file: .node-version
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
@@ -20,10 +20,10 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0 # Full history for changelog generation
|
||||
|
||||
- name: Setup Node 20
|
||||
- name: Setup Node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
node-version-file: .node-version
|
||||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
24.16.0
|
||||
Generated
+3
@@ -9,6 +9,9 @@
|
||||
"version": "2.0.23",
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=24 <25"
|
||||
},
|
||||
"dependencies": {
|
||||
"@anthropic-ai/claude-agent-sdk": "^0.3.159",
|
||||
"@codemirror/state": "^6.5.0",
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
"version": "2.0.23",
|
||||
"description": "Claudian - Claude Code embedded in Obsidian sidebar",
|
||||
"main": "main.js",
|
||||
"engines": {
|
||||
"node": ">=24 <25"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "node scripts/postinstall.mjs",
|
||||
"build:css": "node scripts/build-css.mjs",
|
||||
|
||||
@@ -73,14 +73,12 @@ function installTreeAwareKill(child: ChildProcess, spawnSpec: WindowsCmdShimSpaw
|
||||
return;
|
||||
}
|
||||
|
||||
const originalKill = child.kill;
|
||||
const originalKill: (signal?: NodeJS.Signals | number) => boolean = child.kill.bind(child);
|
||||
const killableChild = {
|
||||
get pid(): number | undefined {
|
||||
return child.pid;
|
||||
},
|
||||
kill(signal?: NodeJS.Signals | number): boolean {
|
||||
return originalKill.call(child, signal);
|
||||
},
|
||||
kill: (signal?: NodeJS.Signals | number): boolean => originalKill(signal),
|
||||
};
|
||||
|
||||
child.kill = ((signal?: NodeJS.Signals | number): boolean =>
|
||||
|
||||
Reference in New Issue
Block a user