Skip to content

Commit 48793d2

Browse files
JimiCrobertohuertasm
authored andcommitted
Simplify scripts in package.json. (vscode-icons#794)
* Simplify scripts in package.json. * Remove 'exclude' section from 'tsconfig.json' file.
1 parent 0873153 commit 48793d2

File tree

3 files changed

+17
-15
lines changed

3 files changed

+17
-15
lines changed

package.json

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,15 @@
4242
],
4343
"main": "./out/src/",
4444
"contributes": {
45-
"iconThemes": [{
46-
"id": "vscode-icons",
47-
"label": "VSCode Icons",
48-
"path": "out/src/icons.json"
49-
}],
50-
"commands": [{
45+
"iconThemes": [
46+
{
47+
"id": "vscode-icons",
48+
"label": "VSCode Icons",
49+
"path": "out/src/icons.json"
50+
}
51+
],
52+
"commands": [
53+
{
5154
"command": "vscode-icons.regenerateIcons",
5255
"title": "%command.regenerateIcons.title%",
5356
"category": "Icons"
@@ -180,11 +183,11 @@
180183
"example": "node ./out/src/example/example.js ",
181184
"pretest": "npm run compile",
182185
"test": "mocha ./out/test --recursive",
183-
"lint": "tslint 'src/**/*.ts' 'test/**/*.ts'",
186+
"lint": "tslint --project tsconfig.json",
184187
"test:vs": "node ./node_modules/vscode/bin/test",
185188
"vscode:prepublish": "rimraf ./out && npm run build",
186-
"compile:w": "rimraf ./out && tsc -watch -p ./",
187-
"compile": "rimraf ./out && tsc -p ./",
189+
"compile:w": "rimraf ./out && tsc -w",
190+
"compile": "rimraf ./out && tsc",
188191
"postinstall": "node ./node_modules/vscode/bin/install",
189192
"analysis": "bithound check [email protected]:vscode-icons/vscode-icons.git"
190193
},

tsconfig.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
"sourceMap": true,
1414
"rootDir": "."
1515
},
16-
"exclude": [
17-
"node_modules",
18-
".vscode-test",
19-
"examples"
16+
"include": [
17+
"src/**/*.ts",
18+
"test/**/*.ts"
2019
]
21-
}
20+
}

tslint.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@
3333
],
3434
"object-literal-sort-keys": false
3535
}
36-
}
36+
}

0 commit comments

Comments
 (0)