-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
package.json
87 lines (87 loc) · 3.37 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"name": "i18next-fs-backend",
"version": "2.3.2",
"private": false,
"type": "module",
"main": "./cjs/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"types": {
"require": "./cjs/index.d.ts",
"import": "./esm/index.d.mts"
},
"module": "./esm/index.js",
"import": "./esm/index.js",
"require": "./cjs/index.js",
"default": "./esm/index.js"
},
"./cjs": {
"types": "./cjs/index.d.ts",
"default": "./cjs/index.js"
},
"./esm": {
"types": "./esm/index.d.mts",
"default": "./esm/index.js"
}
},
"module": "./esm/index.js",
"types": "./index.d.mts",
"devDependencies": {
"@babel/cli": "7.24.8",
"@babel/core": "7.25.2",
"@babel/preset-env": "7.25.2",
"babel-plugin-add-module-exports": "1.0.4",
"dtslint": "4.2.1",
"eslint": "8.55.0",
"eslint-config-standard": "17.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-n": "16.3.1",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-require-path-exists": "1.1.9",
"eslint-plugin-standard": "5.0.0",
"expect.js": "0.3.1",
"i18next": "23.12.2",
"js-yaml": "4.1.0",
"json5": "2.2.3",
"mocha": "10.7.0",
"tslint": "5.20.1",
"tsd": "0.31.1",
"typescript": "5.5.4",
"uglify-js": "3.19.1"
},
"description": "i18next-fs-backend is a backend layer for i18next using in Node.js and for Deno to load translations from the filesystem.",
"keywords": [
"i18next",
"i18next-backend",
"i18next-fs-backend"
],
"homepage": "https://github.com/i18next/i18next-fs-backend",
"repository": {
"type": "git",
"url": "git@github.com:i18next/i18next-fs-backend.git"
},
"bugs": {
"url": "https://github.com/i18next/i18next-fs-backend/issues"
},
"license": "MIT",
"scripts": {
"copy:json5": "cp node_modules/json5/dist/index.mjs lib/formats/json5.js",
"copy:yaml": "cp node_modules/js-yaml/dist/js-yaml.mjs lib/formats/yaml.js",
"copy": "rm -rf lib/formats && mkdir lib/formats && npm run copy:json5 && npm run copy:yaml",
"lint": "eslint .",
"compile:esm": "rm -rf esm && mkdir esm && BABEL_ENV=esm babel lib -d esm && cp index.d.ts esm/index.d.ts && cp index.d.mts esm/index.d.mts && cp lib/fs.cjs esm/fs.cjs && cp lib/path.cjs esm/path.cjs",
"compile:cjs": "rm -rf cjs && mkdir cjs && BABEL_ENV=cjs babel lib -d cjs && cp index.d.ts cjs/index.d.ts && echo '{\"type\":\"commonjs\"}' > cjs/package.json && cp lib/fs.cjs cjs/fs.js && cp lib/path.cjs cjs/path.js && node -e \"fs.writeFileSync('cjs/readFile.js', fs.readFileSync('cjs/readFile.js').toString().replace('fs.cjs', 'fs.js').replace('path.cjs', 'path.js'))\" && node -e \"fs.writeFileSync('cjs/writeFile.js', fs.readFileSync('cjs/writeFile.js').toString().replace('fs.cjs', 'fs.js'))\"",
"compile": "npm run copy && npm run compile:esm && npm run compile:cjs",
"build": "npm run compile",
"test": "npm run lint && npm run build && mocha test -R spec --exit --experimental-modules && npm run test:typescript",
"test:typescript": "tslint --project tsconfig.json && tsd",
"test:deno": "deno test test/deno/*.js --allow-read --allow-write --no-check",
"test:bun": "bun test test/bun/*.js",
"preversion": "npm run test && npm run build && git push",
"postversion": "git push && git push --tags"
},
"tsd": {
"directory": "test/typescript"
}
}