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.
@@ -13,12 +13,14 @@ jobs:
13
13
  - name: Setup Node
14
14
  uses: actions/setup-node@v3
15
15
  with:
16
- node-version: '20.0.0'
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: yarn install
21
+ run: pnpm install
20
22
  - name: Build 🔧
21
- run: yarn build
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: yarn install
28
+ run: pnpm install
21
29
 
22
30
  - name: Lint Scripts
23
- run: yarn lint:eslint
31
+ run: pnpm lint:eslint
24
32
 
25
33
  - name: Lint Format
26
- run: yarn lint:fmt
34
+ run: pnpm lint:fmt
27
35
 
28
36
  - name: Lint Types
29
- run: yarn lint:ts
37
+ run: pnpm lint:ts
30
38
 
31
39
  - name: Unit Test
32
- run: yarn test
40
+ run: pnpm test
33
41
 
34
42
  - name: Build
35
- run: yarn build
43
+ run: pnpm build
package/.tool-versions CHANGED
@@ -1 +1,2 @@
1
- nodejs 20.0.0
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
- ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/dzbo/yata-fetch/Test) [![NPM](https://img.shields.io/npm/v/yata-fetch)](https://www.npmjs.com/package/yata-fetch) ![NPM](https://img.shields.io/npm/l/yata-fetch) ![npms.io (maintenance)](https://img.shields.io/npms-io/quality-score/yata-fetch) ![npms.io (maintenance)](https://img.shields.io/npms-io/maintenance-score/yata-fetch)
3
+ [![NPM](https://img.shields.io/npm/v/yata-fetch)](https://www.npmjs.com/package/yata-fetch) ![NPM](https://img.shields.io/npm/l/yata-fetch) ![npms.io (maintenance)](https://img.shields.io/npms-io/quality-score/yata-fetch) ![npms.io (maintenance)](https://img.shields.io/npms-io/maintenance-score/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
- `yarn add yata-fetch -D`
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 `yarn yata-fetch` or `npm run yata-fetch`
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
- yarn install
93
+ pnpm install
94
94
  ```
95
95
 
96
96
  ### Running Tests
97
97
 
98
- ```
99
- yarn test
98
+ ```bash
99
+ pnpm test
100
100
  ```
101
101
 
102
102
  ### Building
103
103
 
104
- ```
105
- yarn build
104
+ ```bash
105
+ pnpm build
106
106
  ```
107
107
 
108
108
  ### Upgrading
109
109
 
110
- ```
111
- yarn upgrade-interactive
110
+ ```bash
111
+ pnpm update --interactive
112
112
  ```
113
113
 
114
114
  ### Release
@@ -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.1.5",
4
- "packageManager": "yarn@3.5.0",
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 --ext .js,.ts,.vue",
29
+ "lint:eslint": "eslint src",
29
30
  "lint:ts": "tsc --noEmit",
30
- "lint:fmt": "prettier --check --loglevel=warn --write ."
31
+ "lint:fmt": "prettier --check --log-level=warn --write ."
31
32
  },
32
33
  "dependencies": {
33
- "nconf": "0.12.0"
34
+ "nconf": "0.13.0"
34
35
  },
35
36
  "devDependencies": {
36
- "@types/nconf": "0.10.3",
37
- "@types/node": "18.16.1",
38
- "@typescript-eslint/eslint-plugin": "5.59.1",
39
- "@typescript-eslint/parser": "5.59.1",
40
- "c8": "7.13.0",
41
- "eslint": "8.39.0",
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": "2.8.8",
44
- "typescript": "^5.0.4",
45
- "vite": "^4.3.2",
46
- "vitest": "0.30.1"
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": "Node",
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
@@ -1,4 +0,0 @@
1
- /.yarn/** linguist-vendored
2
- /.yarn/releases/* binary
3
- /.yarn/plugins/**/* binary
4
- /.pnp.* binary linguist-generated