package.json 2.12 KB
Newer Older
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
{
  "name": "fbjs",
  "version": "1.0.0",
  "description": "A collection of utility libraries used by other Facebook JS projects",
  "main": "index.js",
  "repository": "facebook/fbjs",
  "scripts": {
    "build": "gulp build",
    "postbuild": "node node_modules/fbjs-scripts/node/check-lib-requires.js lib",
    "lint": "eslint .",
    "prepublish": "yarn run build",
    "pretest": "node node_modules/fbjs-scripts/node/check-dev-engines.js package.json",
    "test": "NODE_ENV=test jest",
    "test-babel-presets": "cd babel-preset && yarn install && yarn test",
    "flow": "flow check src"
  },
  "devDependencies": {
    "@babel/core": "^7.0.0",
    "babel-preset-fbjs": "file:../babel-preset-fbjs",
    "del": "^2.2.0",
    "fbjs-scripts": "file:../fbjs-scripts",
    "flow-bin": "^0.80.0",
    "gulp": "^3.9.1",
    "gulp-babel": "^8.0.0",
    "gulp-flatten": "^0.2.0",
    "gulp-rename": "^1.2.2",
    "immutable": "^3.7.6",
    "jest-cli": "^17.0.3",
    "merge-stream": "^1.0.0",
    "run-sequence": "^1.1.5"
  },
  "license": "MIT",
  "files": [
    "LICENSE",
    "README.md",
    "flow/",
    "index.js",
    "lib/",
    "module-map.json"
  ],
  "jest": {
    "automock": true,
    "modulePathIgnorePatterns": [
      "/lib/",
      "/node_modules/"
    ],
    "persistModuleRegistryBetweenSpecs": true,
    "rootDir": "",
    "setupFiles": [
      "node_modules/fbjs-scripts/jest/environment.js"
    ],
    "testPathDirs": [
      "<rootDir>/src"
    ],
    "timers": "fake",
    "transform": {
      ".*": "node_modules/fbjs-scripts/jest/preprocessor.js"
    },
    "transformIgnorePatterns": [
      "/node_modules/"
    ],
    "unmockedModulePathPatterns": [
      "<rootDir>/node_modules/",
      "<rootDir>/src/(?!(__forks__/fetch.js$|fetch/))"
    ]
  },
  "dependencies": {
    "core-js": "^2.4.1",
    "fbjs-css-vars": "^1.0.0",
    "isomorphic-fetch": "^2.1.1",
    "loose-envify": "^1.0.0",
    "object-assign": "^4.1.0",
    "promise": "^7.1.1",
    "setimmediate": "^1.0.5",
    "ua-parser-js": "^0.7.18"
  },
  "devEngines": {
    "node": ">=4.x",
    "npm": ">=2.x"
  },
  "browserify": {
    "transform": [
      "loose-envify"
    ]
  }
}