-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
70 lines (70 loc) · 2.73 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
{
"name": "@sozialhelden/ietf-language-tags",
"private": false,
"version": "5.0.0",
"license": "MIT",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",
"exports": {
".": {
"import": "./dist/mjs/index.js",
"require": "./dist/cjs/index.js"
}
},
"author": "Sebastian Felix Zappe <[email protected]>",
"repository": "sozialhelden/ietf-language-tags",
"files": [
"dist"
],
"types": "dist/index.d.ts",
"bundleDependencies": [],
"deprecated": false,
"description": "Helps you working with IETF language tags as specified by BCP 47 / RFC 5646.",
"devDependencies": {
"@babel/parser": "^7.8.4",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/polyfill": "^7.8.3",
"@babel/preset-env": "^7.8.4",
"@babel/preset-typescript": "^7.8.3",
"@babel/runtime": "^7.8.4",
"@babel/types": "^7.8.3",
"@types/jest": "^27.5.0",
"babel-jest": "^28.0.3",
"coveralls": "^3.0.9",
"cross-env": "^5.2.1",
"jest": "^28.0.3",
"jest-cli": "^28.0.3",
"language-subtag-registry": "^0.3.20",
"rimraf": "^2.7.1",
"ts-jest": "^28.0.1",
"eslint": "^8.13.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-plugin-import": "^2.26.0",
"@types/lodash": "^4.14.182"
},
"scripts": {
"build:mjs": "tsc -d --module esnext --target esnext --outDir dist/mjs && echo '{ \"type\": \"module\" }' > dist/mjs/package.json",
"build:cjs": "tsc -m commonjs --target es5 --outDir dist/cjs && echo '{ \"type\": \"commonjs\" }' > dist/cjs/package.json",
"build:copy-json": "cp -r ./node_modules/language-subtag-registry/data/json ./src",
"build:compile-json": "find src/json/*.json | xargs -I {} sh -c 'printf \"// @ts-ignore\nexport default \" > {}.ts && cat {} >> {}.ts && rm {}'",
"build": "rimraf dist && npm run build:copy-json && npm run build:compile-json && npm run build:mjs && npm run build:cjs && rm dist/**/*.spec.*",
"start": "tsc -w",
"test": "jest",
"lint": "eslint",
"test:watch": "jest --watch",
"test:prod": "npm run lint && npm run test -- --coverage --no-cache",
"deploy-docs": "ts-node tools/gh-pages-publish",
"report-coverage": "cat ./coverage/lcov.info | coveralls",
"commit": "git-cz",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"semantic-release-prepare": "ts-node tools/semantic-release-prepare",
"format": "eslint --fix src/**/*.ts",
"prettier": "npx prettier --fix src/**/*.ts test/**/*.ts --write --single-quote",
"deploy": "npm run build && npm run test:prod && npm publish --access public"
},
"peerDependencies": {
"lodash": ">=4"
}
}