@reharik/smart-enum 0.3.1 → 0.3.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/transport.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  initializeSmartEnumMappings,
4
4
  reviveAfterTransport,
5
5
  serializeForTransport
6
- } from "./chunk-RO2L7N2F.js";
6
+ } from "./chunk-CZ6TMH26.js";
7
7
  import {
8
8
  enumeration,
9
9
  isSmartEnum,
@@ -11,7 +11,7 @@ import {
11
11
  reviveEnumField,
12
12
  reviveSmartEnums,
13
13
  serializeSmartEnums
14
- } from "./chunk-PUK5FOIE.js";
14
+ } from "./chunk-SOZ6HB6K.js";
15
15
  export {
16
16
  enumeration,
17
17
  getGlobalEnumRegistry,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reharik/smart-enum",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -25,6 +25,11 @@
25
25
  "types": "./dist/database.d.ts",
26
26
  "import": "./dist/database.js",
27
27
  "require": "./dist/database.cjs"
28
+ },
29
+ "./graphql": {
30
+ "types": "./dist/graphql.d.ts",
31
+ "import": "./dist/graphql.js",
32
+ "require": "./dist/graphql.cjs"
28
33
  }
29
34
  },
30
35
  "files": [
@@ -36,7 +41,7 @@
36
41
  "scripts": {
37
42
  "clean": "rm -rf dist",
38
43
  "build": "npm run clean && tsup",
39
- "prepublishOnly": "node -e \"require('fs').copyFileSync('../../README.md', 'README.md')\" && npm run build",
44
+ "prepublishOnly": "npm run build",
40
45
  "test": "jest --config jest.config.cjs",
41
46
  "dance": "npm run build && npm run test"
42
47
  },
@@ -56,6 +61,14 @@
56
61
  "dependencies": {
57
62
  "case-anything": "^3.1.2"
58
63
  },
64
+ "peerDependencies": {
65
+ "graphql": "^16.0.0"
66
+ },
67
+ "peerDependenciesMeta": {
68
+ "graphql": {
69
+ "optional": true
70
+ }
71
+ },
59
72
  "description": "Type-safe smart enums for TypeScript with database and transport serialization support",
60
73
  "keywords": [
61
74
  "@reharik/smart-enum",