forked from swc-project/swc-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
104 lines (104 loc) · 2.95 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"name": "swc-node",
"version": "0.0.0",
"description": "Faster swc nodejs binding",
"keywords": [
"swc",
"babel",
"esbuild",
"rust",
"n-api",
"napi",
"node-rs",
"uglify",
"terser",
"webpack",
"ts-node",
"typescript",
"tsc"
],
"private": true,
"workspaces": ["packages/*"],
"repository": "[email protected]:Brooooooklyn/swc-register.git",
"author": "LongYinan <[email protected]>",
"license": "MIT",
"os": ["darwin", "linux", "win32"],
"engines": {
"node": ">= 8.9"
},
"scripts": {
"bench": "node -r @swc-node/register ./bench/index.ts",
"build": "tsc -b tsconfig.project.json",
"format": "run-p format:md format:json format:source format:yml",
"format:json": "prettier --parser json --write '**/*.json'",
"format:md": "prettier --parser markdown --write './*.md' './packages/**/*.md'",
"format:source": "prettier --config ./package.json './packages/**/*.{ts,tsx,js}' --write",
"format:yml": "prettier --parser yaml --write './*.{yml,yaml}'",
"lint": "eslint -c ./.eslintrc.yml 'packages/**/*.{js,ts,tsx}'",
"test": "ava"
},
"devDependencies": {
"@babel/core": "^7.12.9",
"@babel/plugin-transform-typescript": "^7.12.1",
"@babel/preset-env": "^7.12.7",
"@babel/preset-typescript": "^7.12.7",
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@types/babel__core": "^7.1.12",
"@types/benchmark": "^2.1.0",
"@types/lodash": "^4.14.165",
"@types/sinon": "^9.0.9",
"@typescript-eslint/eslint-plugin": "^4.9.0",
"@typescript-eslint/parser": "^4.9.0",
"ava": "^3.13.0",
"benchmark": "^2.1.4",
"chalk": "^4.1.0",
"esbuild": "^0.8.17",
"eslint": "^7.14.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-prettier": "^3.2.0",
"husky": "^4.3.0",
"lerna": "^3.22.1",
"lint-staged": "^10.5.2",
"lodash": "^4.17.20",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"prettier": "^2.2.1",
"sinon": "^9.2.1",
"typescript": "^4.0.5"
},
"lint-staged": {
"*.@(js|ts|tsx)": ["prettier --write"],
"*.@(yml|yaml)": ["prettier --parser yaml --write"],
"*.md": ["prettier --parser markdown --write"],
"*.json": ["prettier --parser json --write"]
},
"prettier": {
"printWidth": 120,
"semi": false,
"trailingComma": "all",
"singleQuote": true,
"arrowParens": "always",
"parser": "typescript"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"ava": {
"extensions": ["ts", "tsx"],
"require": ["@swc-node/register"],
"files": ["packages/**/*.spec.{ts,tsx}"],
"environmentVariables": {
"SWC_NODE_PROJECT": "./tsconfig.test.json"
}
},
"nyc": {
"extends": "@istanbuljs/nyc-config-typescript",
"extension": [".ts"],
"include": ["packages/**/*.ts"],
"exclude": ["packages/**/*.spec.ts", "**/__tests__/**/*.*", "**/vendors/**/*.*"],
"check-coverage": false
}
}