yata-fetch 2.1.5 → 2.2.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/.github/workflows/publish.yaml +5 -3
- package/.github/workflows/test.yaml +14 -6
- package/.tool-versions +2 -1
- package/README.md +11 -11
- package/eslint.config.js +26 -0
- package/package.json +25 -15
- package/tsconfig.json +3 -2
- package/.eslintrc.json +0 -17
- package/.gitattributes +0 -4
- package/.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs +0 -541
- package/.yarn/plugins/@yarnpkg/plugin-version.cjs +0 -550
- package/.yarn/releases/yarn-3.5.0.cjs +0 -873
- package/.yarn/versions/32a76712.yml +0 -0
- package/.yarn/versions/8de51e3c.yml +0 -0
- package/.yarn/versions/b754bf0d.yml +0 -0
- package/.yarnrc.yml +0 -9
- package/dist/cli.cjs +0 -2
|
@@ -13,12 +13,14 @@ jobs:
|
|
|
13
13
|
- name: Setup Node
|
|
14
14
|
uses: actions/setup-node@v3
|
|
15
15
|
with:
|
|
16
|
-
node-version: '
|
|
16
|
+
node-version: '25.5.0'
|
|
17
17
|
registry-url: 'https://registry.npmjs.org'
|
|
18
|
+
- name: Setup pnpm
|
|
19
|
+
uses: pnpm/action-setup@v4
|
|
18
20
|
- name: Install
|
|
19
|
-
run:
|
|
21
|
+
run: pnpm install
|
|
20
22
|
- name: Build 🔧
|
|
21
|
-
run:
|
|
23
|
+
run: pnpm build
|
|
22
24
|
- name: Configure npm
|
|
23
25
|
run: |
|
|
24
26
|
cat << EOF > "$HOME/.npmrc"
|
|
@@ -16,20 +16,28 @@ jobs:
|
|
|
16
16
|
- name: Checkout
|
|
17
17
|
uses: actions/checkout@v3
|
|
18
18
|
|
|
19
|
+
- name: Setup Node
|
|
20
|
+
uses: actions/setup-node@v3
|
|
21
|
+
with:
|
|
22
|
+
node-version: '25.5.0'
|
|
23
|
+
|
|
24
|
+
- name: Setup pnpm
|
|
25
|
+
uses: pnpm/action-setup@v4
|
|
26
|
+
|
|
19
27
|
- name: Install
|
|
20
|
-
run:
|
|
28
|
+
run: pnpm install
|
|
21
29
|
|
|
22
30
|
- name: Lint Scripts
|
|
23
|
-
run:
|
|
31
|
+
run: pnpm lint:eslint
|
|
24
32
|
|
|
25
33
|
- name: Lint Format
|
|
26
|
-
run:
|
|
34
|
+
run: pnpm lint:fmt
|
|
27
35
|
|
|
28
36
|
- name: Lint Types
|
|
29
|
-
run:
|
|
37
|
+
run: pnpm lint:ts
|
|
30
38
|
|
|
31
39
|
- name: Unit Test
|
|
32
|
-
run:
|
|
40
|
+
run: pnpm test
|
|
33
41
|
|
|
34
42
|
- name: Build
|
|
35
|
-
run:
|
|
43
|
+
run: pnpm build
|
package/.tool-versions
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
nodejs
|
|
1
|
+
nodejs 22.14.0
|
|
2
|
+
pnpm 10.4.1
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# yata-fetch
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://www.npmjs.com/package/yata-fetch)   
|
|
4
4
|
|
|
5
5
|
Welcome to Yata integration package, this package will allow you to easy get your translations from [Yata](https://run.yatapp.net/) service.
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
`
|
|
9
|
+
`pnpm add yata-fetch -D`
|
|
10
10
|
`npm install yata-fetch -D`
|
|
11
11
|
|
|
12
12
|
## Usage
|
|
@@ -74,7 +74,7 @@ It's recommended to create scripts for generating translations in `package.json`
|
|
|
74
74
|
}
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
and simply call with `
|
|
77
|
+
and simply call with `pnpm yata-fetch` or `npm run yata-fetch`
|
|
78
78
|
|
|
79
79
|
## Problems?
|
|
80
80
|
|
|
@@ -88,27 +88,27 @@ Want help to develop this package? Please open a Pull Request.
|
|
|
88
88
|
|
|
89
89
|
### Installation
|
|
90
90
|
|
|
91
|
-
```
|
|
91
|
+
```bash
|
|
92
92
|
git clone <this repository>
|
|
93
|
-
|
|
93
|
+
pnpm install
|
|
94
94
|
```
|
|
95
95
|
|
|
96
96
|
### Running Tests
|
|
97
97
|
|
|
98
|
-
```
|
|
99
|
-
|
|
98
|
+
```bash
|
|
99
|
+
pnpm test
|
|
100
100
|
```
|
|
101
101
|
|
|
102
102
|
### Building
|
|
103
103
|
|
|
104
|
-
```
|
|
105
|
-
|
|
104
|
+
```bash
|
|
105
|
+
pnpm build
|
|
106
106
|
```
|
|
107
107
|
|
|
108
108
|
### Upgrading
|
|
109
109
|
|
|
110
|
-
```
|
|
111
|
-
|
|
110
|
+
```bash
|
|
111
|
+
pnpm update --interactive
|
|
112
112
|
```
|
|
113
113
|
|
|
114
114
|
### Release
|
package/eslint.config.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import eslint from '@eslint/js'
|
|
2
|
+
import tseslint from 'typescript-eslint'
|
|
3
|
+
import globals from 'globals'
|
|
4
|
+
|
|
5
|
+
export default tseslint.config(
|
|
6
|
+
eslint.configs.recommended,
|
|
7
|
+
...tseslint.configs.recommended,
|
|
8
|
+
{
|
|
9
|
+
languageOptions: {
|
|
10
|
+
globals: {
|
|
11
|
+
...globals.browser,
|
|
12
|
+
...globals.node,
|
|
13
|
+
},
|
|
14
|
+
parserOptions: {
|
|
15
|
+
ecmaVersion: 'latest',
|
|
16
|
+
sourceType: 'module',
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
rules: {
|
|
20
|
+
'@typescript-eslint/no-require-imports': 'off',
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
ignores: ['dist/**', 'node_modules/**'],
|
|
25
|
+
}
|
|
26
|
+
)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yata-fetch",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"packageManager": "
|
|
3
|
+
"version": "2.2.0",
|
|
4
|
+
"packageManager": "pnpm@10.4.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Adds CLI interface for importing translation files from Yata",
|
|
7
7
|
"license": "MIT",
|
|
@@ -21,28 +21,38 @@
|
|
|
21
21
|
"bin": "./bin/yata-fetch.js",
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build": "vite build",
|
|
24
|
+
"prepare": "vite build",
|
|
24
25
|
"generate": "node bin/yata-fetch.js --config test/fixtures/yata.json",
|
|
25
26
|
"test": "vitest run",
|
|
26
27
|
"coverage": "vitest run --coverage",
|
|
27
28
|
"lint": "npm-run-all --aggregate-output --continue-on-error --parallel \"lint:*\"",
|
|
28
|
-
"lint:eslint": "eslint src
|
|
29
|
+
"lint:eslint": "eslint src",
|
|
29
30
|
"lint:ts": "tsc --noEmit",
|
|
30
|
-
"lint:fmt": "prettier --check --
|
|
31
|
+
"lint:fmt": "prettier --check --log-level=warn --write ."
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
|
-
"nconf": "0.
|
|
34
|
+
"nconf": "0.13.0"
|
|
34
35
|
},
|
|
35
36
|
"devDependencies": {
|
|
36
|
-
"@
|
|
37
|
-
"@types/
|
|
38
|
-
"@
|
|
39
|
-
"@typescript-eslint/
|
|
40
|
-
"
|
|
41
|
-
"
|
|
37
|
+
"@eslint/js": "10.0.1",
|
|
38
|
+
"@types/nconf": "0.10.7",
|
|
39
|
+
"@types/node": "25.6.0",
|
|
40
|
+
"@typescript-eslint/eslint-plugin": "8.59.1",
|
|
41
|
+
"@typescript-eslint/parser": "8.59.1",
|
|
42
|
+
"@vitest/coverage-v8": "4.1.5",
|
|
43
|
+
"c8": "11.0.0",
|
|
44
|
+
"eslint": "10.2.1",
|
|
45
|
+
"globals": "17.5.0",
|
|
42
46
|
"npm-run-all": "4.1.5",
|
|
43
|
-
"prettier": "
|
|
44
|
-
"typescript": "^
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
+
"prettier": "3.8.3",
|
|
48
|
+
"typescript": "^6.0.3",
|
|
49
|
+
"typescript-eslint": "8.59.1",
|
|
50
|
+
"vite": "^8.0.10",
|
|
51
|
+
"vitest": "4.1.5"
|
|
52
|
+
},
|
|
53
|
+
"pnpm": {
|
|
54
|
+
"onlyBuiltDependencies": [
|
|
55
|
+
"esbuild"
|
|
56
|
+
]
|
|
47
57
|
}
|
|
48
58
|
}
|
package/tsconfig.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"useDefineForClassFields": true,
|
|
5
5
|
"module": "ESNext",
|
|
6
6
|
"lib": ["ESNext", "DOM"],
|
|
7
|
-
"moduleResolution": "
|
|
7
|
+
"moduleResolution": "bundler",
|
|
8
8
|
"strict": true,
|
|
9
9
|
"sourceMap": true,
|
|
10
10
|
"resolveJsonModule": true,
|
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
"noUnusedLocals": true,
|
|
15
15
|
"noUnusedParameters": true,
|
|
16
16
|
"noImplicitReturns": true,
|
|
17
|
-
"skipLibCheck": true
|
|
17
|
+
"skipLibCheck": true,
|
|
18
|
+
"types": ["node"]
|
|
18
19
|
},
|
|
19
20
|
"include": ["src"]
|
|
20
21
|
}
|
package/.eslintrc.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"browser": true,
|
|
4
|
-
"es2021": true,
|
|
5
|
-
"node": true
|
|
6
|
-
},
|
|
7
|
-
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
|
|
8
|
-
"parser": "@typescript-eslint/parser",
|
|
9
|
-
"parserOptions": {
|
|
10
|
-
"ecmaVersion": "latest",
|
|
11
|
-
"sourceType": "module"
|
|
12
|
-
},
|
|
13
|
-
"plugins": ["@typescript-eslint"],
|
|
14
|
-
"rules": {
|
|
15
|
-
"@typescript-eslint/no-var-requires": 0
|
|
16
|
-
}
|
|
17
|
-
}
|
package/.gitattributes
DELETED