@paintswap/estfor-definitions 0.1.5 → 0.1.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.
package/README.md CHANGED
@@ -3,15 +3,51 @@ Types and Constants for Estfor
3
3
 
4
4
  ## Build
5
5
 
6
- yarn build
6
+ yarn build
7
7
 
8
8
  ## Publish to NPM (--access=public needed the first time)
9
9
 
10
- yarn publish
10
+ yarn publish
11
11
 
12
- ## Usage
12
+ ## Dev use locally using yarn
13
13
 
14
- yarn add @paintswap/estfor-definitions
14
+ From library root:
15
15
 
16
- import { EstforConstants, EstforTypes } from '@paintswap/estfor-definitions'
16
+ yarn link
17
+
18
+ From project root:
19
+
20
+ yarn link @paintswap/estfor-definitions
21
+
22
+ ## Dev use locally using yalc
23
+
24
+ From library root:
25
+
26
+ yalc publish
27
+
28
+ From project root:
29
+
30
+ yalc link @paintswap/estfor-definitions
31
+
32
+ Push live updates to projects (library root)
33
+
34
+ yarn build
35
+ yalc push
36
+
37
+ ## Restore NPM version
38
+
39
+ yarn add @paintswap/estfor-definitions
40
+
41
+ ## Normal Usage
42
+
43
+ yarn add @paintswap/estfor-definitions
44
+
45
+ import { EstforConstants, EstforTypes } from '@paintswap/estfor-definitions'
46
+ const { LOG } = EstforConstants
47
+ const LOG = EstforConstants.LOG
48
+
49
+ Can also do single imports:
50
+
51
+ import { LOG } from '@paintswap/estfor-definitions/dist/constants'
52
+ import { Skill } from '@paintswap/estfor-definitions/dist/types'
17
53
 
package/asconfig.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "entries": [
3
+ "./src/index.ts"
4
+ ],
5
+ "options": {
6
+ "importTable": true
7
+ },
8
+ "targets": {
9
+ "release": {
10
+ "optimize": true,
11
+ "outFile": "build/index.wasm"
12
+ },
13
+ "debug": {
14
+ "debug": true,
15
+ "outFile": "build/debug.wasm"
16
+ }
17
+ }
18
+ }
Binary file