fix: bun_install adds node_modules to each directory
This commit is contained in:
12
tests/script_test/vite_monorepo/apps/app-b/index.html
Normal file
12
tests/script_test/vite_monorepo/apps/app-b/index.html
Normal file
@@ -0,0 +1,12 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Vite monorepo app B</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<script type="module" src="/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
7
tests/script_test/vite_monorepo/apps/app-b/main.js
Normal file
7
tests/script_test/vite_monorepo/apps/app-b/main.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const app = document.querySelector("#app");
|
||||
|
||||
if (app) {
|
||||
app.textContent = "Hello from monorepo app B";
|
||||
}
|
||||
|
||||
console.log("Hello from monorepo app B");
|
||||
8
tests/script_test/vite_monorepo/apps/app-b/package.json
Normal file
8
tests/script_test/vite_monorepo/apps/app-b/package.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "vite-monorepo-app-b",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user