소스 검색

ESM: Added file exists check to npm postinstall script.

n1474335 7 년 전
부모
커밋
4990a1f9f1
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      package.json

+ 1 - 1
package.json

@@ -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"
   }
 }