country-codes-list 2.0.0 → 2.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/README.md +3 -2
- package/dist/countriesData.d.ts +1 -0
- package/dist/countriesData.js +253 -18
- package/package.json +5 -2
- package/.github/workflows/publish.yml +0 -27
- package/src/countriesData.ts +0 -4100
- package/src/index.ts +0 -95
- package/src/utils/groupBy.ts +0 -19
- package/src/utils/supplant.ts +0 -17
- package/tests/index.test.ts +0 -62
- package/tsconfig.json +0 -12
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "country-codes-list",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "List of codes per country (languages, calling codes, currency codes, etc) with full TypeScript support.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
7
10
|
"scripts": {
|
|
8
11
|
"build": "tsc",
|
|
9
12
|
"test": "jest",
|
|
@@ -48,4 +51,4 @@
|
|
|
48
51
|
"**/tests/**/*.test.ts"
|
|
49
52
|
]
|
|
50
53
|
}
|
|
51
|
-
}
|
|
54
|
+
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
name: Publish to NPM
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
tags:
|
|
6
|
-
- "v*"
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
build-and-publish:
|
|
10
|
-
runs-on: ubuntu-latest
|
|
11
|
-
steps:
|
|
12
|
-
- uses: actions/checkout@v3
|
|
13
|
-
- name: Setup Node.js
|
|
14
|
-
uses: actions/setup-node@v3
|
|
15
|
-
with:
|
|
16
|
-
node-version: "16"
|
|
17
|
-
registry-url: "https://registry.npmjs.org"
|
|
18
|
-
- name: Install dependencies
|
|
19
|
-
run: npm install
|
|
20
|
-
- name: Build project
|
|
21
|
-
run: npm run build
|
|
22
|
-
- name: Run tests
|
|
23
|
-
run: npm test
|
|
24
|
-
- name: Publish package
|
|
25
|
-
run: npm publish
|
|
26
|
-
env:
|
|
27
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|