diff --git a/test/packages/pre-and-postinstall-scripts-example/package.json b/test/packages/pre-and-postinstall-scripts-example/package.json index eb146be685..118b4d2acb 100644 --- a/test/packages/pre-and-postinstall-scripts-example/package.json +++ b/test/packages/pre-and-postinstall-scripts-example/package.json @@ -4,13 +4,16 @@ "description": "A package that creates files by pre- and postinstall scripts", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "preinstall": "node create generated-by-preinstall", - "postinstall": "node create generated-by-postinstall" + "preinstall": "hello-world-js-bin && node create generated-by-preinstall", + "postinstall": "hello-world-js-bin && node create generated-by-postinstall" }, "author": "Zoltan Kochan (http://kochan.io/)", "license": "MIT", "repository": { "type": "git", "url": "https://github.com/pnpm/pnpm/tree/master/test/packages/postinstall-example" + }, + "dependencies": { + "hello-world-js-bin": "1.0.0" } }