-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
60 lines (60 loc) · 2.09 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
{
"name": "typed-is",
"version": "1.0.4",
"description": "is utiltity belt to work with flow and ts",
"main": "lib/index.js",
"module": "es/index.js",
"author": "Josh Rosenstein",
"license": "MIT",
"files": [
"dist",
"lib",
"es",
"README.md"
],
"sideEffects": false,
"scripts": {
"prepack": "yarn run build",
"postpack": "npm run clean:scripts",
"flow:gen": "flow gen-flow-files src --out-dir genFlowDefs",
"build": "yarn run clean && yarn run generate:index && yarn run build:typesflow && yarn run build:ts && yarn run build:es",
"build:es": "tsc -d -p ./tsconfig.esnext.json",
"build:ts": "tsc",
"build:types": "yarn run build:typesTS && yarn run build:typesflow",
"build:typesTS": "tsc --emitDeclarationOnly",
"build:typesflow": "yarn run copyFlow:lib && yarn run copyFlow:es",
"copyFlow:lib": "flow-copy-source -v --ignore **/*.spec.js src lib",
"copyFlow:es": "flow-copy-source -v --ignore **/*.spec.js src es",
"test": "jest",
"test:all": "yarn run test:flow && yarn run test:ts",
"test:ts": "cross-env BABEL_ENV=test jest",
"test:flow": "cross-env BABEL_ENV=flow jest --config ./jest.config.flow.js",
"clean": "rimraf es/* lib/* dist/**/*.js coverage/* & yarn run clean:scripts ",
"clean:scripts": "node scripts/clean.js",
"clean:modules": "rimraf node_modules/*",
"generate:index": "node ./scripts/generateIndex.js",
"createModule": "node ./scripts/createModule.js"
},
"devDependencies": {
"@babel/cli": "^7.1.2",
"@babel/core": "^7.1.2",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/preset-env": "^7.1.0",
"@babel/preset-flow": "^7.0.0",
"@babel/preset-typescript": "^7.1.0",
"@types/jest": "^23.3.9",
"babel-core": "7.0.0-bridge.0",
"babel-jest": "^23.6.0",
"commander": "^2.19.0",
"cross-env": "^5.2.0",
"flow-bin": "^0.85.0",
"flow-copy-source": "^2.0.2",
"i": "^0.3.6",
"jest": "^23.6.0",
"jest-each": "^23.6.0",
"npm": "^6.4.1",
"rimraf": "^2.6.2",
"ts-jest": "^23.10.4",
"typescript": "^3.1.4"
}
}