@gracile/engine 0.8.1 → 0.8.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;;;;;;;;;;;;;;;GAgBG;AAIH,eAAO,MAAM,OAAO,YAAa,aAAa,KAAG,GAAG,EA6TnD,CAAC;AAEF,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQtD;;;;;;;;;;;;;;;;GAgBG;AAIH,eAAO,MAAM,OAAO,YAAa,aAAa,KAAG,GAAG,EAqUnD,CAAC;AAEF,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC"}
package/dist/plugin.js CHANGED
@@ -41,7 +41,8 @@ export const gracile = (config) => {
41
41
  let renderedRoutes = null;
42
42
  let root = null;
43
43
  const gracileConfig = config || {};
44
- // NOTE: Prevent duplicate client build for the SSR build step in server mode.
44
+ // HACK: Prevent duplicate client build for the SSR build step in server mode.
45
+ // TODO: Move to the new, clean, environments builders API.
45
46
  if (isClientBuilt)
46
47
  return [];
47
48
  isClientBuilt = true;
@@ -102,6 +103,9 @@ export const gracile = (config) => {
102
103
  };
103
104
  },
104
105
  async configureServer(server) {
106
+ // HACK: We know we are in dev here, this will prevent incorrect
107
+ // vite.config hot reloading. Will be removed when adopting env. API.
108
+ isClientBuilt = false;
105
109
  // Infos
106
110
  // // NOTE: Beware import.meta.resolve is only compatible
107
111
  // // with v20.6.0 (without cli flag)and upward
@@ -176,7 +180,7 @@ export const gracile = (config) => {
176
180
  input: htmlPages.inputList,
177
181
  plugins: [htmlPages.plugin],
178
182
  },
179
- outDir: outputMode === 'server' ? 'dist/client' : 'dist',
183
+ outDir: join(viteConfig.build?.outDir || 'dist', outputMode === 'server' ? 'client' : ''),
180
184
  },
181
185
  };
182
186
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gracile/engine",
3
- "version": "0.8.1",
3
+ "version": "0.8.2",
4
4
  "description": "A thin, full-stack, web framework",
5
5
  "keywords": [
6
6
  "custom-elements",
@@ -43,22 +43,22 @@
43
43
  "!/dist/typedoc-entrypoint.*"
44
44
  ],
45
45
  "dependencies": {
46
- "@gracile-labs/better-errors": "^0.1.2",
47
- "@gracile/internal-utils": "^0.5.0",
46
+ "@gracile-labs/better-errors": "^0.1.3",
47
+ "@gracile/internal-utils": "^0.5.1",
48
48
  "@whatwg-node/server": "^0.9.50",
49
49
  "fdir": "^6.4.2",
50
50
  "picocolors": "^1.1.1",
51
51
  "urlpattern-polyfill": "^10.0.0",
52
- "vite": "^6.0.5"
52
+ "vite": "^6.2.5"
53
53
  },
54
54
  "peerDependencies": {
55
55
  "@lit-labs/ssr": "^3.2.2",
56
56
  "@lit-labs/ssr-client": " ^1.1.7",
57
- "lit": "^3.1.3"
57
+ "lit": "^3.2.1"
58
58
  },
59
59
  "publishConfig": {
60
60
  "access": "public",
61
61
  "provenance": true
62
62
  },
63
- "gitHead": "1b45f33a8bcb7039e36ab565cdd5efae765f1b5e"
63
+ "gitHead": "fc99e003d3253a0ff0af7dbb894d06449257865e"
64
64
  }