@bygnet/types 1.2.0 → 1.3.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/README.md CHANGED
@@ -1,8 +1,11 @@
1
1
  # Byg Platform Types
2
+
2
3
  TypeScript types for Byg Platform.
4
+
3
5
  > Learn more about Byg: [here](https://github.com/BygNet).
4
6
 
5
7
  ## Install
8
+
6
9
  Byg Platform recommends using [Bun](https://bun.sh/) to manage your dependencies.
7
10
 
8
11
  ```shell
@@ -0,0 +1 @@
1
+ export {};
package/dist/index.d.ts CHANGED
@@ -3,5 +3,7 @@ export * from './content/comment';
3
3
  export * from './content/image';
4
4
  export * from './content/post';
5
5
  export * from './content/shop';
6
+ export * from './content/user';
6
7
  export * from './unions/create';
8
+ export * from './unions/subscription';
7
9
  export * from './web/page';
@@ -0,0 +1 @@
1
+ export type BygSubscription = 'free' | 'plus_legacy' | 'plus' | 'pro' | 'enterprise';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bygnet/types",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Byg Platform's types for posts, images, and more, for Byg devs and the community.",
5
5
  "keywords": [
6
6
  "social-network",
@@ -20,20 +20,24 @@
20
20
  },
21
21
  "type": "module",
22
22
  "main": "src/index.ts",
23
-
24
- "files": ["dist"],
25
23
  "types": "dist/index.d.ts",
26
24
  "exports": {
27
25
  ".": {
28
26
  "types": "./dist/index.d.ts"
29
27
  }
30
28
  },
31
-
29
+ "files": [
30
+ "dist"
31
+ ],
32
32
  "scripts": {
33
33
  "build": "tsc",
34
- "format": "prettier --write src/"
34
+ "build:watch": "tsc --watch",
35
+ "typecheck": "tsc --noEmit",
36
+ "format": "prettier --write .",
37
+ "format:check": "prettier --check ."
35
38
  },
36
39
  "dependencies": {
40
+ "@a35hie/ts-pkg": "^0.3.1",
37
41
  "prettier": "^3.8.1"
38
42
  }
39
43
  }
package/src/index.ts CHANGED
@@ -4,9 +4,11 @@ export * from './content/comment'
4
4
  export * from './content/image'
5
5
  export * from './content/post'
6
6
  export * from './content/shop'
7
+ export * from './content/user'
7
8
 
8
9
  // unions
9
10
  export * from './unions/create'
11
+ export * from './unions/subscription'
10
12
 
11
13
  // web
12
14
  export * from './web/page'