portosaurus 3.0.1 → 3.0.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "portosaurus",
3
- "version": "3.0.1",
3
+ "version": "3.0.2",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/soymadip/portosaurus",
6
6
  "repository": {
package/src/cli/init.mjs CHANGED
@@ -117,9 +117,8 @@ export async function initCommand(projectName, options) {
117
117
  // Install dependencies
118
118
  const pm = getPackageManager(UsrProjDir);
119
119
 
120
- logger.info(`Installing dependencies with ${pm.name}...`);
121
-
122
120
  if (options.install !== false) {
121
+ logger.info(`Installing dependencies with ${pm.name}...`);
123
122
  logger.info(`Running ${pm.install}...`);
124
123
  try {
125
124
  const { execSync } = await import("child_process");
@@ -1,8 +1,6 @@
1
1
  import fs from "fs";
2
2
  import path from "path";
3
- import { fileURLToPath } from "url";
4
3
  import { createRequire } from "module";
5
- import { logger } from "../utils/logger.mjs";
6
4
 
7
5
  import {
8
6
  deepMerge,
@@ -89,13 +87,14 @@ export function buildDocuConfig(rawUserConfig, UserRoot) {
89
87
  }
90
88
 
91
89
  // Paths for content — these point directly to the user's project
92
- const UserNotesDir = path.resolve(UserRoot, "notes");
93
- const UserBlogDir = path.resolve(UserRoot, "blog");
90
+ const UserNotesDir = "notes";
91
+ const UserBlogDir = "blog";
94
92
 
95
93
  const PortoFaviconCacheDir = path.resolve(
96
94
  UserRoot,
97
95
  ".docusaurus/portosaurus/favicon",
98
96
  );
97
+
99
98
  const StaticDirs = [
100
99
  UserStaticDir,
101
100
  PortoAssetDir,
@@ -104,7 +103,6 @@ export function buildDocuConfig(rawUserConfig, UserRoot) {
104
103
 
105
104
  /**
106
105
  * Validates a static asset path with fallback.
107
- * Aliases (@porto/, @site/) are already resolved globally by resolveAliases().
108
106
  * - Remote URLs (http/https) pass through as-is.
109
107
  * - Local paths are checked against UserStaticDir, then PortoAssetDir.
110
108
  */