@portosaur/cli 0.9.4 → 0.9.6

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": "@portosaur/cli",
3
- "version": "0.9.4",
3
+ "version": "0.9.6",
4
4
  "description": "CLI for Portosaur - The static Personal portfolio site generator.",
5
5
  "license": "GPL-3.0-only",
6
6
  "author": "soymadip",
@@ -26,9 +26,9 @@
26
26
  },
27
27
  "types": "./src/index.d.ts",
28
28
  "dependencies": {
29
- "@portosaur/core": "^0.9.4",
30
- "@portosaur/logger": "^0.9.4",
31
- "@portosaur/wizard": "^0.9.4",
29
+ "@portosaur/core": "^0.9.6",
30
+ "@portosaur/logger": "^0.9.6",
31
+ "@portosaur/wizard": "^0.9.6",
32
32
  "commander": "^13.1.0",
33
33
  "js-yaml": "^4.1.1"
34
34
  }
@@ -21,9 +21,19 @@ export function writeConfigShim(UserRoot, portoPaths, context = {}) {
21
21
  fs.mkdirSync(dotDir, { recursive: true });
22
22
  }
23
23
 
24
+ let configMtime = Date.now();
25
+ const configYaml = ["config.yaml", "config.yml"].find((file) =>
26
+ fs.existsSync(path.join(UserRoot, file)),
27
+ );
28
+
29
+ if (configYaml) {
30
+ configMtime = fs.statSync(path.join(UserRoot, configYaml)).mtimeMs;
31
+ }
32
+
24
33
  // Serialize the config as a dynamic export so Docusaurus can evaluate it at runtime,
25
34
  // preserving any functions, regexes, and plugin module imports.
26
35
  const shimContent = `// Auto-generated by portosaur — do not edit
36
+ // Generated at: ${configMtime}
27
37
  import { loadUserConfig, buildDocuConfig } from "@portosaur/core";
28
38
 
29
39
  export default async function createConfig() {