portosaurus 0.16.3 → 0.16.4

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.

Potentially problematic release.


This version of portosaurus might be problematic. Click here for more details.

@@ -19,13 +19,22 @@ export function getCssVar(varName) {
19
19
  // We need to handle both dev (src/css) and prod (lib/src/css) structures
20
20
  // When running in lib: __dirname is .../lib/src/utils
21
21
  // We want .../lib/src/css
22
- const cssDir = path.resolve(__dirname, '../css');
23
- const srcCssDir = path.resolve(__dirname, '../../src/css'); // Fallback for some dev setups
22
+ const cssDir = path.resolve(__dirname, '../css'); // ../css
23
+ const srcCssDir = path.resolve(__dirname, '../../src/css'); // ../../src/css (if inside lib/src/utils -> lib/src/css ?)
24
+ // Real structure in node_modules:
25
+ // lib/src/utils/cssUtils.js
26
+ // src/css/custom.css
27
+ //
28
+ // Relative path from lib/src/utils to src/css is:
29
+ // ../../../src/css
30
+ const installedCssDir = path.resolve(__dirname, '../../../src/css');
24
31
  const potentialFiles = [
25
32
  path.join(cssDir, 'custom.css'),
26
33
  path.join(cssDir, 'catppuccin.css'),
27
34
  path.join(srcCssDir, 'custom.css'),
28
- path.join(srcCssDir, 'catppuccin.css')
35
+ path.join(srcCssDir, 'catppuccin.css'),
36
+ path.join(installedCssDir, 'custom.css'),
37
+ path.join(installedCssDir, 'catppuccin.css')
29
38
  ];
30
39
  const cssFiles = potentialFiles.filter(f => fs.existsSync(f));
31
40
  if (cssFiles.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portosaurus",
3
- "version": "0.16.3",
3
+ "version": "0.16.4",
4
4
  "license": "GPL-3.0",
5
5
  "author": "soymadip",
6
6
  "description": "Complete portfolio cum personal website solution for your digital personality",
@@ -26,14 +26,25 @@ export function getCssVar(varName: string): string {
26
26
  // When running in lib: __dirname is .../lib/src/utils
27
27
  // We want .../lib/src/css
28
28
 
29
- const cssDir = path.resolve(__dirname, '../css');
30
- const srcCssDir = path.resolve(__dirname, '../../src/css'); // Fallback for some dev setups
29
+ const cssDir = path.resolve(__dirname, '../css'); // ../css
30
+ const srcCssDir = path.resolve(__dirname, '../../src/css'); // ../../src/css (if inside lib/src/utils -> lib/src/css ?)
31
+
32
+ // Real structure in node_modules:
33
+ // lib/src/utils/cssUtils.js
34
+ // src/css/custom.css
35
+ //
36
+ // Relative path from lib/src/utils to src/css is:
37
+ // ../../../src/css
38
+
39
+ const installedCssDir = path.resolve(__dirname, '../../../src/css');
31
40
 
32
41
  const potentialFiles = [
33
42
  path.join(cssDir, 'custom.css'),
34
43
  path.join(cssDir, 'catppuccin.css'),
35
44
  path.join(srcCssDir, 'custom.css'),
36
- path.join(srcCssDir, 'catppuccin.css')
45
+ path.join(srcCssDir, 'catppuccin.css'),
46
+ path.join(installedCssDir, 'custom.css'),
47
+ path.join(installedCssDir, 'catppuccin.css')
37
48
  ];
38
49
 
39
50
  const cssFiles = potentialFiles.filter(f => fs.existsSync(f));