Skip to content

Commit 1266698

Browse files
committed
Add package scripts
1 parent 021dbd2 commit 1266698

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ node_modules/
4545
!.yarn/sdks
4646
!.yarn/versions
4747

48-
# Compile output
48+
# Compile and pack output
4949
dist/
50+
*.tgz
5051

5152
# VS Code
5253
.vscode/

package.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@
3838
"default": "./dist/index.cjs"
3939
},
4040
"sideEffects": false,
41+
"scripts": {
42+
"fix": "eslint --cache --fix .",
43+
"format": "prettier --cache --write .",
44+
"lint": "yarn dedupe --check && eslint --cache . && prettier --cache --check .",
45+
"build": "tsc",
46+
"clean": "rm -rf dist",
47+
"prepublish": "yarn run lint",
48+
"prepack": "yarn run build",
49+
"postpack": "yarn run clean"
50+
},
4151
"dependencies": {
4252
"@babel/core": "^7.0.0",
4353
"@babel/preset-env": "^7.0.0"

0 commit comments

Comments
 (0)