@vyriy/create 0.9.1 → 0.9.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/AGENTS.md CHANGED
@@ -85,6 +85,8 @@ Documentation must move with code. Do not finish a package change while docs des
85
85
  - Keep `doc.mdx` aligned with the README and package title when packages are added, renamed, or reorganized.
86
86
  - Add or update JSDoc for public exports when behavior, parameters, return values, errors, side effects, or usage expectations need explanation.
87
87
  - For component packages, include visual documentation, stories, or examples for supported states, variants, and interaction states.
88
+ - Keep reusable components as dumb as practical: push data shaping, stateful orchestration, and demo-specific logic into the entry point or owning composition layer.
89
+ - Store demo data in stories instead of embedding it in reusable component source.
88
90
  - Avoid broad architecture essays in package READMEs; keep architectural direction in root-level docs unless it is necessary to use the package.
89
91
 
90
92
  ## Tests Are Required
@@ -133,6 +135,8 @@ yarn prettier --check <changed files or package>
133
135
  yarn jest <changed tests or package> --runInBand
134
136
  ```
135
137
 
138
+ Run ESLint after YAML/YML changes too, for example `yarn eslint <changed.yml>`, because the repo ESLint setup validates YAML files as well.
139
+
136
140
  Also run `yarn build:dist` for package export, manifest, build-shape, or generated-dist behavior changes. After larger package or library changes, run the full Jest suite with coverage and prefer building the affected library/package as an additional confidence check.
137
141
 
138
142
  If a required validation command cannot be run, state why and report the remaining risk.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vyriy/create",
3
- "version": "0.9.1",
3
+ "version": "0.9.2",
4
4
  "description": "Vyriy project creation CLI.",
5
5
  "homepage": "https://vyriy.dev/docs/create/",
6
6
  "type": "module",
@@ -13,8 +13,8 @@
13
13
  "vyriy-create": "./bin/index.js"
14
14
  },
15
15
  "dependencies": {
16
- "@vyriy/check": "0.9.1",
17
- "@vyriy/tooling": "0.9.1"
16
+ "@vyriy/check": "0.9.2",
17
+ "@vyriy/tooling": "0.9.2"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "@modelcontextprotocol/sdk": "^1.29.0",
package/preset/ssg.js CHANGED
@@ -294,6 +294,11 @@ NODE_ENV=production npx webpack --config "$PWD/workspaces/ssg/webpack.config.ts"
294
294
 
295
295
  yarn exec sass packages/components/styles.scss dist/styles.css --no-source-map --style=compressed
296
296
 
297
+ cp -R "$PWD/site/public/." dist/
298
+
299
+ mkdir -p dist/assets
300
+ cp "$PWD/node_modules/minisearch/dist/umd/index.js" dist/assets/minisearch.js
301
+
297
302
  cp "$PWD/workspaces/ssg/package.json" dist/package.json
298
303
  npm pkg delete type --prefix dist
299
304
 
@@ -356,7 +361,6 @@ import { buildStaticSite } from '@vyriy/ssg';
356
361
 
357
362
  export const buildWorkspaceStaticSite = async () =>
358
363
  buildStaticSite({
359
- siteName: 'Site',
360
364
  siteUrl: process.env.SITE_URL,
361
365
  stylesheetContent: await readFile(join(process.cwd(), 'dist/styles.css'), 'utf8'),
362
366
  });
@@ -371,7 +375,7 @@ const mockReadFile = jest.fn<(path: string, encoding: string) => Promise<string>
371
375
  Promise.resolve('body { color: #28323c; }'),
372
376
  );
373
377
  const mockBuildStaticSite = jest.fn<
374
- (options: { readonly siteName: string; readonly siteUrl?: string; readonly stylesheetContent: string }) => Promise<void>
378
+ (options: { readonly siteUrl?: string; readonly stylesheetContent: string }) => Promise<void>
375
379
  >(() => Promise.resolve());
376
380
 
377
381
  jest.mock('node:fs/promises', () => ({
@@ -394,7 +398,6 @@ describe('@w/ssg entry point', () => {
394
398
 
395
399
  expect(mockReadFile).toHaveBeenCalledWith(join('/project', 'dist/styles.css'), 'utf8');
396
400
  expect(mockBuildStaticSite).toHaveBeenCalledWith({
397
- siteName: 'Site',
398
401
  siteUrl: 'https://example.com',
399
402
  stylesheetContent: 'body { color: #28323c; }',
400
403
  });