@absolutejs/absolute 0.1.13 → 0.1.14

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.
@@ -7,5 +7,5 @@ type BuildConfig = {
7
7
  reactPagesDir?: string;
8
8
  htmlDir?: string;
9
9
  };
10
- export declare const build: ({ buildDir, assetsDir, reactIndexDir, javascriptDir, typeScriptDir, reactPagesDir, htmlDir }?: BuildConfig) => Promise<Record<string, string>>;
10
+ export declare const build: ({ buildDir, assetsDir, reactIndexDir, javascriptDir, typeScriptDir, reactPagesDir, htmlDir }?: BuildConfig) => Promise<Record<string, string> | null>;
11
11
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/absolute",
3
- "version": "0.1.13",
3
+ "version": "0.1.14",
4
4
  "description": "A fullstack meta-framework for building web applications with TypeScript",
5
5
  "repository": {
6
6
  "type": "git",
package/src/core/build.ts CHANGED
@@ -54,6 +54,7 @@ export const build = async ({
54
54
  reactPagesDir && join(projectRoot, reactPagesDir);
55
55
  const htmlDirAbsolute = htmlDir && join(projectRoot, htmlDir);
56
56
 
57
+ console.log("projectRoot:", projectRoot);
57
58
  console.log("buildDirAbsolute:", buildDirAbsolute);
58
59
  console.log("assetsDirAbsolute:", assetsDirAbsolute);
59
60
  console.log("reactIndexDirAbsolute:", reactIndexDirAbsolute);
@@ -105,6 +106,11 @@ export const build = async ({
105
106
 
106
107
  console.log("Entry points", entryPaths);
107
108
 
109
+ if (entryPaths.length === 0) {
110
+ console.warn("No entry points found, skipping build");
111
+ return null;
112
+ }
113
+
108
114
  console.log("Building entry points");
109
115
  const { logs, outputs } = await bunBuild({
110
116
  entrypoints: entryPaths,