From c45ebd9c7b06e809e80cc3757951343aae557529 Mon Sep 17 00:00:00 2001 From: Robo Date: Wed, 2 Oct 2024 22:08:21 +0900 Subject: [PATCH] chore: update node-addon-api@8.2.0 (#46) --- .azure-pipelines/pipeline.yml | 44 +++++++++++++++++++++++++++++++++++ .yarnrc | 2 +- package.json | 6 ++--- 3 files changed, 48 insertions(+), 4 deletions(-) diff --git a/.azure-pipelines/pipeline.yml b/.azure-pipelines/pipeline.yml index 7b6494db3..18e24a0d4 100644 --- a/.azure-pipelines/pipeline.yml +++ b/.azure-pipelines/pipeline.yml @@ -27,10 +27,54 @@ extends: - name: sqlite3 buildSteps: + - script: | + set -e + includes=$(cat << 'EOF' + { + "target_defaults": { + "conditions": [ + ["OS=='linux'", { + 'cflags_cc!': [ '-std=gnu++20' ], + 'cflags_cc': [ '-std=gnu++2a' ], + }] + ] + } + } + EOF + ) + if [ ! -d "$HOME/.gyp" ]; then + mkdir -p "$HOME/.gyp" + fi + echo "$includes" > "$HOME/.gyp/include.gypi" + displayName: Override gnu target for older sysroot + condition: eq(variables['Agent.OS'], 'Linux') + - script: yarn install displayName: Install and build testSteps: + - script: | + set -e + includes=$(cat << 'EOF' + { + "target_defaults": { + "conditions": [ + ["OS=='linux'", { + 'cflags_cc!': [ '-std=gnu++20' ], + 'cflags_cc': [ '-std=gnu++2a' ], + }] + ] + } + } + EOF + ) + if [ ! -d "$HOME/.gyp" ]; then + mkdir -p "$HOME/.gyp" + fi + echo "$includes" > "$HOME/.gyp/include.gypi" + displayName: Override gnu target for older sysroot + condition: eq(variables['Agent.OS'], 'Linux') + - script: yarn install displayName: Install and build diff --git a/.yarnrc b/.yarnrc index 211c02ae0..9a4ef8c6e 100644 --- a/.yarnrc +++ b/.yarnrc @@ -1,3 +1,3 @@ disturl "https://electronjs.org/headers" -target "19.1.3" +target "32.1.2" runtime "electron" \ No newline at end of file diff --git a/package.json b/package.json index b22c8c260..1697a96cd 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@vscode/sqlite3", "description": "Asynchronous, non-blocking SQLite3 bindings", - "version": "5.1.6-vscode", + "version": "5.1.7-vscode", "homepage": "https://github.com/microsoft/vscode-node-sqlite3", "author": { "name": "Mapbox", @@ -48,11 +48,11 @@ "url": "https://github.com/microsoft/vscode-node-sqlite3.git" }, "dependencies": { - "node-addon-api": "^4.2.0", + "node-addon-api": "^8.2.0", "tar": "^6.1.11" }, "devDependencies": { - "electron": "22.3.25", + "electron": "32.1.2", "eslint": "^7.32.0", "mocha": "7.2.0" },