@reharik/smart-enum 0.4.6 → 0.4.7

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/README.md +19 -0
  2. package/package.json +2 -1
package/README.md ADDED
@@ -0,0 +1,19 @@
1
+ # @reharik/smart-enum
2
+
3
+ Type-safe, feature-rich enumerations for TypeScript — every member is a frozen object with a key, wire value, display string, index, and your own custom fields, plus lookup, serialization, and database revival built in.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ npm install @reharik/smart-enum
9
+ ```
10
+
11
+ ## Documentation
12
+
13
+ Full documentation — guides, the GraphQL codegen ecosystem, database revival, and API reference — lives at:
14
+
15
+ **https://reharik.github.io/smart-enums/**
16
+
17
+ ## License
18
+
19
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reharik/smart-enum",
3
- "version": "0.4.6",
3
+ "version": "0.4.7",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.js",
@@ -40,6 +40,7 @@
40
40
  },
41
41
  "scripts": {
42
42
  "clean": "rm -rf dist",
43
+ "prepack": "cp ../../README.md README.md",
43
44
  "build": "npm run clean && tsup",
44
45
  "prepublishOnly": "npm run build",
45
46
  "test": "jest --config jest.config.cjs",