@tyndall/build 0.0.3 → 0.0.4

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.
Files changed (2) hide show
  1. package/dist/build.js +4 -4
  2. package/package.json +3 -3
package/dist/build.js CHANGED
@@ -709,11 +709,11 @@ const findDynamicImportModules = async (modulePaths) => {
709
709
  };
710
710
  export const build = async (options) => {
711
711
  const rootDir = options.rootDir;
712
- const routesDir = resolvePath(rootDir, options.routesDir ?? join("src", "pages"));
713
- const publicDir = resolvePath(rootDir, options.publicDir ?? "public");
714
- const outDir = resolvePath(rootDir, options.outDir ?? "dist");
715
- const mode = options.mode ?? "ssg";
716
712
  const config = await loadConfig(rootDir);
713
+ const routesDir = resolvePath(rootDir, options.routesDir ?? config.routesDir);
714
+ const publicDir = resolvePath(rootDir, options.publicDir ?? config.publicDir);
715
+ const outDir = resolvePath(rootDir, options.outDir ?? config.outDir);
716
+ const mode = options.mode ?? config.mode;
717
717
  const hyperPlugins = config.plugins;
718
718
  const buildVersion = config.build.version.trim();
719
719
  const adapterRegistry = options.adapterRegistry ?? {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tyndall/build",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@swc/core": "^1.15.17",
25
- "@tyndall/core": "^0.0.3",
26
- "@tyndall/shared": "^0.0.3",
25
+ "@tyndall/core": "^0.0.4",
26
+ "@tyndall/shared": "^0.0.4",
27
27
  "esbuild": "0.21.5"
28
28
  }
29
29
  }