Skip to content

Commit 9627ecf

Browse files
committed
Fix webpack-test
1 parent efbad0a commit 9627ecf

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test/webpack/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
"private": true,
44
"version": "1.0.0",
55
"scripts": {
6+
"!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).",
7+
"!note2": "This is needed because webpack4/watchpack1.7 crashes when trying to enumerate circular symlink.",
8+
"preinstall": "mv $(npm pack -pq ../../) iconv-lite.tgz",
9+
"postinstall": "rm iconv-lite.tgz",
610
"test": "karma start"
711
},
812
"devDependencies": {
@@ -15,6 +19,6 @@
1519
"webpack": "^4.43.0"
1620
},
1721
"dependencies": {
18-
"iconv-lite": "file:../.."
22+
"iconv-lite": "file:iconv-lite.tgz"
1923
}
2024
}

0 commit comments

Comments
 (0)