@guren/server 1.0.0 → 1.1.0

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.
@@ -3,7 +3,7 @@ import {
3
3
  logDevServerBanner,
4
4
  parseImportMap,
5
5
  startViteDevServer
6
- } from "../chunk-VXXZIXAP.js";
6
+ } from "../chunk-QH4NUKSV.js";
7
7
  import {
8
8
  hash
9
9
  } from "../chunk-QQKTH5KX.js";
@@ -1,7 +1,7 @@
1
1
  interface GurenVitePluginOptions {
2
- /** Alias for the application directory (defaults to `@`). */
2
+ /** Alias prefix for application imports such as `@/.guren/routes.gen` (defaults to `@`). */
3
3
  appAlias?: string;
4
- /** Relative path to the application directory (defaults to `app`). */
4
+ /** Directory the alias resolves to, relative to the project root (defaults to `.`, the project root). */
5
5
  appDir?: string;
6
6
  /** Alias for the frontend resources directory (defaults to `@resources`). */
7
7
  resourcesAlias?: string;
@@ -2,7 +2,7 @@
2
2
  import path from "path";
3
3
  var defaultOptions = {
4
4
  appAlias: "@",
5
- appDir: "app",
5
+ appDir: ".",
6
6
  resourcesAlias: "@resources",
7
7
  resourcesDir: "resources/js",
8
8
  entry: "resources/js/app.tsx",
@@ -65,6 +65,10 @@ function ensureBuild(config, options, root, env) {
65
65
  config.build.emptyOutDir = true;
66
66
  }
67
67
  if (isSsrBuild) {
68
+ config.ssr ??= {};
69
+ if (config.ssr.noExternal === void 0) {
70
+ config.ssr.noExternal = true;
71
+ }
68
72
  if (config.build.outDir === void 0) {
69
73
  config.build.outDir = options.ssrOutDir;
70
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guren/server",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -109,7 +109,7 @@
109
109
  "test": "bun test"
110
110
  },
111
111
  "dependencies": {
112
- "@guren/orm": "^1.0.0",
112
+ "@guren/orm": "^1.0.1",
113
113
  "@modelcontextprotocol/sdk": "^1.27.1",
114
114
  "chalk": "^5.3.0",
115
115
  "consola": "^3.4.2",