@productcraft/flags 0.0.0 → 0.1.0

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/package.json CHANGED
@@ -1,9 +1,82 @@
1
1
  {
2
2
  "name": "@productcraft/flags",
3
- "version": "0.0.0",
4
- "description": "Placeholder for the first release of ProductCraft Flags (feature flags with local evaluation). Use 0.1.0 or later.",
3
+ "version": "0.1.0",
4
+ "description": "Feature flags and remote settings for Node.js (ProductCraft Flags): FlagsClient downloads one config per environment and evaluates flags locally, so user attributes never leave your app; plus the generated management client for projects, flags, targeting, segments and SDK keys.",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
+ }
19
+ },
20
+ "./testing": {
21
+ "import": {
22
+ "types": "./dist/testing.d.ts",
23
+ "default": "./dist/testing.js"
24
+ },
25
+ "require": {
26
+ "types": "./dist/testing.d.cts",
27
+ "default": "./dist/testing.cjs"
28
+ }
29
+ },
30
+ "./manifest.json": "./manifest.json"
31
+ },
32
+ "typesVersions": {
33
+ "*": {
34
+ "testing": [
35
+ "./dist/testing.d.ts"
36
+ ]
37
+ }
38
+ },
39
+ "files": [
40
+ "dist/**",
41
+ "manifest.json",
42
+ "api.md",
43
+ "README.md",
44
+ "LICENSE"
45
+ ],
46
+ "sideEffects": false,
47
+ "engines": {
48
+ "node": ">=20.3"
49
+ },
50
+ "keywords": [
51
+ "productcraft",
52
+ "sdk",
53
+ "feature-flags",
54
+ "feature-toggles",
55
+ "remote-config",
56
+ "configcat-alternative"
57
+ ],
58
+ "author": "ProductCraft",
5
59
  "license": "MIT",
6
- "repository": { "type": "git", "url": "git+https://github.com/clauderanelagh/productcraft-node.git", "directory": "packages/flags" },
60
+ "repository": {
61
+ "type": "git",
62
+ "url": "git+https://github.com/clauderanelagh/productcraft-node.git",
63
+ "directory": "packages/flags"
64
+ },
7
65
  "homepage": "https://productcraft.co/docs/flags",
8
- "files": ["README.md"]
9
- }
66
+ "bugs": {
67
+ "url": "https://github.com/clauderanelagh/productcraft-node/issues"
68
+ },
69
+ "publishConfig": {
70
+ "access": "public",
71
+ "provenance": true
72
+ },
73
+ "dependencies": {
74
+ "openapi-fetch": "^0.13.0",
75
+ "@productcraft/core": "^1.4.0",
76
+ "@productcraft/flags-engine": "^0.1.0"
77
+ },
78
+ "scripts": {
79
+ "build": "tsup && node -e \"require('node:fs').copyFileSync('src/_generated/manifest.json','manifest.json')\"",
80
+ "test": "tsc -p tests/tsconfig.json && vitest run"
81
+ }
82
+ }