Skip to content

Commit

Permalink
fix: remove workaround because now is a solved Bun issue
Browse files Browse the repository at this point in the history
  • Loading branch information
aralroca committed Oct 12, 2023
1 parent 24fee3f commit 21378f8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"module": "./out/core/index.js",
"main": "./out/core/index.js",
"types": "./out/core/index.d.ts",
"version": "0.0.7",
"version": "0.0.8",
"description": "The next-gen web framework.",
"license": "MIT",
"type": "module",
Expand Down Expand Up @@ -68,4 +68,4 @@
"astring": "1.8.6",
"meriyah": "4.3.7"
}
}
}
9 changes: 7 additions & 2 deletions src/create-brisa-app/create-brisa-app.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mkdir $PROJECT_NAME

cd $PROJECT_NAME

$BRISA_VERSION="0.0.7"
$BRISA_VERSION="0.0.8"

echo ""
echo "🛠️ Installing brisa..."
Expand Down Expand Up @@ -58,7 +58,7 @@ echo "{
\"brisa\", // add dom and dom.iterable support
],
// Please, do not modify this path alias configuration.
// It's internally used in Brisa "types.ts" file to enable type-safe
// It's internally used in Brisa \"types.ts\" file to enable type-safe
\"paths\": {
\"@/*\": [\"*\"],
}
Expand Down Expand Up @@ -110,6 +110,11 @@ echo "export default function Homepage() {
);
}" > src/pages/index.tsx



echo "build
node_modules" > .gitignore

bun install

cd ..
Expand Down
4 changes: 2 additions & 2 deletions src/create-brisa-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-brisa-app",
"version": "0.0.7",
"version": "0.0.8",
"license": "MIT",
"type": "module",
"author": {
Expand All @@ -17,4 +17,4 @@
"bin": {
"create-brisa-app": "./create-brisa-app.sh"
}
}
}
8 changes: 0 additions & 8 deletions src/utils/compile-files/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,6 @@ export default async function compileFiles(
if (layoutPath) entrypoints.push(layoutPath);
if (i18nPath) entrypoints.push(i18nPath);

// This fix Bun build with only one entrypoint because it doesn't create the subfolder
if (entrypoints.length === 1) {
const subfolder = entrypoints[0].includes(path.join(outdir, "api"))
? "api"
: "pages";
outdir = path.join(outdir, subfolder);
}

const { success, logs, outputs } = await Bun.build({
entrypoints,
outdir,
Expand Down

0 comments on commit 21378f8

Please sign in to comment.