@rpg-engine/shared 0.0.4 → 0.0.5
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,11 +1,29 @@
|
|
|
1
|
-
# `@rpg-engine/
|
|
1
|
+
# `@rpg-engine/shared`
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# How to update our shared packages?
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
# Important
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
- You can push this project directly to master. Just make sure you're in sync with master before starting to work (git pull origin master)
|
|
8
|
+
|
|
9
|
+
# Pre-requisites:
|
|
10
|
+
|
|
11
|
+
- You must have the .npmrc file set on the root of this project. If you don't, [please check our notion documentation](https://www.notion.so/projectstockalert/Configuration-files-a1725ae8e64a497fb617d92a17ab29fd#7fe40aa161404c06b145c1b60c849495)
|
|
12
|
+
|
|
13
|
+
# Step-by-step:
|
|
14
|
+
|
|
15
|
+
1. Implement your desired changes. Remember to export any types in index.ts
|
|
16
|
+
|
|
17
|
+
2. `yarn publish`
|
|
9
18
|
|
|
10
|
-
|
|
19
|
+
3. Update back-end and front-end packages
|
|
20
|
+
|
|
21
|
+
References: https://cameronnokes.com/blog/the-30-second-guide-to-publishing-a-typescript-package-to-npm/
|
|
22
|
+
|
|
23
|
+
# Notes
|
|
24
|
+
|
|
25
|
+
- First time publishing will require you to explicitly set it to public:
|
|
26
|
+
|
|
27
|
+
```
|
|
28
|
+
yarn publish --access public
|
|
11
29
|
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpg-engine/shared",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Joao Paulo Furtado <joaopaulofurtado@live.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
21
21
|
"tsc": "tsc -p .",
|
|
22
22
|
"prepublish": "tsc",
|
|
23
|
-
"format": "prettier --write 'src/**/*.ts'
|
|
23
|
+
"format": "prettier --write 'src/**/*.ts' --loglevel silent",
|
|
24
24
|
"format:check": "prettier --check '**/*.ts' '**/*.json'",
|
|
25
25
|
"configure": "./environment/download-credentials.sh"
|
|
26
26
|
},
|