Skip to content

Commit

Permalink
chore: update node-addon-api@8.2.0 (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak1556 authored Oct 2, 2024
1 parent 254f7fd commit c45ebd9
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 4 deletions.
44 changes: 44 additions & 0 deletions .azure-pipelines/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion .yarnrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
disturl "https://electronjs.org/headers"
target "19.1.3"
target "32.1.2"
runtime "electron"
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
},
Expand Down

0 comments on commit c45ebd9

Please sign in to comment.