@madgex/fert 6.2.0 → 6.2.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@madgex/fert",
3
- "version": "6.2.0",
3
+ "version": "6.2.1",
4
4
  "description": "Tool to help build the V6 branding",
5
5
  "bin": {
6
6
  "fert": "./bin/cli.js"
@@ -1,5 +1,6 @@
1
1
  // eslint-disable-next-line n/no-unsupported-features/node-builtins
2
2
  import { glob } from 'node:fs/promises';
3
+ import path from 'node:path';
3
4
  import { createServer } from 'vite';
4
5
  import chokidar from 'chokidar4';
5
6
  import * as Hoek from '@hapi/hoek';
@@ -26,6 +27,7 @@ export default {
26
27
  // eslint-disable-next-line no-param-reassign
27
28
  _server.app.viteServer = await createServer({
28
29
  root: options.root,
30
+ cacheDir: path.join(options.root, 'node_modules', '.vite'),
29
31
  server: {
30
32
  origin: server.info.uri,
31
33
  watch: {
@@ -44,8 +46,8 @@ export default {
44
46
 
45
47
  if (options.watch && options.watch.length) {
46
48
  const watchList = await Array.fromAsync(glob(options.watch));
47
- chokidar.watch(watchList).on('all', (event, path) => {
48
- log(event, path);
49
+ chokidar.watch(watchList).on('all', (event, _path) => {
50
+ log(event, _path);
49
51
  if (event === 'add' || event === 'change') {
50
52
  server.app.viteServer.ws.send({
51
53
  type: 'full-reload',