1
0
mirror of synced 2024-11-15 02:37:40 +01:00

ESM: Added file exists check to npm postinstall script.

This commit is contained in:
n1474335 2018-05-21 11:25:13 +00:00
parent 093a7c8c8a
commit 4990a1f9f1

View File

@ -125,6 +125,6 @@
"test": "grunt test",
"docs": "grunt docs",
"lint": "grunt lint",
"postinstall": "npx j2m node_modules/crypto-api/src/crypto-api.js"
"postinstall": "[ -f node_modules/crypto-api/src/crypto-api.mjs ] || npx j2m node_modules/crypto-api/src/crypto-api.js"
}
}