veslx 0.1.2 → 0.1.3

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/bin/lib/build.ts CHANGED
@@ -52,6 +52,8 @@ export default async function buildApp() {
52
52
  root: veslxRoot,
53
53
  configFile,
54
54
  mode: 'production',
55
+ // Cache in user's project so it persists across bunx runs
56
+ cacheDir: path.join(cwd, 'node_modules/.vite'),
55
57
  build: {
56
58
  outDir: tempOutDir,
57
59
  emptyOutDir: true,
package/bin/lib/serve.ts CHANGED
@@ -26,6 +26,8 @@ export default async function start() {
26
26
  const server = await createServer({
27
27
  root: veslxRoot,
28
28
  configFile,
29
+ // Cache in user's project so it persists across bunx runs
30
+ cacheDir: path.join(cwd, 'node_modules/.vite'),
29
31
  plugins: [
30
32
  veslxPlugin(contentDir)
31
33
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veslx",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "veslx": "bin/veslx.ts"