Specify node version
This commit is contained in:
parent
345ad741b3
commit
e16ce1d9c2
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@ -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
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user