pocketbase-to-zod 1.0.1 → 1.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.
Files changed (2) hide show
  1. package/index.ts +2 -1
  2. package/package.json +1 -1
package/index.ts CHANGED
@@ -25,8 +25,9 @@ program
25
25
  const collections = await pb.collections.getFullList();
26
26
 
27
27
  let fileContent = `import { z } from 'zod';\n\n`;
28
+ const filteredCollections = collections.filter(col => !col.system);
28
29
 
29
- for (const col of collections) {
30
+ for (const col of filteredCollections) {
30
31
  console.log(`--- Generating schema for collection: ${col.name} ---`);
31
32
  fileContent += `// Schema for collection: ${col.name}\n`;
32
33
  fileContent += `export const ${col.name}Schema = z.object({\n`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pocketbase-to-zod",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "This project is an utility to generate Zod schemas from Pocketbase instance ",
5
5
  "main": "index.js",
6
6
  "bin": {