@vitrine-kit/payload-blueprint 0.2.1 → 0.2.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/dist/index.d.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import { BlueprintFieldDef, Extend } from '@vitrine-kit/contracts';
2
2
 
3
+ declare const PAYLOAD_BLUEPRINT_VERSION: "0.2.2";
4
+
3
5
  interface BlueprintCollectionConfig {
4
6
  slug: string;
5
7
  fields: BlueprintFieldDef[];
@@ -23,6 +25,4 @@ interface Blueprint {
23
25
  }
24
26
  declare function createBlueprint(): Blueprint;
25
27
 
26
- declare const PAYLOAD_BLUEPRINT_VERSION: "0.1.0";
27
-
28
28
  export { type Blueprint, type BlueprintCollectionConfig, PAYLOAD_BLUEPRINT_VERSION, baseCollections, cartsCollection, categoriesCollection, createBlueprint, mediaCollection, ordersCollection, productsCollection, usersCollection, variantsCollection };
package/dist/index.js CHANGED
@@ -1,3 +1,6 @@
1
+ // src/version.generated.ts
2
+ var PAYLOAD_BLUEPRINT_VERSION = "0.2.2";
3
+
1
4
  // src/collections.ts
2
5
  var f = (name, type, extra = {}) => ({ name, type, ...extra });
3
6
  var authenticated = ({ req }) => Boolean(req?.user);
@@ -133,9 +136,6 @@ function createBlueprint() {
133
136
  }
134
137
  return { extend, build };
135
138
  }
136
-
137
- // src/index.ts
138
- var PAYLOAD_BLUEPRINT_VERSION = "0.1.0";
139
139
  export {
140
140
  PAYLOAD_BLUEPRINT_VERSION,
141
141
  baseCollections,
package/package.json CHANGED
@@ -1,9 +1,13 @@
1
1
  {
2
2
  "name": "@vitrine-kit/payload-blueprint",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Vitrine — base Payload collections + additive extend().",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
+ "sideEffects": false,
8
+ "engines": {
9
+ "node": ">=20"
10
+ },
7
11
  "types": "./dist/index.d.ts",
8
12
  "main": "./dist/index.js",
9
13
  "module": "./dist/index.js",
@@ -25,11 +29,11 @@
25
29
  "directory": "packages/payload-blueprint"
26
30
  },
27
31
  "dependencies": {
28
- "@vitrine-kit/contracts": "1.2.0"
32
+ "@vitrine-kit/contracts": "1.2.1"
29
33
  },
30
34
  "scripts": {
31
- "build": "tsup src/index.ts --format esm --dts --clean",
32
- "typecheck": "tsc --noEmit",
35
+ "build": "node scripts/generate-version.mjs && tsup src/index.ts --format esm --dts --clean",
36
+ "typecheck": "node scripts/generate-version.mjs && tsc --noEmit",
33
37
  "test": "vitest run --passWithNoTests"
34
38
  }
35
39
  }