xpt-shared-types 1.0.2 → 1.0.4
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 +9 -1
- package/dist/data/countriesList.d.ts +1 -1
- package/dist/data/countriesList.js +768 -768
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/types/match.d.ts +1 -0
- package/dist/types/match.js +2 -0
- package/dist/types/tournament.d.ts +1 -0
- package/dist/types/tournament.js +2 -0
- package/package.json +1 -1
- package/src/data/countriesList.ts +769 -769
- package/src/index.ts +2 -0
- package/src/types/match.ts +8 -0
- package/src/types/tournament.ts +4 -0
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Shared TypeScript types and data for XPT projects.
|
|
|
16
16
|
|
|
17
17
|
2. Import types and data:
|
|
18
18
|
```ts
|
|
19
|
-
import { Country, COUNTRIES_LIST } from
|
|
19
|
+
import { Country, COUNTRIES_LIST } from "xpt-shared-types";
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
## Development
|
|
@@ -25,6 +25,14 @@ Shared TypeScript types and data for XPT projects.
|
|
|
25
25
|
- Edit shared data in `src/data/`
|
|
26
26
|
- Run `yarn build` to compile TypeScript
|
|
27
27
|
|
|
28
|
+
## Publish
|
|
29
|
+
|
|
30
|
+
1. Run `npm login` to authenticate with npm (if not already logged in)
|
|
31
|
+
2. Run `yarn build` to compile TypeScript
|
|
32
|
+
3. Run `yarn version --patch` to bump the version (e.g. `1.0.4` → `1.0.5`)
|
|
33
|
+
4. Run `npm publish` to publish to npm
|
|
34
|
+
5. Run `git push` to push the version commit and tag to GitHub
|
|
35
|
+
|
|
28
36
|
## License
|
|
29
37
|
|
|
30
38
|
MIT
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Country } from
|
|
1
|
+
import { Country } from "../types/country";
|
|
2
2
|
export declare const COUNTRIES_LIST: Country[];
|