Skip to content

Commit edf0465

Browse files
committed
update build scripts
1 parent 0212b80 commit edf0465

2 files changed

Lines changed: 23 additions & 14 deletions

File tree

.vscode/tasks.json

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,24 @@
11
{
2-
"version": "2.0.0",
3-
"tasks": [
4-
{
5-
"type": "typescript",
6-
"tsconfig": "tsconfig.json",
7-
"option": "watch",
8-
"problemMatcher": [
9-
"$tsc-watch"
10-
],
11-
"group": "build",
12-
"label": "tsc: watch - tsconfig.json"
13-
}
14-
]
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "typescript",
6+
"tsconfig": "tsconfig.json",
7+
"option": "watch",
8+
"problemMatcher": [
9+
"$tsc-watch"
10+
],
11+
"group": "build",
12+
"label": "tsc: watch - tsconfig.json"
13+
},
14+
{
15+
"type": "shell",
16+
"command": "yarn build && npm publish build",
17+
"problemMatcher": [
18+
"$tsc-watch"
19+
],
20+
"group": "build",
21+
"label": "deploy"
22+
}
23+
]
1524
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"clean": "rm -rf build",
1111
"build": "yarn clean && tsc && cp package.json README.md src/*.d.ts build",
1212
"develop": "tsc --watch",
13-
"deploy": "yarn build && npm publish build --dry-run"
13+
"deploy": "yarn build && npm publish build"
1414
},
1515
"devDependencies": {
1616
"@types/chalk": "^2.2.0",

0 commit comments

Comments
 (0)