@epic-web/workshop-app 5.13.6 → 5.14.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.
@@ -4,7 +4,7 @@ import { fileURLToPath } from "url";
4
4
  import { getPresentUsers } from "@epic-web/workshop-presence/presence.server";
5
5
  import {
6
6
  getApps,
7
- workshopRoot,
7
+ getWorkshopRoot,
8
8
  init as initApps,
9
9
  setModifiedTimesForAppDirs
10
10
  } from "@epic-web/workshop-utils/apps.server";
@@ -43,7 +43,7 @@ const app = express();
43
43
  app.use(compression());
44
44
  app.disable("x-powered-by");
45
45
  app.use(
46
- express.static(path.join(workshopRoot, "public"), {
46
+ express.static(path.join(getWorkshopRoot(), "public"), {
47
47
  maxAge: isProd ? "1h" : 0
48
48
  })
49
49
  );
@@ -175,7 +175,7 @@ if (process.env.EPICSHOP_DEPLOYED !== "true" && process.env.EPICSHOP_ENABLE_WATC
175
175
  let watcher = watches.get(key);
176
176
  if (!watcher) {
177
177
  const chok = chokidar.watch(watchPaths, {
178
- cwd: workshopRoot,
178
+ cwd: getWorkshopRoot(),
179
179
  ignoreInitial: true,
180
180
  ignored: [
181
181
  `/.git/`,
@@ -192,7 +192,7 @@ if (process.env.EPICSHOP_DEPLOYED !== "true" && process.env.EPICSHOP_ENABLE_WATC
192
192
  let timer = null;
193
193
  let fileChanges = /* @__PURE__ */ new Set();
194
194
  watcher.chok.on("all", (event, filePath) => {
195
- fileChanges.add(path.join(workshopRoot, filePath));
195
+ fileChanges.add(path.join(getWorkshopRoot(), filePath));
196
196
  if (timer) return;
197
197
  timer = setTimeout(async () => {
198
198
  for (const client of watcher?.clients ?? []) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@epic-web/workshop-app",
3
- "version": "5.13.6",
3
+ "version": "5.14.0",
4
4
  "sideEffects": false,
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -44,8 +44,8 @@
44
44
  "@epic-web/invariant": "^1.0.0",
45
45
  "@epic-web/remember": "^1.1.0",
46
46
  "@epic-web/restore-scroll": "^1.1.1",
47
- "@epic-web/workshop-presence": "5.13.6",
48
- "@epic-web/workshop-utils": "5.13.6",
47
+ "@epic-web/workshop-presence": "5.14.0",
48
+ "@epic-web/workshop-utils": "5.14.0",
49
49
  "@mdx-js/mdx": "^3.0.1",
50
50
  "@mux/mux-player-react": "^3.0.0",
51
51
  "@nasa-gcn/remix-seo": "^2.0.1",