@portosaur/cli 0.1.4 → 0.1.5
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/README.md +1 -1
- package/package.json +4 -5
- package/src/templates/package.json +2 -1
- package/src/utils/paths.mjs +11 -1
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portosaur/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "CLI for Portosaur - The static Personal portfolio site generator.",
|
|
5
5
|
"license": "GPL-3.0-only",
|
|
6
6
|
"author": "soymadip",
|
|
@@ -26,10 +26,9 @@
|
|
|
26
26
|
},
|
|
27
27
|
"types": "./src/index.d.ts",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@portosaur/core": "^0.1.
|
|
30
|
-
"@portosaur/
|
|
31
|
-
"@portosaur/
|
|
32
|
-
"@portosaur/wizard": "^0.1.4",
|
|
29
|
+
"@portosaur/core": "^0.1.5",
|
|
30
|
+
"@portosaur/logger": "^0.1.5",
|
|
31
|
+
"@portosaur/wizard": "^0.1.5",
|
|
33
32
|
"commander": "^13.1.0",
|
|
34
33
|
"js-yaml": "^4.1.1"
|
|
35
34
|
}
|
package/src/utils/paths.mjs
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import fs from "node:fs";
|
|
1
2
|
import path from "node:path";
|
|
2
3
|
|
|
3
4
|
const srcDir = path.resolve(import.meta.dirname, "../");
|
|
@@ -29,5 +30,14 @@ export const Paths = {
|
|
|
29
30
|
core: path.resolve(pkgDir, "../core"),
|
|
30
31
|
|
|
31
32
|
/** Absolute path to the theme package. */
|
|
32
|
-
theme
|
|
33
|
+
get theme() {
|
|
34
|
+
const localNodeModulesTheme = path.resolve(
|
|
35
|
+
process.cwd(),
|
|
36
|
+
"node_modules/@portosaur/theme",
|
|
37
|
+
);
|
|
38
|
+
if (fs.existsSync(localNodeModulesTheme)) {
|
|
39
|
+
return localNodeModulesTheme;
|
|
40
|
+
}
|
|
41
|
+
return path.resolve(pkgDir, "../theme");
|
|
42
|
+
},
|
|
33
43
|
};
|