Skip to content

Commit

Permalink
chore: cleanup test flags and tested Node.js versions
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Dec 4, 2024
1 parent 43dba40 commit dc553a6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions .electron_flags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ echo $(electron -i <<< 'process.exit(0)' 2> /dev/null | grep "Using" | awk '{$1=
electron -i <<< 'process.exit(parseInt(process.versions.node, 10))' &> /dev/null
NODE_VERSION=$?
export NODE_OPTIONS='--no-warnings --enable-source-maps --import=tsx/esm'

if [[ $NODE_VERSION -eq 18 ]]; then
export NODE_OPTIONS+=' --experimental-global-webcrypto'
fi
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
node-versions:
uses: panva/.github/.github/workflows/node-versions.yml@main
with:
min: 18
min: 20

node:
needs:
Expand Down
4 changes: 0 additions & 4 deletions .node_flags.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,3 @@ echo "Using Node.js $(node --version)"
node -e 'process.exit(parseInt(process.versions.node, 10))' &> /dev/null
NODE_VERSION=$?
export NODE_OPTIONS='--no-warnings --enable-source-maps --import=tsx/esm'

if [[ $NODE_VERSION -eq 18 ]]; then
export NODE_OPTIONS+=' --experimental-global-webcrypto'
fi

0 comments on commit dc553a6

Please sign in to comment.