Skip to content

Commit

Permalink
add release info
Browse files Browse the repository at this point in the history
  • Loading branch information
collin committed Apr 29, 2020
1 parent 43ab6d2 commit b2c6587
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
*.s[wno]p
node_modules/
.DS_Store
*.js
dist/

8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@
"name": "bookable-time",
"version": "1.0.0",
"description": "",
"main": "./index.ts",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"test": "npm run build && node test.js",
"test": "npm run build && node dist/test.js",
"test:watch": "nodemon --watch tsconfig.json --watch index.ts --watch parser.ts --watch time-ranges.pegjs --exec \"npm run test\"",
"check": "tsc --project tsconfig.json --watch",
"build": "tsc --project tsconfig.json"
"build": "tsc --project tsconfig.json",
"release": "./script/release"
},
"keywords": [],
"author": "",
Expand Down
9 changes: 9 additions & 0 deletions script/release
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
set -e
npm run test
git checkout -b release
git add dist --force
git commit -m "release $1"
git tag "v-$1"
git checkout -
git branch -D release
git push --tags
6 changes: 3 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"compilerOptions": {
"declaration": true,
"outDir": "dist/",
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"noImplicitAny": true,
"noImplicitReturns": true
},
"paths": [
"./index.ts"
]
"paths": ["./index.ts"]
}

0 comments on commit b2c6587

Please sign in to comment.