Summary: SORRY FOR BIG DIFF, but it's really hard to split it as all these changes are cross-dependent and should be made at once: 1. Moved transformations to separate package "flipper-babel-transformer" and linked it using yarn workspaces to "static" and "pkg" packages where they are re-used. Removed double copies of transformations we had before int these two packages. 2. Converted transformations to typescript 3. Refactored transformations to avoid relying on file system paths for customisation (FB stubs and Electron stubs for headless build) 4. As babel transformations must be built before other builds - enabled incremental build for them and changed scripts to invoke the transformations build before other build scripts 5. As we need to deploy all the dependencies including the fresh "flipper-babel-transformer" as a part of "static" - implemented script which copies package with all the dependencies taking in account yarn workspaces (hoisting and symlinks) Reviewed By: passy, mweststrate Differential Revision: D20690662 fbshipit-source-id: 38a275b60d3c91e01ec21d1dbd72d03c05cfac0b
72 lines
1.8 KiB
JSON
72 lines
1.8 KiB
JSON
{
|
|
"name": "flipper-pkg",
|
|
"version": "0.0.0",
|
|
"description": "Utility for building and publishing Flipper plugins",
|
|
"repository": "facebook/flipper",
|
|
"main": "lib/index.js",
|
|
"flipper:source": "src",
|
|
"types": "lib/index.d.ts",
|
|
"license": "MIT",
|
|
"bin": {
|
|
"flipper-pkg": "./bin/run"
|
|
},
|
|
"bugs": "https://github.com/facebook/flipper/issues",
|
|
"dependencies": {
|
|
"@oclif/command": "^1",
|
|
"@oclif/config": "^1",
|
|
"@oclif/plugin-help": "^2",
|
|
"@types/fs-extra": "^8.1.0",
|
|
"@types/inquirer": "^6.5.0",
|
|
"@types/node": "^13.7.5",
|
|
"cli-ux": "^5.4.5",
|
|
"fs-extra": "^8.1.0",
|
|
"flipper-babel-transformer": "0.2.0",
|
|
"inquirer": "^7.0.5",
|
|
"metro": "^0.58.0",
|
|
"tslib": "^1"
|
|
},
|
|
"devDependencies": {
|
|
"@oclif/dev-cli": "^1",
|
|
"@types/jest": "25.1.4",
|
|
"globby": "^10",
|
|
"jest": "^25.1.0",
|
|
"prettier": "^2.0.0",
|
|
"ts-jest": "^25.2.1",
|
|
"ts-node": "^8",
|
|
"typescript": "^3.7.2"
|
|
},
|
|
"scripts": {
|
|
"prebuild": "cd ../babel-transformer && yarn build",
|
|
"build": "tsc -b",
|
|
"postpack": "rm -f oclif.manifest.json",
|
|
"prepack": "rm -rf lib && yarn build && oclif-dev manifest && oclif-dev readme",
|
|
"prepare": "yarn run build",
|
|
"prepublishOnly": "yarn test && yarn run lint",
|
|
"preversion": "yarn run lint",
|
|
"test": "jest --config jestconfig.json",
|
|
"run": "bin/run",
|
|
"version": "oclif-dev readme && git add README.md"
|
|
},
|
|
"engines": {
|
|
"node": ">=8.0.0"
|
|
},
|
|
"files": [
|
|
"/bin",
|
|
"/npm-shrinkwrap.json",
|
|
"/oclif.manifest.json",
|
|
"lib/**/*"
|
|
],
|
|
"homepage": "https://github.com/facebook/flipper",
|
|
"keywords": [
|
|
"Flipper"
|
|
],
|
|
"author": "Facebook, Inc",
|
|
"oclif": {
|
|
"commands": "./lib/commands",
|
|
"bin": "flipper-pkg",
|
|
"plugins": [
|
|
"@oclif/plugin-help"
|
|
]
|
|
}
|
|
}
|