diff options
Diffstat (limited to 'test/cli/install/migration/complex-workspace/packages')
7 files changed, 44 insertions, 0 deletions
diff --git a/test/cli/install/migration/complex-workspace/packages/body-parser/isfake.txt b/test/cli/install/migration/complex-workspace/packages/body-parser/isfake.txt new file mode 100644 index 000000000..f32a5804e --- /dev/null +++ b/test/cli/install/migration/complex-workspace/packages/body-parser/isfake.txt @@ -0,0 +1 @@ +true
\ No newline at end of file diff --git a/test/cli/install/migration/complex-workspace/packages/body-parser/package.json b/test/cli/install/migration/complex-workspace/packages/body-parser/package.json new file mode 100644 index 000000000..e0c363a20 --- /dev/null +++ b/test/cli/install/migration/complex-workspace/packages/body-parser/package.json @@ -0,0 +1,7 @@ +{ + "name": "body-parser", + "version": "200.0.0", + "dependencies": { + "svelte": "git+ssh://git@gitlab.com/dylan-conway/public-install-test.git#93f3aa4ec9ca8a0bacc010776db48bfcd915c44c" + } +} diff --git a/test/cli/install/migration/complex-workspace/packages/lol-package/package.json b/test/cli/install/migration/complex-workspace/packages/lol-package/package.json new file mode 100644 index 000000000..a90e57966 --- /dev/null +++ b/test/cli/install/migration/complex-workspace/packages/lol-package/package.json @@ -0,0 +1,6 @@ +{ + "name": "lol", + "dependencies": { + "esbuild": "^0.19.4" + } +} diff --git a/test/cli/install/migration/complex-workspace/packages/second/package.json b/test/cli/install/migration/complex-workspace/packages/second/package.json new file mode 100644 index 000000000..5c4d8b2c9 --- /dev/null +++ b/test/cli/install/migration/complex-workspace/packages/second/package.json @@ -0,0 +1,12 @@ +{ + "name": "second", + "version": "3.0.0", + "dependencies": { + "body-parser": "npm:express@*", + "express": "npm:svelte@*", + "hello": "0.3.2", + "lol": "*", + "not-body-parser": "*", + "svelte": "4.1.0" + } +} 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"; |