Skip to content

Commit 483c503

Browse files
📦 package: add typescript (#36)
1 parent 6c0ac38 commit 483c503

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

package.json

+20-20
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,6 @@
22
"name": "@umijs/fabric",
33
"version": "2.0.6",
44
"description": "A collection of configuration files containing prettier, eslint, stylelint",
5-
"main": "dist/index.js",
6-
"scripts": {
7-
"test": "npm run build && cd example && npm run lint",
8-
"build": "tsc --build tsconfig.json",
9-
"lint": "npm run build && cd example && npm run lint",
10-
"prepublishOnly": "npm run build && npm test && np --no-cleanup --yolo --no-publish --any-branch"
11-
},
12-
"files": [
13-
"dist"
14-
],
15-
"repository": {
16-
"type": "git",
17-
"url": "git+https://github.com/umijs/fabric"
18-
},
195
"keywords": [
206
"eslint",
217
"prettier",
@@ -24,12 +10,26 @@
2410
"design",
2511
"pro"
2612
],
27-
"author": "[email protected]",
28-
"license": "ISC",
13+
"homepage": "https://github.com/umijs/fabric#readme",
2914
"bugs": {
3015
"url": "https://github.com/umijs/fabric/issues"
3116
},
32-
"homepage": "https://github.com/umijs/fabric#readme",
17+
"repository": {
18+
"type": "git",
19+
"url": "git+https://github.com/umijs/fabric"
20+
},
21+
"license": "ISC",
22+
"author": "[email protected]",
23+
"main": "dist/index.js",
24+
"files": [
25+
"dist"
26+
],
27+
"scripts": {
28+
"build": "tsc --build tsconfig.json",
29+
"lint": "npm run build && cd example && npm run lint",
30+
"prepublishOnly": "npm run build && npm test && np --no-cleanup --yolo --no-publish --any-branch",
31+
"test": "npm run build && cd example && npm run lint"
32+
},
3333
"dependencies": {
3434
"@typescript-eslint/eslint-plugin": "^2.18.0",
3535
"@typescript-eslint/parser": "^2.18.0",
@@ -56,10 +56,10 @@
5656
"stylelint-config-rational-order": "^0.1.2",
5757
"stylelint-config-standard": "^20.0.0",
5858
"stylelint-declaration-block-no-ignored-properties": "^2.1.0",
59-
"stylelint-order": "^4.0.0"
59+
"stylelint-order": "^4.0.0",
60+
"typescript": "^3.8.3"
6061
},
6162
"devDependencies": {
62-
"np": "^5.2.1",
63-
"typescript": "^3.5.2"
63+
"np": "^5.2.1"
6464
}
6565
}

0 commit comments

Comments
 (0)