next-bun-compile 0.6.4 → 0.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  compile,
4
4
  generateEntryPoint
5
- } from "./index-rh4vdfr5.js";
5
+ } from "./index-mcq5wghd.js";
6
6
 
7
7
  // src/cli.ts
8
8
  import { existsSync } from "node:fs";
@@ -409,20 +409,15 @@ async function extractAssets() {
409
409
  for (const [alias, target] of turbopackAliases) {
410
410
  const aliasPath = path.join(baseDir, ".next/node_modules", alias);
411
411
  if (fs.existsSync(aliasPath)) continue;
412
- fs.mkdirSync(path.dirname(aliasPath), { recursive: true });
413
- try {
414
- fs.symlinkSync(target, aliasPath, "dir");
415
- } catch {
416
- fs.mkdirSync(aliasPath, { recursive: true });
417
- fs.writeFileSync(
418
- path.join(aliasPath, "package.json"),
419
- JSON.stringify({ name: alias, main: "index.js" })
420
- );
421
- fs.writeFileSync(
422
- path.join(aliasPath, "index.js"),
423
- "module.exports = require(" + JSON.stringify(target) + ");"
424
- );
425
- }
412
+ fs.mkdirSync(aliasPath, { recursive: true });
413
+ fs.writeFileSync(
414
+ path.join(aliasPath, "package.json"),
415
+ JSON.stringify({ name: alias, main: "index.js" })
416
+ );
417
+ fs.writeFileSync(
418
+ path.join(aliasPath, "index.js"),
419
+ "module.exports = require(" + JSON.stringify(target) + ");"
420
+ );
426
421
  }
427
422
  if (n > 0) console.log(\`Extracted \${n} assets\`);
428
423
  }
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  __require,
3
3
  compile,
4
4
  generateEntryPoint
5
- } from "./index-rh4vdfr5.js";
5
+ } from "./index-mcq5wghd.js";
6
6
 
7
7
  // src/index.ts
8
8
  import { join } from "node:path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-bun-compile",
3
- "version": "0.6.4",
3
+ "version": "0.6.5",
4
4
  "description": "Next.js Build Adapter that compiles your app into a Bun single-file executable",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",