Skip to content

Commit

Permalink
use bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
s1gr1d committed Oct 16, 2024
1 parent e758600 commit 622551f
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 106 deletions.
7 changes: 7 additions & 0 deletions dev-packages/e2e-tests/test-applications/nuxt-3/copyIITM.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This script copies the `import-in-the-middle` content of the E2E test project root `node_modules` to the build output `node_modules`
# For some reason, some files are missing in the output (like `hook.mjs`) and this is not reproducible in external, standalone projects.
#
# Things we tried (that did not fix the problem):
# - Adding a resolution for `@vercel/nft` v0.27.0 (this worked in the standalone project)
# - Also adding `@vercel/nft` v0.27.0 to pnpm `peerDependencyRules`
cp -r node_modules/.pnpm/import-in-the-middle@1.*/node_modules/import-in-the-middle .output/server/node_modules/import-in-the-middle
52 changes: 0 additions & 52 deletions dev-packages/e2e-tests/test-applications/nuxt-3/copyIITM.mjs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build && node ./copyIITM.mjs",
"build": "nuxt build && bash ./copyIITM.bash",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
Expand Down
7 changes: 7 additions & 0 deletions dev-packages/e2e-tests/test-applications/nuxt-4/copyIITM.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This script copies the `import-in-the-middle` content of the E2E test project root `node_modules` to the build output `node_modules`
# For some reason, some files are missing in the output (like `hook.mjs`) and this is not reproducible in external, standalone projects.
#
# Things we tried (that did not fix the problem):
# - Adding a resolution for `@vercel/nft` v0.27.0 (this worked in the standalone project)
# - Also adding `@vercel/nft` v0.27.0 to pnpm `peerDependencyRules`
cp -r node_modules/.pnpm/import-in-the-middle@1.*/node_modules/import-in-the-middle .output/server/node_modules/import-in-the-middle
52 changes: 0 additions & 52 deletions dev-packages/e2e-tests/test-applications/nuxt-4/copyIITM.mjs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"type": "module",
"scripts": {
"build": "nuxt build && node ./copyIITM.mjs",
"build": "nuxt build && bash ./copyIITM.bash",
"dev": "nuxt dev",
"generate": "nuxt generate",
"preview": "nuxt preview",
Expand Down

0 comments on commit 622551f

Please sign in to comment.