-
-
Notifications
You must be signed in to change notification settings - Fork 22
/
package.json
71 lines (71 loc) · 2.75 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
{
"name": "i18next-locize-backend",
"version": "4.2.2",
"description": "i18next-locize-backend is a backend layer for i18next to use locize service which can be used in node.js, in the browser and for deno.",
"keywords": [
"i18next",
"i18next-backend",
"locize"
],
"homepage": "https://github.com/locize/i18next-locize-backend",
"bugs": "https://github.com/locize/i18next-locize-backend/issues",
"repository": {
"type": "git",
"url": "git://github.com/locize/i18next-locize-backend.git"
},
"type": "module",
"main": "./cjs/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"require": "./cjs/index.js",
"default": "./esm/index.js"
},
"./cjs": {
"default": "./cjs/index.js"
},
"./esm": {
"default": "./esm/index.js"
}
},
"module": "./esm/index.js",
"dependencies": {
"cross-fetch": "3.1.4"
},
"types": "./index.d.ts",
"devDependencies": {
"@babel/cli": "7.13.16",
"@babel/core": "7.14.2",
"@babel/preset-env": "7.14.2",
"babel-plugin-add-module-exports": "1.0.4",
"browserify": "17.0.0",
"eslint": "7.26.0",
"eslint-config-standard": "16.0.2",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "5.1.0",
"eslint-plugin-require-path-exists": "1.1.9",
"eslint-plugin-standard": "5.0.0",
"expect.js": "0.3.1",
"i18next": "20.2.2",
"json-server": "0.16.3",
"mocha": "8.4.0",
"uglify-js": "3.13.6",
"xmlhttprequest": "1.8.0"
},
"scripts": {
"lint": "eslint .",
"compile:esm": "rm -rf esm && mkdir esm && BABEL_ENV=esm babel lib -d esm && cp lib/getFetch.cjs esm/getFetch.cjs && rm -f esm/getFetch.js",
"compile:cjs": "rm -rf cjs && mkdir cjs && BABEL_ENV=cjs babel lib -d cjs && echo '{\"type\":\"commonjs\"}' > cjs/package.json && cp lib/getFetch.cjs cjs/getFetch.js && node -e \"fs.writeFileSync('cjs/request.js', fs.readFileSync('cjs/request.js').toString().replace('getFetch.cjs', 'getFetch.js'))\"",
"compile": "npm run compile:esm && npm run compile:cjs",
"browser": "browserify --ignore cross-fetch --standalone i18nextLocizeBackend cjs/index.js -o i18nextLocizeBackend.js && uglifyjs i18nextLocizeBackend.js --compress --mangle -o i18nextLocizeBackend.min.js",
"build": "npm run compile && npm run browser",
"test:xmlhttpreq": "mocha test -R spec --require test/fixtures/xmlHttpRequest.cjs --exit --experimental-modules",
"test:fetch": "mocha test -R spec --exit --experimental-modules",
"test": "npm run lint && npm run build && npm run test:fetch && npm run test:xmlhttpreq",
"preversion": "npm run test && npm run build && git push",
"postversion": "git push && git push --tags"
},
"author": "locize",
"license": "MIT"
}