Fixed windows build with latest node.js lts
This commit is contained in:
parent
780ccdc44c
commit
ca946343d2
@ -7,14 +7,15 @@
|
|||||||
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
|
"lint": "eslint --ext .js,.vue --ignore-path .gitignore .",
|
||||||
"precommit": "yarn lint",
|
"precommit": "yarn lint",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"dev": "cross-env NODE_OPTIONS='--max-old-space-size=8192' nuxt",
|
"dev": "cross-env NODE_OPTIONS=\"--max_old_space_size=8192 --openssl-legacy-provider\" nuxt",
|
||||||
"build": "nuxt build",
|
"build": "cross-env NODE_OPTIONS=\"--max_old_space_size=8192 --openssl-legacy-provider\" nuxt build",
|
||||||
"start": "nuxt start",
|
"start": "nuxt start",
|
||||||
"update:zip": "node -r esm scripts/updateZip.js",
|
"update:zip": "node -r esm scripts/updateZip.js",
|
||||||
"update:events": "node -r esm scripts/updateEvents.js --network",
|
"update:events": "node -r esm scripts/updateEvents.js --network",
|
||||||
"update:encrypted": "node -r esm scripts/updateEncryptedEvents.js --network",
|
"update:encrypted": "node -r esm scripts/updateEncryptedEvents.js --network",
|
||||||
"update:tree": "node -r esm scripts/updateTree.js --network",
|
"update:tree": "node -r esm scripts/updateTree.js --network",
|
||||||
"generate": "cross-env NODE_OPTIONS='--max-old-space-size=8192' nuxt generate && cp dist/404.html dist/ipfs-404.html",
|
"update:copy": "node -r esm scripts/copyFile.js dist/404.html dist/ipfs-404.html",
|
||||||
|
"generate": "cross-env NODE_OPTIONS=\"--max_old_space_size=8192 --openssl-legacy-provider\" nuxt generate && yarn update:copy",
|
||||||
"check:sync": "node -r esm scripts/checkEventsSync.js",
|
"check:sync": "node -r esm scripts/checkEventsSync.js",
|
||||||
"ipfsUpload": "node scripts/ipfsUpload.js",
|
"ipfsUpload": "node scripts/ipfsUpload.js",
|
||||||
"deploy:ipfs": "yarn generate && yarn ipfsUpload"
|
"deploy:ipfs": "yarn generate && yarn ipfsUpload"
|
||||||
|
15
scripts/copyFile.js
Normal file
15
scripts/copyFile.js
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
import { argv } from 'process'
|
||||||
|
import { copyFile } from 'fs'
|
||||||
|
|
||||||
|
function copyFiles() {
|
||||||
|
const [, , inFile, outFile] = argv
|
||||||
|
|
||||||
|
copyFile(inFile, outFile, function(err) {
|
||||||
|
if (err) {
|
||||||
|
throw err
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(`Copied ${inFile} to ${outFile}`)
|
||||||
|
})
|
||||||
|
}
|
||||||
|
copyFiles()
|
Loading…
Reference in New Issue
Block a user