UnlyEd/universal-language-detector

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "@unly/universal-language-detector",
  "version": "2.0.3",
  "description": "Language detector that works universally (browser + server) - Meant to be used with a universal framework, such as Next.js",
  "scripts": {
    "start": "cross-env-shell 'concurrently -p '{name}' -n 'lint,build,test' -c 'gray.bgWhite,yellow.bgBlue,green.bgWhite' \"yarn lint\" \"yarn build\" \"yarn test\"'",
    "build": "tsc -w",
    "build:once": "tsc",
    "clean": "rm -rf lib/",
    "lint": "esw src -w --ext .ts --ext .tsx",
    "lint:once": "eslint src --ext .ts --ext .tsx",
    "lint:fix": "eslint src --ext .ts --ext .tsx --fix",
    "lint:fix:preview": "eslint src --ext .ts --ext .tsx --fix-dry-run",
    "preversion": "yarn lint:once && yarn test:once && yarn doc:toc",
    "postversion": "git add README.md CHANGELOG.md && git commit --amend --no-edit && git push && git push --tags",
    "prepublishOnly": "yarn clean && yarn build:once && yarn publish:preview && cli-confirm \"Do you really want to release a new version? Please check the files that will be publicly released first. (y/n)\"",
    "publish:preview": "npm pack && tar -xvzf *.tgz && rm -rf package *.tgz",
    "release": "yarn bump --prompt --commit --tag",
    "releaseAndPublish": "yarn release && npm publish",
    "doc:toc": "yarn markdown-toc --maxdepth 4 -i README.md",
    "test": "NODE_ENV=test jest --watchAll",
    "test:once": "NODE_ENV=test jest",
    "test:coverage": "NODE_ENV=test jest --coverage"
  },
  "main": "lib/index.js",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/UnlyEd/universal-language-detector.git"
  },
  "author": "unlyEd",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/UnlyEd/universal-language-detector/issues"
  },
  "homepage": "https://github.com/UnlyEd/universal-language-detector",
  "publishConfig": {
    "registry": "https://registry.npmjs.org/",
    "access": "public"
  },
  "files": [
    "/lib"
  ],
  "jest": {
    "setupFilesAfterEnv": [
      "jest-extended"
    ],
    "verbose": true
  },
  "dependencies": {
    "@unly/iso3166-1": "1.0.2",
    "@unly/utils": "1.0.3",
    "accept-language-parser": "1.5.0",
    "i18next": "19.0.2",
    "i18next-browser-languagedetector": "4.0.1",
    "lodash.get": "4.4.2",
    "lodash.includes": "4.3.0"
  },
  "devDependencies": {
    "@babel/core": "7.5.0",
    "@babel/preset-env": "7.5.0",
    "@babel/preset-typescript": "7.3.3",
    "@types/jest": "24.0.25",
    "@types/lodash": "4.14.149",
    "@types/node": "13.1.1",
    "@typescript-eslint/eslint-plugin": "2.13.0",
    "@typescript-eslint/parser": "2.13.0",
    "@unly/cli-confirm": "1.1.1",
    "babel-jest": "24.9.0",
    "concurrently": "4.1.0",
    "cross-env": "5.2.0",
    "eslint": "6.8.0",
    "eslint-config-airbnb-base": "14.0.0",
    "eslint-plugin-import": "2.19.1",
    "eslint-plugin-jest": "23.2.0",
    "eslint-watch": "6.0.1",
    "jest": "24.9.0",
    "jsdoc-to-markdown": "5.0.3",
    "markdown-toc": "1.2.0",
    "ts-jest": "24.2.0",
    "typescript": "3.7.4",
    "version-bump-prompt": "4.2.2"
  }
}