@absolutejs/absolute 0.1.12 → 0.1.13
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/index.js +72 -72
- package/dist/src/core/build.d.ts +1 -1
- package/package.json +1 -1
- package/src/core/build.ts +10 -1
package/dist/src/core/build.d.ts
CHANGED
|
@@ -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 }
|
|
10
|
+
export declare const build: ({ buildDir, assetsDir, reactIndexDir, javascriptDir, typeScriptDir, reactPagesDir, htmlDir }?: BuildConfig) => Promise<Record<string, string>>;
|
|
11
11
|
export {};
|
package/package.json
CHANGED
package/src/core/build.ts
CHANGED
|
@@ -27,9 +27,18 @@ export const build = async ({
|
|
|
27
27
|
typeScriptDir,
|
|
28
28
|
reactPagesDir,
|
|
29
29
|
htmlDir
|
|
30
|
-
}: BuildConfig) => {
|
|
30
|
+
}: BuildConfig = {}) => {
|
|
31
31
|
const start = performance.now();
|
|
32
32
|
console.log("Building start");
|
|
33
|
+
console.log("Build config", {
|
|
34
|
+
buildDir,
|
|
35
|
+
assetsDir,
|
|
36
|
+
reactIndexDir,
|
|
37
|
+
javascriptDir,
|
|
38
|
+
typeScriptDir,
|
|
39
|
+
reactPagesDir,
|
|
40
|
+
htmlDir
|
|
41
|
+
});
|
|
33
42
|
|
|
34
43
|
console.log("Creating build directory");
|
|
35
44
|
const projectRoot = cwd();
|