diff options
Diffstat (limited to 'test/cli/install/migration/complex-workspace/packages/with-postinstall')
3 files changed, 18 insertions, 0 deletions
diff --git a/test/cli/install/migration/complex-workspace/packages/with-postinstall/.gitignore b/test/cli/install/migration/complex-workspace/packages/with-postinstall/.gitignore new file mode 100644 index 000000000..c0e59404b --- /dev/null +++ b/test/cli/install/migration/complex-workspace/packages/with-postinstall/.gitignore @@ -0,0 +1 @@ +postinstall.txt
\ No newline at end of file diff --git a/test/cli/install/migration/complex-workspace/packages/with-postinstall/package.json b/test/cli/install/migration/complex-workspace/packages/with-postinstall/package.json new file mode 100644 index 000000000..5959d95be --- /dev/null +++ b/test/cli/install/migration/complex-workspace/packages/with-postinstall/package.json @@ -0,0 +1,11 @@ +{ + "name": "with-postinstall", + "version": "1.0.0", + "dependencies": { + "sharp": "*", + "svelte": "3.50.0" + }, + "scripts": { + "postinstall": "bun postinstall.js" + } +} diff --git a/test/cli/install/migration/complex-workspace/packages/with-postinstall/postinstall.js b/test/cli/install/migration/complex-workspace/packages/with-postinstall/postinstall.js new file mode 100644 index 000000000..88ed99cf4 --- /dev/null +++ b/test/cli/install/migration/complex-workspace/packages/with-postinstall/postinstall.js @@ -0,0 +1,6 @@ +import { writeFileSync } from "fs"; + +writeFileSync(import.meta.dir + "/postinstall.txt", `i ran!`); + +// TODO: postinstall doesnt run sharp's scripts yet :( +// import "sharp"; |