@coraltravelcenter/b2c-landing-builder 2.5.0 → 2.5.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/README.md CHANGED
@@ -132,8 +132,9 @@ package.json
132
132
  }
133
133
  ```
134
134
 
135
- Для каждого ключа builder ищет разметку, стиль и необязательный JS/TS-файл с тем
136
- же именем. Форматы определяются `landing.config.mjs`.
135
+ Для каждого ключа обязательны разметка и стиль с тем же именем. JS/TS-файл
136
+ необязателен. Форматы определяются `landing.config.mjs`; отсутствие обязательного
137
+ файла блокирует `check`, `dev` и `build` с указанием ожидаемого пути.
137
138
 
138
139
  ## Контракт JavaScript и TypeScript
139
140
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coraltravelcenter/b2c-landing-builder",
3
- "version": "2.5.0",
3
+ "version": "2.5.2",
4
4
  "description": "CLI and build toolkit for B2C landing projects",
5
5
  "type": "module",
6
6
  "bin": {
@@ -29,14 +29,14 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "typograf": "^7.7.0",
32
- "vite": "^8.1.4",
33
- "vite-plugin-monkey": "^8.0.6"
32
+ "vite": "^8.2.1",
33
+ "vite-plugin-monkey": "^8.1.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@vitejs/plugin-vue": "^6.0.7",
37
- "less": "^4.6.7",
36
+ "@vitejs/plugin-vue": "^6.0.8",
37
+ "less": "^4.8.1",
38
38
  "pug": "^3.0.4",
39
- "vue": "^3.5.39"
39
+ "vue": "^3.5.41"
40
40
  },
41
41
  "repository": {
42
42
  "type": "git",
@@ -66,6 +66,11 @@ export function validateProject(config, root = process.cwd()) {
66
66
  throw new Error(`Missing configured markup for block ${key}: src/markup/${key}.${config.stack.markup}`);
67
67
  }
68
68
 
69
+ const stylePath = path.resolve(root, "src/styles", `${key}.${config.stack.styles}`);
70
+ if (!fs.existsSync(stylePath)) {
71
+ throw new Error(`Missing configured styles for block ${key}: src/styles/${key}.${config.stack.styles}`);
72
+ }
73
+
69
74
  const scriptPath = path.resolve(root, "src/scripts", `${key}.${scriptStack.extension}`);
70
75
  if (!fs.existsSync(scriptPath)) continue;
71
76
  const source = fs.readFileSync(scriptPath, "utf8");