create-jant 0.3.32 → 0.3.34

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/dist/index.js CHANGED
@@ -9,7 +9,7 @@ import path from "path";
9
9
  import { fileURLToPath } from "url";
10
10
  var __filename = fileURLToPath(import.meta.url);
11
11
  var __dirname = path.dirname(__filename);
12
- var CORE_VERSION = "0.3.32";
12
+ var CORE_VERSION = "0.3.34";
13
13
  var TEMPLATE_DIR = fs.existsSync(path.resolve(__dirname, "../template")) ? path.resolve(__dirname, "../template") : path.resolve(__dirname, "../../../sites/demo");
14
14
  function isValidProjectName(name) {
15
15
  return /^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/.test(name);
@@ -66,7 +66,7 @@ function processAnnotations(content, vars) {
66
66
  continue;
67
67
  }
68
68
  const replaceMatch = line.match(/^(.+?)\s*#\s*@create-jant:\s*"(.*)"$/);
69
- if (replaceMatch) {
69
+ if (replaceMatch?.[1] != null && replaceMatch[2] != null) {
70
70
  const prefix = replaceMatch[1];
71
71
  const newValue = replaceMatch[2];
72
72
  const interpolated = newValue.replace(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-jant",
3
- "version": "0.3.32",
3
+ "version": "0.3.34",
4
4
  "description": "Create a new Jant project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -36,7 +36,7 @@ npm install
36
36
  npm run dev
37
37
  ```
38
38
 
39
- Visit http://localhost:9019. Changes pushed to `main` will auto-deploy.
39
+ Visit http://localhost:8787. Changes pushed to `main` will auto-deploy.
40
40
 
41
41
  ## Option B: Create with CLI
42
42
 
@@ -48,7 +48,7 @@ cd my-site
48
48
  npm run dev
49
49
  ```
50
50
 
51
- Visit http://localhost:9019. When you're ready to go live, continue with [Deploy to Cloudflare](#deploy-to-cloudflare) below.
51
+ Visit http://localhost:8787. When you're ready to go live, continue with [Deploy to Cloudflare](#deploy-to-cloudflare) below.
52
52
 
53
53
  ### Deploy to Cloudflare
54
54