@openeventkit/event-site 2.0.52 → 2.0.54

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/gatsby-node.js CHANGED
@@ -347,8 +347,13 @@ exports.onPreBootstrap = async () => {
347
347
  // Generate the SCSS file
348
348
  const scssFontsFile = generateFontFile(siteFonts);
349
349
  if(scssFontsFile) {
350
- fs.writeFileSync(FONTS_SCSS_FILE_PATH, scssFontsFile);
351
- console.log(`CUSTOM FONT FILE ${FONTS_SCSS_FILE_PATH} generated.`);
350
+ const standalone = __dirname === path.resolve();
351
+ let fontFilePath = FONTS_SCSS_FILE_PATH;
352
+ if (!standalone) {
353
+ fontFilePath = `${__dirname}/${fontFilePath}`;
354
+ }
355
+ fs.writeFileSync(fontFilePath, scssFontsFile);
356
+ console.log(`CUSTOM FONT FILE ${fontFilePath} generated.`);
352
357
  }
353
358
  }
354
359
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openeventkit/event-site",
3
3
  "description": "Event Site",
4
- "version": "2.0.52",
4
+ "version": "2.0.54",
5
5
  "author": "Tipit LLC",
6
6
  "dependencies": {
7
7
  "@mui/base": "^5.0.0-alpha.114",
@@ -55,7 +55,7 @@ const fetchBucket = async (etagKeyPre, dataKeyPre, fileName, summitId, lastBuild
55
55
 
56
56
  if (eTag) headers.headers = {'If-None-Match': eTag};
57
57
 
58
- console.log(`fetchBucket ${url} eTag ${eTag} lastModifiedStored ${lastModifiedStored} lastBuildTime ${lastBuildTime}`);
58
+ //console.log(`fetchBucket ${url} eTag ${eTag} lastModifiedStored ${lastModifiedStored} lastBuildTime ${lastBuildTime}`);
59
59
 
60
60
  return fetch(url, {
61
61
  method: 'GET',