diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1a0e8a0e..0f5b8646 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,9 +12,13 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: '10.x' - name: Setup run: | - npm i + npm install export NODE_OPTIONS=--max_old_space_size=2048 - name: Lint run: npx grunt lint diff --git a/package.json b/package.json index 1731574d..a9ed8c85 100644 --- a/package.json +++ b/package.json @@ -172,7 +172,7 @@ "testui": "grunt testui", "testuidev": "npx nightwatch --env=dev", "lint": "grunt lint", - "postinstall": "sh postinstall.sh", + "postinstall": "bash postinstall.sh", "newop": "node --experimental-modules src/core/config/scripts/newOperation.mjs" } } diff --git a/postinstall.sh b/postinstall.sh index dc685308..e244070e 100755 --- a/postinstall.sh +++ b/postinstall.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Add file extensions to Crypto-Api imports if [[ "$OSTYPE" == "darwin"* ]]; then find ./node_modules/crypto-api/src/ \( -type d -name .git -prune \) -o -type f -print0 | xargs -0 sed -i '' -e '/\.mjs/!s/\(from "\.[^"]*\)";/\1.mjs";/g'