diff --git a/test/webpack/package.json b/test/webpack/package.json index 7b9434c..ef01f4f 100644 --- a/test/webpack/package.json +++ b/test/webpack/package.json @@ -3,6 +3,10 @@ "private": true, "version": "1.0.0", "scripts": { + "!note1": "NOTE: We do `npm pack` of the main iconv-lite package followed by installing it to create a copy of the package (not symlink).", + "!note2": "This is needed because webpack4/watchpack1.7 crashes when trying to enumerate circular symlink.", + "preinstall": "mv $(npm pack -pq ../../) iconv-lite.tgz", + "postinstall": "rm iconv-lite.tgz", "test": "karma start" }, "devDependencies": { @@ -15,6 +19,6 @@ "webpack": "^4.43.0" }, "dependencies": { - "iconv-lite": "file:../.." + "iconv-lite": "file:iconv-lite.tgz" } }