@portosaur/cli 0.1.2 → 0.1.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.
- package/package.json +5 -5
- package/src/commands/init.mjs +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@portosaur/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
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,10 @@
|
|
|
26
26
|
},
|
|
27
27
|
"types": "./src/index.d.ts",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@portosaur/core": "
|
|
30
|
-
"@portosaur/theme": "
|
|
31
|
-
"@portosaur/logger": "
|
|
32
|
-
"@portosaur/wizard": "
|
|
29
|
+
"@portosaur/core": "^0.1.4",
|
|
30
|
+
"@portosaur/theme": "^0.1.4",
|
|
31
|
+
"@portosaur/logger": "^0.1.4",
|
|
32
|
+
"@portosaur/wizard": "^0.1.4",
|
|
33
33
|
"commander": "^13.1.0",
|
|
34
34
|
"js-yaml": "^4.1.1"
|
|
35
35
|
}
|
package/src/commands/init.mjs
CHANGED
|
@@ -384,7 +384,9 @@ export async function initCommand(options = {}) {
|
|
|
384
384
|
// to the CLI package to avoid loose dev-mode predictions.
|
|
385
385
|
const isTestProject = looksLikeTestProject(state.projectName);
|
|
386
386
|
|
|
387
|
-
const portoVer = isTestProject
|
|
387
|
+
const portoVer = isTestProject
|
|
388
|
+
? "link:@portosaur/cli"
|
|
389
|
+
: porto.version || "0.0.0";
|
|
388
390
|
|
|
389
391
|
const templateVars = {
|
|
390
392
|
projectName: state.projectName,
|